Re: Validator and Tiles
I use Tiles and Validator together with no problems. You should never use Javascript as your sole form of validation, it's merely a convenience for the client. Did you subclass ValidatorForm? I've forgotten to do that once or twice and wondered why no validation was happening. David From: "Marco Tedone" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts-user-list" <[EMAIL PROTECTED]> Subject: Validator and Tiles Date: Sun, 8 Jun 2003 01:47:52 +0100 Hi, I've been through the mailing archive without success. I remember had being used the Validator succesfully in a past; then my web developer started to use javascript to perform the checks so we didn't put attention to Validator any more. Now I'm using tiles for my site and would like to use validator, as I am not a javascript expert. It seems to me that Validator and tiles have some difficulties working together; is that correct? It seems to me to have made all the setup correctly but when I submit the form, nothing happens. I've also read that someone else had the same problem with tiles + Validator working together. If this is not the case, could I proceede to post to the mailing list my code? Regards, Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validator and Tiles
Hi, I've been through the mailing archive without success. I remember had being used the Validator succesfully in a past; then my web developer started to use javascript to perform the checks so we didn't put attention to Validator any more. Now I'm using tiles for my site and would like to use validator, as I am not a javascript expert. It seems to me that Validator and tiles have some difficulties working together; is that correct? It seems to me to have made all the setup correctly but when I submit the form, nothing happens. I've also read that someone else had the same problem with tiles + Validator working together. If this is not the case, could I proceede to post to the mailing list my code? Regards, Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to specify the FormBean in an iterate tags name property?
How do I specify the FormBean in the name property? I have DynaActionForm, with a List property (myList), I populate it in my Action with a bunch of beans that have a get & setTag() method. This is in my How do I specify the FormBean in the iterate name property? Or why else do I get this exception: java.lang.NullPointerException at java.util.Hashtable.get(Hashtable.java:326) at org.apache.jasper.runtime.PageContextImpl.findAttribute(PageContextImpl.java :302) at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:787) ... TIA -- Mike W - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP, Java and constant values best practise question
Hello all, Suppose an action.execute method adds an Object to the application cache getServlet().getServletContext().setAttribute(...) The key value should probably be specified as a constant value to provide a level of indirection. (Suppose constants are stored in a java interface, and THE_KEY='objectKey'.) So, we'd have setAttribute( IConstants.THE_KEY, someObject ); Now, in the jsp file, the forward from this action, a bit of JSTL is written to dump someObject.toString(). Here's a bit of code that will work. http://calendar.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
"target" attribute problem
I am using "target" attribute in html:form to display the results of a serachform in an inline frame In the validate method of the form bean I validate the search form. If the validate method has no actionerrors the results are displayed correctly in the result frame. That's fine. But the problem is if my validate method returns actionerrors, it is not displayed back on the parent page. Instead I get a error on the result frame saying "Page not found". I think this is because the "target" of html:form attribute is redirecting the output to the target frame . How will I display any errors on the parent search page instead of getting 404 message on the target result frame? Thanks Swami - Do you Yahoo!? Free online calendar with sync to Outlook(TM).
Re: What's next for Struts?
Bill Johnson wrote: Ted, you're one of the better known Struts people right? What do you think of JSF? I need to ship things now, and JSF isn't final yet. I've strolled through the tutorial, and parts of it look interesting. But I'm not going to study it carefully until 1.0 ships. I'm also not a JSP tag guy, and so that part of the framework is irrelevant to me. Though, I'm thinking that any presentation system, including Velocity, should be able to hookup with them-there server-side UI objects. But, I'm leaving tomorrow's development for tomorrow =:) -Ted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How Smart is DynaActionForm?
Dan Lets find out... I suppose having some way of mapping a bean to form property in struts xml could be handy. Although I start getting confused when i think of this in terms of non dyna action forms... Populating the ArrayList in the form bean I believe could compromise MVC, at least as struts implements it (feedback on this stuff would be appreciated from any beard-sporters).. But the idea of mapping stuff to a form property in the I'll go read the proposal and think a little more... Mark On Saturday, Jun 7, 2003, at 19:43 Europe/London, Dan Tran wrote: Mark, I think Brandon Goodin proposed a batch to enhance DyanActionForm to automaticly pupolating dyanamic list with a known element type It has nothting to do controller and model. Just an enhancement to the tool. Am I wrong? -Dan - Original Message - From: "Mark Lowe" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, June 07, 2003 11:28 AM Subject: Re: How Smart is DynaActionForm? I'm still not beard-sporting on these types of issues... but... wouldn't that start to cloud the demarcation between model and controller? On Saturday, Jun 7, 2003, at 19:02 Europe/London, Dan Tran wrote: Hi Mark, thanks for reply. I knew it is a popular topic but at the time, I was not able to think of good search key for looking into the archive. Until I tumbled on a old post regarding lazyList. and the answer is there just like you have explained ;-) I hope Struts 1.2 will incorporate the patch submit by Goodwin to solve this scenario since I know lots of people have to create their own form bean to handle dynamic collection. Thanks and thanks ;-) -Dan - Original Message - From: "Mark Lowe" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, June 07, 2003 10:52 AM Subject: Re: How Smart is DynaActionForm? If you take an example of a traditional action form, the same would happen with that. If you've populated the form in the referring action then you should have an insight into how action forms and actions work together. The form bean should always be there, but know it won't self populate just like a standard action form. You can scope the form to session or repopulate as part of the action invoked via the form submission. cheers mark On Thursday, Jun 5, 2003, at 07:35 Europe/London, Dan Tran wrote: hmm, I thought the topic was designed to catch attention ;) -D - Original Message - From: "Dan Tran" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, June 04, 2003 2:40 PM Subject: How Smart is DynaActionForm? Hello, I have an ArrayList as a element of an DyanActionForm. The list contains elements of another bean that has properties as strings. I can populate the DynaActionForm in my action and have the JSP to display it . The question here is does DynaActionForm has the intelligent to reconstruct itself after the form is submited back to the server? I tried but the ArrayList always come back emtpy.. Any suggestion? -Dan --- -- 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] - 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] - 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: how to submit Unicode text in Struts/JSP?
Dan, that solved the problem. I wasn't aware the application needs a filter to set the content type. thanks a lot, dimitar - Original Message - From: "Dan Tran" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, June 07, 2003 2:45 PM Subject: Re: how to submit Unicode text in Struts/JSP? > http://www.anassina.com/struts/i18n/i18n.html > > I heard Struts 1.2 may incorporate this in the future. > > -Dan > > - Original Message - > From: "Dimitar Georgievski" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Saturday, June 07, 2003 11:41 AM > Subject: how to submit Unicode text in Struts/JSP? > > > > hi, > > > > I'm trying to submit Unicode encoded to a search engine through a web > client > > developed is Struts. > > > > Each JSP page of the Web client sets the page encoding using the following > > HTML statement: > > > > > > After the submission, in the Action servlet, I compare the request with > what > > I would expect to receive as a submission: > > > > It goes like this: > > > > String request2 = new String("\u017Eivot"); > > > > if (request2.equals(_request)){ > >System.out.println("request OK"); > > } > > > > They are not the same and I don't know why. When request2 is submitted > > directly to the search engine there is result received back. > > > > How to submit successfully Unicode text to the server? > > > > I'm using > > J2SE 1.4.1 > > JBoss 3.0.4 > > Tomcat 4.1.x > > > > thanks, > > > > dimitar > > > > > > > > > > - > > 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] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie Q: Cannot load JDBC driver class using Datasource Connection
Thanks Brandon , Dimitar, Mark It's working now : After putting the JDBC driver jar in $TOMCAT_HOME/common/lib and referencing it in Tomcat's classpath, it's working!
RE: Newbie Q: Cannot load JDBC driver class using Datasource Connection
If you have it in the $TOMCAT_HOME/common/lib, then remove it from you web-app. It is redundant. Also, are you using the Struts Datasource config or Tomcat JNDI? Brandon Goodin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, June 07, 2003 12:57 PM To: [EMAIL PROTECTED] Subject: Re: Newbie Q: Cannot load JDBC driver class using Datasource Connection Yes, I have my JDBC driver both in my application's as well as in Tomcat's classpaths - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie Q: Cannot load JDBC driver class using Datasource Connection
Yes, I have my JDBC driver both in my application's as well as in Tomcat's classpaths
Re: how to submit Unicode text in Struts/JSP?
http://www.anassina.com/struts/i18n/i18n.html I heard Struts 1.2 may incorporate this in the future. -Dan - Original Message - From: "Dimitar Georgievski" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, June 07, 2003 11:41 AM Subject: how to submit Unicode text in Struts/JSP? > hi, > > I'm trying to submit Unicode encoded to a search engine through a web client > developed is Struts. > > Each JSP page of the Web client sets the page encoding using the following > HTML statement: > > > After the submission, in the Action servlet, I compare the request with what > I would expect to receive as a submission: > > It goes like this: > > String request2 = new String("\u017Eivot"); > > if (request2.equals(_request)){ >System.out.println("request OK"); > } > > They are not the same and I don't know why. When request2 is submitted > directly to the search engine there is result received back. > > How to submit successfully Unicode text to the server? > > I'm using > J2SE 1.4.1 > JBoss 3.0.4 > Tomcat 4.1.x > > thanks, > > dimitar > > > > > - > 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: How Smart is DynaActionForm?
Mark, I think Brandon Goodin proposed a batch to enhance DyanActionForm to automaticly pupolating dyanamic list with a known element type It has nothting to do controller and model. Just an enhancement to the tool. Am I wrong? -Dan - Original Message - From: "Mark Lowe" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, June 07, 2003 11:28 AM Subject: Re: How Smart is DynaActionForm? > I'm still not beard-sporting on these types of issues... but... > wouldn't that start to cloud the demarcation between model and > controller? > > On Saturday, Jun 7, 2003, at 19:02 Europe/London, Dan Tran wrote: > > > Hi Mark, thanks for reply. I knew it is a popular topic > > but at the time, I was not able to think of good search key for > > looking into > > the archive. > > > > Until I tumbled on a old post regarding lazyList. and the > > answer is there just like you have explained ;-) I hope Struts 1.2 > > will > > incorporate the patch submit by Goodwin to solve this scenario since I > > know > > lots of people have to create their own form bean to handle dynamic > > collection. > > > > Thanks and thanks ;-) > > > > -Dan > > > > - Original Message - > > From: "Mark Lowe" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Saturday, June 07, 2003 10:52 AM > > Subject: Re: How Smart is DynaActionForm? > > > > > >> > >> If you take an example of a traditional action form, the same would > >> happen with that. > >> > >> If you've populated the form in the referring action then you should > >> have an insight into how action forms and actions work together. > >> > >> The form bean should always be there, but know it won't self populate > >> just like a standard action form. > >> > >> You can scope the form to session or repopulate as part of the action > >> invoked via the form submission. > >> > >> cheers mark > >> > >> > >> On Thursday, Jun 5, 2003, at 07:35 Europe/London, Dan Tran wrote: > >> > >>> hmm, I thought the topic was designed to catch attention > >>> ;) > >>> -D > >>> - Original Message - > >>> From: "Dan Tran" <[EMAIL PROTECTED]> > >>> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >>> Sent: Wednesday, June 04, 2003 2:40 PM > >>> Subject: How Smart is DynaActionForm? > >>> > >>> > >>> Hello, > >>> > >>> I have an ArrayList as a element of an DyanActionForm. The list > >>> contains > >>> elements of another bean that has properties as strings. > >>> > >>> I can populate the DynaActionForm in my action and have the JSP to > >>> display > >>> it . > >>> > >>> The question here is does DynaActionForm has the intelligent to > >>> reconstruct > >>> itself after the form is submited back to the server? > >>> > >>> I tried but the ArrayList always come back emtpy.. > >>> > >>> Any suggestion? > >>> > >>> -Dan > >>> > >>> - > >>> 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] > >> > >> > > > > - > > 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] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to access methods define in Action Form
If you've mapped you form bean to an associated action then the form will be in an available scope in your jsp page.. You dont need the useBean tag. You just need to make sure you've a form bean (dyna or otherwise) an action servlet, and that they be mapped in stuts-config.xml. cheers mark On Friday, Jun 6, 2003, at 14:42 Europe/London, Sashi Ravipati wrote: I am newbie so bear with my questions.. How can I access the set and get methods in the JSP page. if i use the values are returned as null. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How Smart is DynaActionForm?
I'm still not beard-sporting on these types of issues... but... wouldn't that start to cloud the demarcation between model and controller? On Saturday, Jun 7, 2003, at 19:02 Europe/London, Dan Tran wrote: Hi Mark, thanks for reply. I knew it is a popular topic but at the time, I was not able to think of good search key for looking into the archive. Until I tumbled on a old post regarding lazyList. and the answer is there just like you have explained ;-) I hope Struts 1.2 will incorporate the patch submit by Goodwin to solve this scenario since I know lots of people have to create their own form bean to handle dynamic collection. Thanks and thanks ;-) -Dan - Original Message - From: "Mark Lowe" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, June 07, 2003 10:52 AM Subject: Re: How Smart is DynaActionForm? If you take an example of a traditional action form, the same would happen with that. If you've populated the form in the referring action then you should have an insight into how action forms and actions work together. The form bean should always be there, but know it won't self populate just like a standard action form. You can scope the form to session or repopulate as part of the action invoked via the form submission. cheers mark On Thursday, Jun 5, 2003, at 07:35 Europe/London, Dan Tran wrote: hmm, I thought the topic was designed to catch attention ;) -D - Original Message - From: "Dan Tran" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, June 04, 2003 2:40 PM Subject: How Smart is DynaActionForm? Hello, I have an ArrayList as a element of an DyanActionForm. The list contains elements of another bean that has properties as strings. I can populate the DynaActionForm in my action and have the JSP to display it . The question here is does DynaActionForm has the intelligent to reconstruct itself after the form is submited back to the server? I tried but the ArrayList always come back emtpy.. Any suggestion? -Dan - 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] - 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: Newbie Q: Cannot load JDBC driver class using Datasource Connection
I would put the JAR files of the JDBC driver in the lib folder of the application. It works in my case. dimitar - Original Message - From: "Mark Galbreath" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Saturday, June 07, 2003 2:03 PM Subject: RE: Newbie Q: Cannot load JDBC driver class using Datasource Connection do you have your jdbc driver in your classpath? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, June 07, 2003 1:59 PM To: [EMAIL PROTECTED] Subject: Newbie Q: Cannot load JDBC driver class using Datasource Connection Am I missing something here? Tomcat keeps on giving me the following exception about my JDBC connection driver not being loaded when I try to establish a datasource connection to a mysql database in struts : Initializing application data source org.apache.struts.action.DATA_SOURCE java.sql.SQLException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav a:529) at org.apache.commons.dbcp.BasicDataSource.setLogWriter(BasicDataSource.java:38 1) at org.apache.struts.action.ActionServlet.initApplicationDataSources(ActionServ let.java:942) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:457) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93 4) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc essorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) My struts-config.xml looks like this : Info: This driver , com.mysql.jdbc.Driver, does establish connection to this same database with no exception when I use it in a normal java class. Can someone tell me or atleast point me to where I can find further help/information. I could not find anything at http://jakarta.apache.org/struts/faqs/database.html and also in this list's archives. Thanks, robert - 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]
how to submit Unicode text in Struts/JSP?
hi, I'm trying to submit Unicode encoded to a search engine through a web client developed is Struts. Each JSP page of the Web client sets the page encoding using the following HTML statement: After the submission, in the Action servlet, I compare the request with what I would expect to receive as a submission: It goes like this: String request2 = new String("\u017Eivot"); if (request2.equals(_request)){ System.out.println("request OK"); } They are not the same and I don't know why. When request2 is submitted directly to the search engine there is result received back. How to submit successfully Unicode text to the server? I'm using J2SE 1.4.1 JBoss 3.0.4 Tomcat 4.1.x thanks, dimitar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie Q: Cannot load JDBC driver class using Datasource Connection
do you have your jdbc driver in your classpath? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, June 07, 2003 1:59 PM To: [EMAIL PROTECTED] Subject: Newbie Q: Cannot load JDBC driver class using Datasource Connection Am I missing something here? Tomcat keeps on giving me the following exception about my JDBC connection driver not being loaded when I try to establish a datasource connection to a mysql database in struts : Initializing application data source org.apache.struts.action.DATA_SOURCE java.sql.SQLException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav a:529) at org.apache.commons.dbcp.BasicDataSource.setLogWriter(BasicDataSource.java:38 1) at org.apache.struts.action.ActionServlet.initApplicationDataSources(ActionServ let.java:942) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:457) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93 4) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc essorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) My struts-config.xml looks like this : Info: This driver , com.mysql.jdbc.Driver, does establish connection to this same database with no exception when I use it in a normal java class. Can someone tell me or atleast point me to where I can find further help/information. I could not find anything at http://jakarta.apache.org/struts/faqs/database.html and also in this list's archives. Thanks, robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How Smart is DynaActionForm?
Hi Mark, thanks for reply. I knew it is a popular topic but at the time, I was not able to think of good search key for looking into the archive. Until I tumbled on a old post regarding lazyList. and the answer is there just like you have explained ;-) I hope Struts 1.2 will incorporate the patch submit by Goodwin to solve this scenario since I know lots of people have to create their own form bean to handle dynamic collection. Thanks and thanks ;-) -Dan - Original Message - From: "Mark Lowe" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, June 07, 2003 10:52 AM Subject: Re: How Smart is DynaActionForm? > > If you take an example of a traditional action form, the same would > happen with that. > > If you've populated the form in the referring action then you should > have an insight into how action forms and actions work together. > > The form bean should always be there, but know it won't self populate > just like a standard action form. > > You can scope the form to session or repopulate as part of the action > invoked via the form submission. > > cheers mark > > > On Thursday, Jun 5, 2003, at 07:35 Europe/London, Dan Tran wrote: > > > hmm, I thought the topic was designed to catch attention > > ;) > > -D > > - Original Message - > > From: "Dan Tran" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Wednesday, June 04, 2003 2:40 PM > > Subject: How Smart is DynaActionForm? > > > > > > Hello, > > > > I have an ArrayList as a element of an DyanActionForm. The list > > contains > > elements of another bean that has properties as strings. > > > > I can populate the DynaActionForm in my action and have the JSP to > > display > > it . > > > > The question here is does DynaActionForm has the intelligent to > > reconstruct > > itself after the form is submited back to the server? > > > > I tried but the ArrayList always come back emtpy.. > > > > Any suggestion? > > > > -Dan > > > > - > > 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] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie Q: Cannot load JDBC driver class using Datasource Connection
Am I missing something here? Tomcat keeps on giving me the following exception about my JDBC connection driver not being loaded when I try to establish a datasource connection to a mysql database in struts : Initializing application data source org.apache.struts.action.DATA_SOURCE java.sql.SQLException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:529) at org.apache.commons.dbcp.BasicDataSource.setLogWriter(BasicDataSource.java:381) at org.apache.struts.action.ActionServlet.initApplicationDataSources(ActionServlet.java:942) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:457) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:934) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc essorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) My struts-config.xml looks like this : Info: This driver , com.mysql.jdbc.Driver, does establish connection to this same database with no exception when I use it in a normal java class. Can someone tell me or atleast point me to where I can find further help/information. I could not find anything at http://jakarta.apache.org/struts/faqs/database.html and also in this list's archives. Thanks, robert
RE: newbiew Q: how to do redirect instead of forward
hey man, discuss this real-time at irc.darkmyst.org 6667! If you need a client, get it at www.mirc.com. -Original Message- From: Vic Cekvenich [mailto:[EMAIL PROTECTED] Sent: Saturday, June 07, 2003 10:46 AM To: [EMAIL PROTECTED] Subject: Re: newbiew Q: how to do redirect instead of forward Here is one example of a back button solution I plan to implment. http://www.robertpenner.com/experiments/backbutton/backbutton_code.html Try it. .V Craig R. McClanahan wrote: >On Fri, 6 Jun 2003, Steve Raeburn wrote: > > > >>Date: Fri, 6 Jun 2003 22:32:04 -0700 >>From: Steve Raeburn <[EMAIL PROTECTED]> >>Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>, >> [EMAIL PROTECTED] >>To: Struts Users Mailing List <[EMAIL PROTECTED]> >>Subject: RE: newbiew Q: how to do redirect instead of forward >> >> >> >> >>>-Original Message- >>>From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] >>> >>>I've also been known to create web applications that open the app in >>>a new window without these things -- it doesn't stop the advanced >>>user who knows the keyboard shortcuts from trying to screw things up, >>>but it sure cuts down on the unsophisticated users who think a web >>>application is supposed to be browsable the same way that a web site >>>is :-). >>> >>> >>G! Craig, *you're* the one who's been doing that to me all this >>time. >> >>I hope you don't try to stop users viewing the page source by >>disabling the right mouse click. ;-) >> >> >> > >Show me the back button on an app built with Swing, or even with >something like MFC, and I will relent :-). > >If users complain that they need the back button, that's a pretty good >clue that you have not defined enough useful navigation controls inside >your application window. But that's a usability issue, not a >technological issue. > > > >>Steve >> >> > >Craig > > -- Vic Cekvenich, Struts Instructor, 1-800-917-JAVA Advanced Struts Training and project recovery in North East. Open Source Content Management basicPortal sofware Best practiceStruts Support v.1.1 helper ScafflodingXPress - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How Smart is DynaActionForm?
If you take an example of a traditional action form, the same would happen with that. If you've populated the form in the referring action then you should have an insight into how action forms and actions work together. The form bean should always be there, but know it won't self populate just like a standard action form. You can scope the form to session or repopulate as part of the action invoked via the form submission. cheers mark On Thursday, Jun 5, 2003, at 07:35 Europe/London, Dan Tran wrote: hmm, I thought the topic was designed to catch attention ;) -D - Original Message - From: "Dan Tran" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, June 04, 2003 2:40 PM Subject: How Smart is DynaActionForm? Hello, I have an ArrayList as a element of an DyanActionForm. The list contains elements of another bean that has properties as strings. I can populate the DynaActionForm in my action and have the JSP to display it . The question here is does DynaActionForm has the intelligent to reconstruct itself after the form is submited back to the server? I tried but the ArrayList always come back emtpy.. Any suggestion? -Dan - 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: Subclassing ActionServlet
Kevin, Thanks for replying. I made doubly sure that I called super.init(config) in the init method (I read the Servlets book by Jason Hunter three years ago and he beat it into me like a mantra). I will check my code to make sure I have not introduced any subtle bugs since I subclassed ActionServlet. Regards Jim. - Original Message - From: "Kevin Robair" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, June 06, 2003 2:31 PM Subject: Re: Subclassing ActionServlet > I just did the same thing, but had no problems. Here > is what I did: > > public class ExtendedActionServlet extends > org.apache.struts.action.ActionServlet > { > > /** Initializes the servlet. > */ > public void init(ServletConfig config) throws > ServletException > { > super.init(config); > > App224DataManager.setContextBeans(config.getServletContext()); > } > > > } > > > Make sure you call super.init(config) , I bet that is > your problem. > > -Kevin > > --- Jim Collins <[EMAIL PROTECTED]> > wrote: > > Hi, > > > > I have just modified an application where I now > > subclass ActionServlet. The > > problem is my JSP's that use resources now throws an > > exception about not > > being able to find the key. Are there any issues > > with subclassing > > ActionServlet that I should be aware of. > > > > Thanks > > > > Jim. > > > > > > > - > > 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] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: adding / creating new collection elements in a form
I just implemented myself, so let me throw a shot at this. In my case, I make my action derived from LookupDispatchAction which can handle multiple button submission handlers. One of the button is called something like "addRow". When you hit this addRow button, struts will repopolate what ever on your screen and dispatch it to your "addRow" handler where you can add new empty row to your collection and forward back to your screen. regarding your out of index problem, I would suggest to use common Collection ListUtils.lazyList. Here is an example a lazy collection in a my form private List gradeViews = ListUtils.lazyList(new ArrayList(), new GenericFactory("org.glvnsjc.view.StudentGradeView")); //there is no direct setXXX, call getXXX first and populate the object // lazy list takes care all dynamic allocation public StudentGradeView getGradeView(int index) {return (StudentGradeView) gradeViews.get(index); } public void removeAllGradeView() { this.gradeViews.clear(); } public List getGradeViews() { return this.gradeViews;} Please look up GenericFactory in the maling list, I dont want to repost it If you dont know LookupDispatchAction yet, learn it. It has the magic that I cant live without Good luck!!! -Dan - Original Message - From: "Rob" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, June 07, 2003 8:55 AM Subject: Re: adding / creating new collection elements in a form > Perhaps I was not making myself clear when I first posted this. > > I know how to write the javascript, I know how to use struts > nested/logic tags. What I was looking for when I posted was > a solution whereby I could add new elements to a collection > in a form. Not update existing elements, thus increasing the > size of a collection based on properties from fields that > were added by client side scripting. > > > > > I've not been able to find a solution to this within the mailing > > list. But I would like to the following. > > > > I have a page with a collection of fields which are populated by > > a form (via it's collection). I also have a button which would > > allow the addition of a new row. (hopefully) > > > > Name Descrip > > [ xy ][ foo ] > > [ ab ][ bar ] > > > > Add > > > > (1) I would like to have the add button add a new pair of text > > input fields each time it is clicked. (2) I would like it if > > clicking add did not make a request to the server this being the > > case it suggests some kind of client side javascript adding the > > new fields. > > > > The problems of course with this are the following. > > > > (1) client side code won't be able to utilise the struts tags > > and as such I won't know what values to set the appropriate > > input text element attributes to. > > (2) It is highly likely that even if I solved problem (1) that > > it would result in a IndexOutOfBounds exception, or just not > > bother with the properties from the new fields. > > > > Has anyone else solved this? Does struts have a mechanism for > > dealing with this? I'm fully aware of nested/logic tags but > > if they are the way I can't see how. > > > > Suggestions would be appreciated, Thanks! > > > > Rob > > > > > > - > > 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] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem Statement for some standard e-Biz requirements
Hi, I have been posting my problem and work through for the past 5 days and not even a single mail stating this is good or bad. so I am again banging with my implemented code. This is just a positive approach to improve struts in a more comprehensive framework. I haven't done much in this code, it follows a standard approach as like ActionServlet.. Files: explanation ActionHook Standard Interface to trigger Hooked methods ActionHookMapping similar tool like ActionMapping ActionHookServlet Child class for ActionServlet which does hooking to a doPost and doGet ServiceThread If the hook needs to be implemented in threaded environment hook-struts-config.xml configuration XML for action Hooks ChannelHook & WebTrendsHook These are just a sample implementation tested class for this rule. Note: == Some of the behaviors can be implemented through tags also. But my idea is not that. The Subjective Goal is Doing an asynchronous job for a defined request. Let me know if there is any problem in that. Things to be done. = 1. Authentication --can be used a standard authentication 2. Parameter passing through the hook-struts-config.xml and usuage 3. Implement more comprehensive ServiceThread Class rather than ordinary thread reaper class 4. Implement rich Cache behviour to this. Dis-Advantage: = 1. Depends upon the context and usauge Thread Hook might give some problem Please find the war file for further testing ( This was tested under resin environment ). Hope Ted , criag or other senior person in apache foundation spend some time to replay this mail both positive or negative. if it is negative i can stop my spaming and if it is positive think about further. Still waiting for the replay.. Tnx and Regards sadhas -Original Message- From: J, Sadhasivam (Cognizant) Sent: Friday, June 06, 2003 7:09 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Problem Statement for some standard e-Biz requirmentsf Hi, Problem Statement = As per my understanding towards the struts that it doesn't have the Trigger kind of mechanism to solve some of the typical e-Biz scnerios or standard requirments for example 1. Log all the URIs with some custom format and give to some other serivces This has to happen irrespective of regular flow. 2. Standard channel behaviour in portal. Like Yahoo shows weather/ads etc to a User or User group. etc. Such kind of requirement is very common and not been taken in struts i belive. I have come up with an approach to cater these problems. I did a proof of concept also and i would like to know is its really a good approach or is there any othere standard way to implement this in Struts. Hope apache/open source foundation people spent some time to give me an indication whether this approach is correct or not. Approach Taken == Shall call this phenomenon as Hooking Step 0: Write a Standard Interface to perform this Hooking == public interface ActionHook { public void prePerform( HttpServletRequest request ); } Step 1: addition of XML Nodes in struts-config.xml == Justification = Since these problems are pertainting to the problem space and it should be configured at the runtime to pick up these data. struts-config.xml Step 2: Load ActionHook Object through digester. == Justification = Configured classes are loaded by HookRuleBase and HookRule classes as a standard way from apache. Step 3: Changes in the ActionServlet to process ActionHooks == Justification = Load the A
RE: Problem Statement for some standard e-Biz requirements
Hi, I have been posting my problem and work through for the past 5 days and not even a single mail stating this is good or bad. so I am again banging with my implemented code. This is just a positive approach to improve struts in a more comprehensive framework. I haven't done much in this code, it follows a standard approach as like ActionServlet.. Files: explanation ActionHook Standard Interface to trigger Hooked methods ActionHookMapping similar tool like ActionMapping ActionHookServlet Child class for ActionServlet which does hooking to a doPost and doGet ServiceThread If the hook needs to be implemented in threaded environment hook-struts-config.xml configuration XML for action Hooks ChannelHook & WebTrendsHook These are just a sample implementation tested class for this rule. Note: == Some of the behaviors can be implemented through tags also. But my idea is not that. The Subjective Goal is Doing an asynchronous job for a defined request. Let me know if there is any problem in that. Things to be done. = 1. Authentication --can be used a standard authentication 2. Parameter passing through the hook-struts-config.xml and usuage 3. Implement more comprehensive ServiceThread Class rather than ordinary thread reaper class 4. Implement rich Cache behviour to this. Dis-Advantage: = 1. Depends upon the context and usauge Thread Hook might give some problem Please find the war file for further testing ( This was tested under resin environment ). Hope Ted , criag or other senior person in apache foundation spend some time to replay this mail both positive or negative. if it is negative i can stop my spaming and if it is positive think about further. Still waiting for the replay.. Tnx and Regards sadhas -Original Message- From: J, Sadhasivam (Cognizant) Sent: Friday, June 06, 2003 7:09 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Problem Statement for some standard e-Biz requirmentsf Hi, Problem Statement = As per my understanding towards the struts that it doesn't have the Trigger kind of mechanism to solve some of the typical e-Biz scnerios or standard requirments for example 1. Log all the URIs with some custom format and give to some other serivces This has to happen irrespective of regular flow. 2. Standard channel behaviour in portal. Like Yahoo shows weather/ads etc to a User or User group. etc. Such kind of requirement is very common and not been taken in struts i belive. I have come up with an approach to cater these problems. I did a proof of concept also and i would like to know is its really a good approach or is there any othere standard way to implement this in Struts. Hope apache/open source foundation people spent some time to give me an indication whether this approach is correct or not. Approach Taken == Shall call this phenomenon as Hooking Step 0: Write a Standard Interface to perform this Hooking == public interface ActionHook { public void prePerform( HttpServletRequest request ); } Step 1: addition of XML Nodes in struts-config.xml == Justification = Since these problems are pertainting to the problem space and it should be configured at the runtime to pick up these data. struts-config.xml Step 2: Load ActionHook Object through digester. == Justification = Configured classes are loaded by HookRuleBase and HookRule classes as a standard way from apache. Step 3: Changes in the ActionServlet to process ActionHooks == Justification = Load the Act
Re: adding / creating new collection elements in a form
Perhaps I was not making myself clear when I first posted this. I know how to write the javascript, I know how to use struts nested/logic tags. What I was looking for when I posted was a solution whereby I could add new elements to a collection in a form. Not update existing elements, thus increasing the size of a collection based on properties from fields that were added by client side scripting. I've not been able to find a solution to this within the mailing list. But I would like to the following. I have a page with a collection of fields which are populated by a form (via it's collection). I also have a button which would allow the addition of a new row. (hopefully) Name Descrip [ xy ][ foo ] [ ab ][ bar ] Add (1) I would like to have the add button add a new pair of text input fields each time it is clicked. (2) I would like it if clicking add did not make a request to the server this being the case it suggests some kind of client side javascript adding the new fields. The problems of course with this are the following. (1) client side code won't be able to utilise the struts tags and as such I won't know what values to set the appropriate input text element attributes to. (2) It is highly likely that even if I solved problem (1) that it would result in a IndexOutOfBounds exception, or just not bother with the properties from the new fields. Has anyone else solved this? Does struts have a mechanism for dealing with this? I'm fully aware of nested/logic tags but if they are the way I can't see how. Suggestions would be appreciated, Thanks! Rob - 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]
Direct access problem
When a user directly access to a JSP page which belongs to a Struts module, module switching is not processed and Struts links () in that page do not work correctly because action path specified in an action or forward attribute of tag is module relative. How do you deal with this problem? -- otsuka - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbiew Q: how to do redirect instead of forward
Here is one example of a back button solution I plan to implment. http://www.robertpenner.com/experiments/backbutton/backbutton_code.html Try it. .V Craig R. McClanahan wrote: On Fri, 6 Jun 2003, Steve Raeburn wrote: Date: Fri, 6 Jun 2003 22:32:04 -0700 From: Steve Raeburn <[EMAIL PROTECTED]> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>, [EMAIL PROTECTED] To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: RE: newbiew Q: how to do redirect instead of forward -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] I've also been known to create web applications that open the app in a new window without these things -- it doesn't stop the advanced user who knows the keyboard shortcuts from trying to screw things up, but it sure cuts down on the unsophisticated users who think a web application is supposed to be browsable the same way that a web site is :-). G! Craig, *you're* the one who's been doing that to me all this time. I hope you don't try to stop users viewing the page source by disabling the right mouse click. ;-) Show me the back button on an app built with Swing, or even with something like MFC, and I will relent :-). If users complain that they need the back button, that's a pretty good clue that you have not defined enough useful navigation controls inside your application window. But that's a usability issue, not a technological issue. Steve Craig -- Vic Cekvenich, Struts Instructor, 1-800-917-JAVA Advanced Struts Training and project recovery in North East. Open Source Content Management basicPortal sofware Best practiceStruts Support v.1.1 helper ScafflodingXPress
RE: redirect users after x-minutes?
I'm not sure I understand - but I think this may be more of a 'limitation' with HTML rather than particularly with tiles. A page composed of tiles is still just 1 complete HTML page. If you want to redirect any part of it I think you will need to consider using frames or iframes that has its own 'src' property that can be set. H. > -Original Message- > From: Mick Knutson [mailto:[EMAIL PROTECTED] > Sent: 07 June 2003 05:59 > To: [EMAIL PROTECTED] > Subject: redirect users after x-minutes? > > > How do I add a redirect, in a single tile instead of the layout? I have > several different body tiles, and I want to add a redirect there > in some of > them. But it will then effect the whole page. > > --- > Thanks... > Mick Knutson > --- > > _ > Add photos to your messages with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.487 / Virus Database: 286 - Release Date: 01/06/2003 > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.487 / Virus Database: 286 - Release Date: 01/06/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: should I use struts
and LISP! -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Saturday, June 07, 2003 10:29 AM To: [EMAIL PROTECTED] Subject: Re: should I use struts On Sat, Jun 07,'03 (10:09 AM GMT-0400), Mark wrote: > I would NEVER use srtuts for ANY project... You only use Flash:) -- Rick - 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: should I use struts
On Sat, Jun 07,'03 (10:09 AM GMT-0400), Mark wrote: > I would NEVER use srtuts for ANY project... You only use Flash:) -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: should I use struts
I would NEVER use srtuts for ANY project...mainly because it does not exist except in the minds of the dyslexic. Mark -Original Message- From: Hariharan [mailto:[EMAIL PROTECTED] Sent: Saturday, June 07, 2003 12:18 AM To: [EMAIL PROTECTED] Subject: should I use struts Hello guys, I am new to struts, I have a small doubt should I consider srtuts for any complex j2ee projects.. or is there any major problem in using srtuts for complex j2ee based proj's bye - 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]
[OT] DIR Structure for deploying my code on JBoss
I currenlty have my whole struts application in 2 jars and a war inside my ear. This is all done via ant. This is quite time consuming at times as it can take me as much as 15 minutes between compiles before I can test my code. So, I want to modify my ant so it will just deploy the sode itself, and not jar/war my files and LIB's. But, as I went strait for the EAR route when I started, I do not know the DIR struture I would add all the files to. I do know about my WEB-INF, WEB-INF/lib, WEB-INF/classes, but what about my EJB's, and my libs that are shared bewteen the EJB's and the struts stuff? --- Thanks... Mick Knutson --- _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Define tag cannot set a null value' error
I need help with a "Define tag cannot set a null value' error" I get. I have a state and country that _is_ null, when the user first comes into this form for the first time. I do validate this when they submit the form, but I don't get that far. Can someone please help me with this? Here is the 2 relevant items from my registration.jsp: <%@ taglib uri="/WEB-INF/statetag.tld" prefix="states" %> <%@ taglib uri="/WEB-INF/cntrtag.tld" prefix="countries" %> . StackTrace: ServletException in:/WEB-INF/default/body/registration.jsp] Define tag cannot set a null value' javax.servlet.jsp.JspException: Define tag cannot set a null value at org.apache.struts.taglib.bean.DefineTag.doEndTag(DefineTag.java:272) at org.apache.jsp.registration$jsp._jspService(registration$jsp.java:93) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:192) at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:121) at org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude(TilesUtilStrutsModulesImpl.java:122) at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161) at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:702) at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:817) at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:466) at org.apache.jsp.default$jsp._jspService(default$jsp.java:321) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:192) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:129) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1058) at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:269) at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:249) at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:303) at org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:401) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420) at com.baselogic.yoursos.struts.ExtendedActionServlet.process(ExtendedActionServlet.java:40) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360) at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:342) at com.baselogic.yoursos.security.SecurityContextFilter.doFilter(SecurityContextFilter.java:102) at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334) at com.baselogic.yoursos.user.UserPreferenceFilter.doFilter(UserPreferenceFilter.java:46) at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558) at org.mortbay.http.HttpContext.handle(HttpContext.java:1714) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507) at org.mortbay.http.HttpContext.handle(HttpContext.java:1664) at org.mortbay.http.HttpServer.service(HttpServer.java:863) at org.jboss.jetty.Jetty.service(Jetty.java:460) at org.m