RE: design question
Hi! From here: http://displaytag.sourceforge.net/11/tut_sources.html --- cut --- From a db? Displaytag will never support retrieving data from a db directly. Displaytag is here to help you in displaying data, not to retrieve them. Anyway, there are a couple of easy methods to get records from a db and display them using displaytag: --- cut --- -Original Message- From: fea jabi [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 7:29 PM To: user@struts.apache.org Subject: RE: design question can anyone help me understand this? Thanks. From: fea jabi [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: user@struts.apache.org Subject: design question Date: Fri, 27 Jan 2006 11:40:20 -0500 For all the tables in the JSP, I am using displaytag. For each row in the table I created an Object. I am creating instances of this Object and making a List which is getting displayed in the JSP. I was told that instead of creating Object and creating instances, one can directly use the result set got from the DB and iterate thru it to fill the tables. Which one is more efficient way to do? Is the second approach better? if so why? Thanks. _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Donâ–“t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: using an action form if no input from page
Hi! I would say you can use ActionForm as a bean to pass values from your action to your JSP. AFAIK ActionForm is just a bean with some convenience methods. Andrey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, January 27, 2006 10:50 PM To: user@struts.apache.org Subject: using an action form if no input from page My question concerns jsp pages that provide a read only view of data. In other words, there won't be a form submitted from the page. Is there a compelling reason to use an action form in these cases. I've just been using tags such as c:out with my own beans put in scope. I've noticed that some people use the ActionForm and jsp form tags to do this same data transfer. That's strikes me as using the forms not necessarily in the way they were meant to be. But I'll admit to not being entirely clear on what seems to be a simple topic, actionForms that is. Any recommendations, with pros and cons. ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dispatch Action Error
Hi! As I can see from your trace, you are using DispatchAction and in some moments wrong method name is passed to this action. In the trace you've presented the method name is empty. 1. Action[/notes] does not contain method named 2. java.lang.NoSuchMethodException: com.vrs.crm.actions.NotesAction.( See, no method name after dot? I would recommend to add debug info in getMethodName() method and log path to see what's actually coming. Andrey -Original Message- From: RathinaGanesh MeenakshiSundaram [mailto:[EMAIL PROTECTED] Sent: Thursday, January 26, 2006 11:47 PM To: Struts Users Mailing List Subject: Re: Dispatch Action Error No, The jsp and Action and everything works fine as they need to be and renders the jsp fine. But, once in a while thwors this error to the Server Log. There is no mistake with the spelling Thanks... On 1/26/06, Srinivas Jadcharla [EMAIL PROTECTED] wrote: //java.lang.NoSuchMethodException May be caused by Spelling mistakes of the method names!! On 1/26/06, RathinaGanesh MeenakshiSundaram [EMAIL PROTECTED] wrote: Hi All, Iam getting the following DispatchAction error. Everything works fine and but, once in a while, I see the following error message in the Server Log..! Even when I get this error in the log, I don't see any problem with my application/usage. It just works fine..But, still throws the following error message to the Server Log. Does anyone have any idea regarding this..? Thanks, Ganesh. 2006-01-24 11:02:46,787 ERROR [org.apache.struts.actions.DispatchAction] Action[/notes] does not contain method named java.lang.NoSuchMethodException: com.vrs.crm.actions.NotesAction.( org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) at java.lang.Class.getMethod(Class.java:986) at org.apache.struts.actions.DispatchAction.getMethod( DispatchAction.java:334) at org.apache.struts.actions.DispatchAction.dispatchMethod( DispatchAction.java:266) at org.apache.struts.actions.DispatchAction.execute( DispatchAction.java :216) at org.apache.struts.action.RequestProcessor.processActionPerform( RequestProcessor.java:484) at org.apache.struts.action.RequestProcessor.process( RequestProcessor.java:274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java :1482) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java :525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:157) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter( ReplyHeaderFilter.java:75) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:157) -- Thanks Regards Srinivas 732-648-9421(Cell) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What JDK version are you using?
[X] JDK 1.5 (or JDK 5) + Validator Andrey -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Monday, January 23, 2006 2:37 PM To: Struts Users Mailing List Subject: What JDK version are you using? What JDK version are you using? - [ ] JDK 1.2 [ ] JDK 1.3 [ ] JDK 1.4 [ ] JDK 1.5 (or JDK 5) - I'm mainly interested in the impact of moving Commons Valdator to a minimum dependency of JDK 1.4 to use the RegExp support rather than depending on ORO, so it would be useful if you could indicate whether you are using Validator or not. tia Niall - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]