bye & thank you
Hi; I'm leaving the list but I wanted to say thank you to all that helped. And a plea to one of the struts experts - the world desperately needs a struts cookbook. ie, if you want to do X, here is how. The top 40 or 50 of those items would be wonderful (and cut down on traffic a lot). thanks - dave
O.T. Windward Studios offers free award-winning game for trying Windward Reports
The Offer Enemy Nations is one of the highest rated award winning Real-Time Strategy games ever created. And you can get a copy for free just by trying Windward Reports. The Game Meet interesting people on the Internet, then build big tanks and show the bastards who's boss! The Battle for the Last Planet Now that you've landed on the last planet, all you have to do is feed your people, power your city, fuel your economy, deploy your army and destroy Enemy Nations ... before they destroy you. Sophisticated Real-Time Strategy Enemy NationsĀ® is quite simply the most sophisticated, most challenging, and most interesting real-time strategy game ever published. For the free offer, please go to http://www.windwardreports.com/free.htm Windward Reports Windward ReportsT is the only J2EE report engine that uses Microsoft WordT as its layout tool -- so creating reports is fast & easy, for both technical and non-technical users. Combine that with the robust, plug 'n' play Windward Reports server engine and you've got an elegant, flexible and very affordable reporting solution. It's as easy as 1-2-3: 1.. Design your report template using MS-Word (or any RTF-capable editor). 2.. Send your XML data file and the report template to the Windward Reports Server. 3.. Specify your desired output format: PDF, RTF, HTML or TXT. That's it! There's no learning curve or added expenses for your layout tool, and the intuitive JSP-like formatting syntax let's you create everything from simple everyday reports to complex, enterprise-wide analyses. Look like a hero without ever breaking a sweat. For more information about Windward Reports, please go to http://www.windwardreports.com/
set a relative path instead of absolute for a jsp file
Hi; I have a situation where I need to have the jsp files with my html files. (I have just 2 of them and they use the same templates as the 100+ html files and they are a simple part of the website.) My J2EE server is configured to look in both the server's web application directory and c:/Inetpub/wwwroot so that part works ok. Here's the problem: IIS looks at the http request header to determine which website to go to. When that is set (which it is 99% of the time), it goes to c:/Inetpub/wwwroot/windwardreports and gets the file and everything works fine. But if there is no header info, then it goes to c:/Inetpub/wwwroot and now the jsp file is /windwardreports/demo.jsp instead of /demo.jsp. And now the J2EE server can't find it because struts is looking for /demo.jsp. Is there a way in struts to tell it to look for a relative path? In other words, if I start with windwardreports/form.jsp, then go to windwardreports/demo.jsp? thanks - dave
HttpSessionBindingListener & struts
Hi; Is there anything I have to do extra or be careful of if I have a HttpSessionBindingListener implementing class attached to my session? I assume not but figure it's safer to ask. thanks - dave
Re: URGENT - not finding applications.properties
locally loaded (I think - I'm using JRun and it has more than it's share of "issues"). thanks - dave - Original Message - From: "David G Friedman" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, September 26, 2003 11:43 AM Subject: RE: URGENT - not finding applications.properties > Are you struts related .jar files all locally loaded under your application > in WEB-INF/lib or are they in a common shared area for your application > server? > > Regards, > David > > -Original Message- > From: David Thielen [mailto:[EMAIL PROTECTED] > Sent: Friday, September 26, 2003 1:26 PM > To: Struts-Users > Subject: URGENT - not finding applications.properties > Importance: High > > > Hi; > > I have had struts working fine in one web application. I then added a second > web application - in it's own directory with it's own struts files, web.xml > file, etc. > > Now when I run the new application (which gets loaded first) finds it's > application.properties but the second application cannot find it's > application.properties. > > My web.xml is: > > ... > >application >resources.application > > ... > > thanks - dave > > > - > 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]
URGENT - not finding applications.properties
Hi; I have had struts working fine in one web application. I then added a second web application - in it's own directory with it's own struts files, web.xml file, etc. Now when I run the new application (which gets loaded first) finds it's application.properties but the second application cannot find it's application.properties. My web.xml is: ... application resources.application ... thanks - dave
Re: log4j setup
I put log4j.jar in the application server lib file - so all web apps are using the same logger. It has worked fine for me in that configuration. - Original Message - From: "Davide Bruzzone" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, September 24, 2003 7:40 AM Subject: RE: log4j setup Here are the steps: - Make sure that the appropriate Log4J JAR file is in your /WEB-INF/lib directory - Put your log4j.properties file in /WEB-INF/classes - Wherever you want to log, add the following code: import org.apache.log4j.Logger; ... // This is a private static attribute within the class private static Logger logger = Logger.getLogger(.class.getName()); ... // When you want to log something... logger.debug("Something..."); Hope this helps... If you need more information about the log4j.properties file, etc., the Log4J site points to lots of great (and very detailed) documentation that you can use as a starting point... Cheers... Dave Bruzzone -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 7:23 AM To: Struts Users Mailing List Subject: log4j setup Please let me know what are the steps one need to do to configure the log4j. - 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: Can I have 1 struts jar file for multiple servers/applications
ok - thanks - Original Message - From: "Steve Raeburn" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, September 23, 2003 10:56 PM Subject: RE: Can I have 1 struts jar file for multiple servers/applications > http://jakarta.apache.org/struts/userGuide/configuration.html#config_a > dd > > For more explanation see: > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.htm > l > > Steve > > > -Original Message- > > From: David Thielen [mailto:[EMAIL PROTECTED] > > Sent: September 23, 2003 9:08 PM > > To: Struts Users Mailing List > > Subject: Re: Can I have 1 struts jar file for multiple > > servers/applications > > > > > > ok - thanks. > > > > Is this because of static data in the jar files? > > > > Is this true of the commons*.jar files and jakarta-oro.jar > > too - or just > > struts.jar and struts-el.jar? > > > > Also, how about the JSTL jar files - do they need to be one > > for each web > > app? > > > > thanks - dave > > > > > > - Original Message - > > From: "Kwok Peng Tuck" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Tuesday, September 23, 2003 9:46 PM > > Subject: Re: Can I have 1 struts jar file for multiple > > servers/applications > > > > > > > There should be one struts jar for each web app, if you > > have 10 web app > > > then that's 10 struts.jar. > > > > > > David Thielen wrote: > > > > > > >Hi; > > > > > > > >I thought I read something somewhere that said I need to > > have a seperate > > set of struts jar files for each application or server. But > > I can't find it > > now. > > > > > > > >I am using JRun and under a given server it has multiple > > applications > > with each application having it's own web.xml and > > struts-config.xml files. > > Can several of these applications share the same struts.jar > > or do I need to > > put a seperate struts.jar in each application's WEB-INF directory? > > > > > > > >thanks - dave > > > > > > > > > > > > > > > > > > > > > - > > > 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: Can I have 1 struts jar file for multiple servers/applications
ok - thanks. Is this because of static data in the jar files? Is this true of the commons*.jar files and jakarta-oro.jar too - or just struts.jar and struts-el.jar? Also, how about the JSTL jar files - do they need to be one for each web app? thanks - dave - Original Message - From: "Kwok Peng Tuck" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, September 23, 2003 9:46 PM Subject: Re: Can I have 1 struts jar file for multiple servers/applications > There should be one struts jar for each web app, if you have 10 web app > then that's 10 struts.jar. > > David Thielen wrote: > > >Hi; > > > >I thought I read something somewhere that said I need to have a seperate set of struts jar files for each application or server. But I can't find it now. > > > >I am using JRun and under a given server it has multiple applications with each application having it's own web.xml and struts-config.xml files. Can several of these applications share the same struts.jar or do I need to put a seperate struts.jar in each application's WEB-INF directory? > > > >thanks - dave > > > > > > > - > 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]
Can I have 1 struts jar file for multiple servers/applications
Hi; I thought I read something somewhere that said I need to have a seperate set of struts jar files for each application or server. But I can't find it now. I am using JRun and under a given server it has multiple applications with each application having it's own web.xml and struts-config.xml files. Can several of these applications share the same struts.jar or do I need to put a seperate struts.jar in each application's WEB-INF directory? thanks - dave
How do I mix html & jsp files?
Hi; I have a large web site that is all html running on IIS. It's all in c:/inetpub/wwwroot/... I need 2 jsp files. And I want the jsp files to use the same DreamWeaver template files with the same menu bars, etc. The problem is my application server wants the jsp files over in it's directories. But all my links are relative. Any suggestions to get the jsp file relative links to go back to the c:/inetpub/wwwroot? (I can't use because the links come from a DreamWeaver template and is used by all the html files.) thanks - dave
Re: Suggested enhancements for next version
ok - will do - thanks - Original Message - From: "Craig R. McClanahan" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, September 10, 2003 11:28 AM Subject: Re: Suggested enhancements for next version > On Wed, 10 Sep 2003, David Thielen wrote: > > > Date: Wed, 10 Sep 2003 10:22:10 -0600 > > From: David Thielen <[EMAIL PROTECTED]> > > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > > To: Struts-Users <[EMAIL PROTECTED]> > > Subject: Suggested enhancements for next version > > > > Hi; > > > > These are a couple of suggestions I have for the next version of struts: > > > 1.. Can get the session in the ActionForm constructor. This would be > > very useful for initializing with data attached to the session. > > > 2.. Have a pre-page method in the Action that can be set in an > > like validate="true". This would give the Action class a chance > > to determine if this page can be displayed and do a forward if it > > cannot. For example in pages 2 - N of a multi-page series of forms. > > > 3.. Allow an with no form. This would be useful where a page > > has a form that is just a submit button. No ActionForm is needed but the > > is still prefered for the action it submits to. thanks - > > dave > > The best way to record suggestions like this is to put enhancement > requests into our issue tracking system: > > http://nagoya.apache.org/bugzilla/ > > Craig > > - > 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]
Suggested enhancements for next version
Hi; These are a couple of suggestions I have for the next version of struts: 1.. Can get the session in the ActionForm constructor. This would be very useful for initializing with data attached to the session. 2.. Have a pre-page method in the Action that can be set in an like validate="true". This would give the Action class a chance to determine if this page can be displayed and do a forward if it cannot. For example in pages 2 - N of a multi-page series of forms. 3.. Allow an with no form. This would be useful where a page has a form that is just a submit button. No ActionForm is needed but the is still prefered for the action it submits to. thanks - dave
Help please: Get session in a form ctor?
Hi; Is there any way inside an ActionForm constructor to get the HttpSession? This would let me set up forms without having to call an action before displaying a page. thanks - dave
Help please: Get session in a form ctor?
- Original Message - From: David Thielen To: Struts-Users Sent: Monday, September 08, 2003 9:54 PM Subject: Get session in a form ctor? Hi; Is there any way inside an ActionForm constructor to get the HttpSession? This would let me set up forms without having to call an action before displaying a page. thanks - dave
How to pre-populate - Husted post doesn't work (or I'm implementing it wrong)
Hi; I tried this below but when I did http://localhost/account/setup/pre it created a form but never called the action class. Any ideas? Also, shouldn't the scope below be session so the same form is used? thanks - dave a.. From: Ted Husted b.. Subject: Re: Pre populate c.. Date: Mon, 11 Jun 2001 08:20:16 -0700 Many times pre-processing and post-processing are related, and it can be convenient to handle both in the same Action class. A good way to implement this is to have a seperate Action Mapping for each task (pre-process and post-process). Both mappings would point to the same Action but use different (virtual) paths. Like say < /account/setup/pre > and < /account/setup/post >. These may both use the same Action class, which could be < package/account/setup.java >. The Struts mappings accept an extra "parameter" property that you can easily test in the Action to see which mapping has been chosen. Your action can then process each task differently, and even go to separate locations if successfuly. By managing this all in the struts-config.xml, you gain a lot of flexbility. In struts-config: In your Action: String task = mapping.getParameter(); // handle task for "pre" or task for "post" // ... // ... return (mapping.findForward("success")); -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 737-3463. -- http://www.husted.com/about/struts/ Kiet Nguyen wrote: > > I need to pre-populate my form and do some business processes prior to load > a page. Where would be the best place for this. I don't want to put it in > the peform method of the "from page". And doing business process at the > form bean does not seen appropriate.
Re: Struts Taglib + JSTL Feasible ??
I've been using jstl and html-el and it's working great. I don't use any other struts taglibs. - Original Message - From: "Prasenjit Narwade" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, September 01, 2003 11:39 AM Subject: Struts Taglib + JSTL Feasible ?? Hello Friends, I have been using Struts for about a year now. And have used most of the Struts tags with no problem whatsoever. Most knowledgeable users from this list suggest the using JSTL over struts tags (if there is an option). For the coming project we are planning to use JSTL. Members of our development team are quite comfortable using Struts tags, however, haven't used JSTL before. So to facilitate smooth tranisition we are looking at the feasibility of using JSTL and Struts taglib together to start with. I need to know whether it is possible to do so. Secondly, which set of struts tags (html, logic, etc.) should be preferred over JSTL counterpart and vice-versa. Regards, Prasenjit. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CreditCardValidator
Hi; CreditCardValidator is listed in the common-validator docs - but it's not in the jar file - any ideas where it is? thanks - dave
A new way to handle multi-page entry
Hi; I have an order system where the user has to enter data on 4 pages, one after the other. I don't want them able to bookmark the 4th page and go back to it later and try to place an order from there - with the previous three pages left empty. So here is what I did. To get each page, I have: The first page is order.jsp and it forwards to it. However, the second page is terms.jsp and instead it forward to the action class for order.jsp. If order.jsp is complete and valid, it maps to terms.jsp. But if it isn't, then it goes to order.jsp forcing them back. The beauty of this is: 1) It is all handled in the struts-config.xml file 2) It uses the validator for each page to see if the page is valid. Did I miss anything here? thanks - dave
Re: action-mapping forward - how do I use it?
That will work. But I am wondering why the action/forward doesn't work. Fromt he docs it seems like it should. thanks - dave - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, August 28, 2003 2:51 AM Subject: Re: action-mapping forward - how do I use it? > David, > what happens when you use a ? > > If the URL is wrong, have you tried ? > > Alternatively, don't use a form. Use a button inside a > > Hope that helps > Adam > > On 08/27/2003 09:56 PM David Thielen wrote: > > Hi; > > > > I have a case where, when the user clicks on a button, I want the action to be to go to a new page. No ActionServlet or ActionForm because the only thing in the form is the button. > > > > But I would like to use the action-mapping to determine where to go. I tried to do this with: > >> forward="/store/address.jsp"> > > > > > > But if I use a then it blows up on a null form. If I use a then it doesn't go to the mapped page. > > > > Is there any way to do this other than creating a do nothing action and form? (Seems to me it should be possible.) > > > > thanks - dave > > -- > struts 1.1 + tomcat 4.1.27 + java 1.4.2 > Linux 2.4.20 RH9 > > > - > 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: J2EE IDE
personally I think IntelliJ is wonderful - Original Message - From: "David Graham" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, August 27, 2003 6:04 PM Subject: RE: J2EE IDE > --- Paul Jackson <[EMAIL PROTECTED]> wrote: > > Sounds like you need to upgrade your machine. I have a standard PC (2 > > years old) and eclipse works fine on this... > > Either that or you need to upgrade your Eclipse and/or JRE version. > Startup time is under 20 seconds, I don't know what "Refresh time" is, and > I've only experienced crashes in rare use cases under Linux. I've found > Eclipse to be much more useable than VAJ, NetBeans/Forte, and JBuilder. > > David > > > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > > > Sent: Wednesday, 27 August 2003 7:30 PM > > To: Struts Users Mailing List > > Subject: Re: J2EE IDE > > > > > > OfCourse, I have tested it. Then only i can make these comments. > > I was just expressing my views on Eclipse for other people who were > > looking > > for a IDE. > > I have my own preferences for a IDE. > > > > thanks > > -raj > > > > > > > > > > > > > > "Kwok Peng Tuck" > > > > <[EMAIL PROTECTED]To: "Struts Users > > Mailing List" <[EMAIL PROTECTED]> > > net> cc: > > > >Subject: Re: J2EE IDE > > > > 27/08/2003 02:46 > > > > PM > > > > Please respond to > > > > "Struts Users > > > > Mailing List" > > > > > > > > > > > > > > > > > > > > Have you actually tested it ? > > If you haven't then try it and see for yourself. > > Or you could try the other java based ide's around if you are not happy > > with Eclipse. > > > > [EMAIL PROTECTED] wrote: > > > > >But eclipse has many problems at runtime. > > > > > >Boot up time is too high. > > >Refresh time too high. > > >Crashes very often. > > > > > >Am i right on these points ? > > > > > >thanks > > >-raj > > > > > > > > > > > > > > > > > "Firat TIRYAKI" > > > > > <[EMAIL PROTECTED]To: "Struts Users > > Mailing List" <[EMAIL PROTECTED]> > > > m.tr>cc: > > > > > Subject: Re: J2EE IDE > > > > > 27/08/2003 01:33 > > > > > PM > > > > > Please respond to > > > > > "Struts Users > > > > > Mailing List" > > > > > > > > > > > > > > > > > > > > > > > > > > >you should use eclipse, it doesn't use swing for GUI's, and it's faster > > >than > > >the others. > > > > > >F. > > > > > >- Original Message - > > >From: <[EMAIL PROTECTED]> > > >To: <[EMAIL PROTECTED]> > > >Sent: Wednesday, August 27, 2003 9:46 AM > > >Subject: J2EE IDE > > > > > > > > > > > > > > >>Can someone please suggest me a free J2EE IDE suitable for development > > of > > >>webapps using STRUTS. I know of some IDE's like the FORTE, ECLIPSE, > > >>NETBEANS. However I wanted to ckeckout if anyone has already evaluated > > >> > > >> > > >any > > > > > > > > >>of these since I am not sure which one is easy to use and has > > reasonably > > >>good features as well. > > >> > > >>Regards > > >>Sreekant G > > >> > > >> > > >> > > >> > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >>- > > >>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] > > > > > __ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAI
action-mapping forward - how do I use it?
Hi; I have a case where, when the user clicks on a button, I want the action to be to go to a new page. No ActionServlet or ActionForm because the only thing in the form is the button. But I would like to use the action-mapping to determine where to go. I tried to do this with: But if I use a then it blows up on a null form. If I use a then it doesn't go to the mapped page. Is there any way to do this other than creating a do nothing action and form? (Seems to me it should be possible.) thanks - dave
one page, multiple forward to's - how do I do that?
Hi; This has probably been asked a million times. I have several pages where the user can click to go to a login page. I want to use the same page for the login. How can I set it so that after the login it goes back to the page it came from? thanks - dave
Re: login test in a jsp page - any suggestions
How can I set things up so people can't get to a jsp page? I can set it up so a jsp page is never in the url - but if someone knows the file name they can still get to it. (And a cardinal rule of security is that an unlisted filename is not very effective protection.) thanks - dave - Original Message - From: "Emerson Cargnin" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, August 26, 2003 2:52 PM Subject: Re: login test in a jsp page - any suggestions > isn't it should be better to put his verification at actions? maybe a > common super action could validade it, but I think that the jsp should > be the last place to put it. Ideally, the jsp's are not even exposed to > clients, making the access the view only through actions. > > David Thielen wrote: > > Hi; > > > > I want to put a test in every jsp page to see if the user is logged in. And if not, to forward them to login.jsp. Is there any way to do this other than putting java code in my jsp? I'm hoping there is some struts system like . > > > > (Yes, I can have everything be an action that does this test and then goes to the jsp page - but in that case what if they type the path for the jsp page directly?) > > > > thanks - dave > > > -- > Emerson Cargnin > Analista de Sistemas > Setor de Desenvolvimento de Sistemas - TRE-SC > tel : (048) - 251-3700 - Ramal 3181 > > > - > 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: login test in a jsp page - any suggestions
I used login as a simple example. But I have another case that is not as simple. I have a 5 page check-out procedure. I want to set it up so that each page will forward to the previous page if the previous page's input fields have not been filled out yet. So each page has to do a different check. In other words, page 1 is the order page. Page 2 is enter your name & address, page 3 is the visa card info. So if they go straight to page 3, I want it to see that the name/address is not entered and go to that page. That page sees that no items are order and forwards to that page. So each page has a unique test and forward to. Any good ideas for this situation? thanks - dave - Original Message - From: "Cezar Nasui" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, August 26, 2003 6:56 PM Subject: RE: login test in a jsp page - any suggestions > Hi Dave, > You have more choices to do user authentication, depending on your > application's need, your experience and determination :) > > 1. you can put it in every jsp but just think at the maintenance. Having > to modify all those jsp for one little change is not that fun. > > 2. If you use struts you can check for user in every Action and > depending on the result forward him to the proper page. This again is > difficult to maintain if you have many Actions but it easy to do and > understand > > 3. Extend RequestProcessor class so you can write your code in just one > place. RequestProcessor is called before any Action. I don't have any > link to example but I think someone here will help you with this ;) > > 4. Security constraints / container authentication, related to Tomcat > as I understand is well documented on http://jakarta.apache.com/tomcat/ > The advantage of this method, less code and centralized authentication. > It seems to be the most used method around here > > 5. Filter authentication, similar in a way to container, the same > advantages. Basic you create a class that does the authentication > against database etc, and you modify web.xml file to direct all the > requests by the filter. > > 6. A method I didn't try yet and don't know much about, use of a tag-lib > on every jsp to do the authentication. > > These are the methods I found reading posts going back to 2001 in this > mailing list. I use this link to search the mailing list: > http://marc.theaimsgroup.com/?l=struts-user&r;=1&w;=2 > > HTH, > Cezar > > > -Original Message- > > From: David Thielen [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, August 26, 2003 4:16 PM > > To: Struts-Users > > Subject: login test in a jsp page - any suggestions > > > > Hi; > > > > I want to put a test in every jsp page to see if the user is logged in. And > > if not, to forward them to login.jsp. Is there any way to do this other than > > putting java code in my jsp? I'm hoping there is some struts system like > > . > > > > > > (Yes, I can have everything be an action that does this test and then goes > > to the jsp page - but in that case what if they type the path for the jsp > > page directly?) > > > > thanks - dave > > > > - > > 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]
login test in a jsp page - any suggestions
Hi; I want to put a test in every jsp page to see if the user is logged in. And if not, to forward them to login.jsp. Is there any way to do this other than putting java code in my jsp? I'm hoping there is some struts system like . (Yes, I can have everything be an action that does this test and then goes to the jsp page - but in that case what if they type the path for the jsp page directly?) thanks - dave
Re: Telling Users to Wait
Hi; The method I use (which gives no % update) is I forward to a page that says please wait and has an animated gif. That page does a " To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, August 21, 2003 6:02 PM Subject: Telling Users to Wait Hello Struts Gurus, I am facing an issue in my application where I need to run a database creation script, and a database import script through the web (running bat files on the server). I can run these files fine, but they take a few minutes to run... How can I tell the user when they have finished running? This seems to be a sort of push technology I am in need of, but maybe there is another way?. I can definitely tell them to wait for a few minutes, but how do I actually tell them when the process is done (since there is not another page request at this time.) Has anyone done something similar to this? Thanks, Mark - 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]
Exception if no form in my action mapping - why?
Hi; When I set an action mapping as this (no form): It threw an exception. When I added a from like this: It worked. Any ideas? In my .jsp I have: thanks - dave
Re: Why can't I have no form?
I am using: - Original Message - From: "David Thielen" <[EMAIL PROTECTED]> To: "Struts-Users" <[EMAIL PROTECTED]> Sent: Monday, August 18, 2003 11:58 AM Subject: Why can't I have no form? Hi; When I set an action mapping as this (no form): It threw an exception. When I added a from like this: It worked. Any ideas? thanks - dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Why can't I have no form?
Hi; When I set an action mapping as this (no form): It threw an exception. When I added a from like this: It worked. Any ideas? thanks - dave
Thank you
Hi; I spent this last week learning struts and implementing my first site using it. And I just wanted to say thank you to everyone who helped me. thanks - dave
Re: validation - phone, state, & zipcode
Hi; I figure you can do something that does the best it can for each country. And it gets improved over time. For example, the first rev would probably only actually check 4 or 5 countries and all others would be "approved." But over time it would be added to. But it does require passing a locale because it could be a different locale from that of the page (ie a server in the U.S. is getting info from a user in Germany for an address in Greece). - dave - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, August 15, 2003 12:06 PM Subject: Re: validation - phone, state, & zipcode > Do you want one that makes you coffee at the same time? ;) > > I don't think that there is even a java.util.Locale property for > postcode format or phone number length (which judging by British Telecom > can be random!). Are there any ISO standards for that? > > Adam > > On 08/14/2003 06:52 PM David Thielen wrote: > > Hi; > > > > Is there a standard validation package out there that handles phone number, state, & zipcode based on country? > > > > thanks - dave > > -- > struts 1.1 + tomcat 4.1.27 + java 1.4.2 > Linux 2.4.20 RH9 > > > - > 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]
validations it would be really nice to have
It would require using the locale but 3 really nice validations would be: state, zip code, and phone number. - dave
Re: Help please - indexed field in ActionForm
Hi; Thank you - this is part of what I need. Is there any way to iterate through the lines if I don't know up front how many lines there will be? I tried the with the c JSTL and it doesn't work. thanks - dave - Original Message - From: "Gary Kephart" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, August 07, 2003 4:55 PM Subject: RE: Help please - indexed field in ActionForm class MyActionForm { private static final MAX_ENTRIES = 50; private String[] text; public MyActionForm() { text = new String[MAX_ENTRIES]; } public String[] getText() {return text;} public void setText(int index, String newText) {text[index] = newText;} } my.jsp Label 1: Label 2: Gary Kephart| New Century Mortgage Web-Based Application Developer | http://www.ncen.com [EMAIL PROTECTED] | 340 Commerce 949-797-5660| Irvine, CA 92602-1318 > -----Original Message- > From: David Thielen [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 07, 2003 3:46 PM > To: Struts-Users > Subject: Help please - indexed field in ActionForm > > > Hi; > > I've been fighting this all day with no luck. And it has to > be a simple thing to do. > > I have a form where I have N lines in it. Each line needs to > have some text displayed and an edit box. > > How do I set this up in the .jsp file and in the ActionForm? > I've found a number of examples on the web but they all have > incomplete code and my guesses for the rest of the code have > not been right so far. > > thanks - dave > - 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]
application.properties question
Hi; The application.properties file that comes with the blank struts sample has a bunch of strings already in it. Are these strings needed by struts or are they just suggested strings for sample errors I might have in my pages? Also, are these sample files available in languages other than english? And if so, where do I get them? thanks - dave
Installing struts-el - questions
Hi; As I understand it (please correct if I am wrong): 1.. I use the struts-el/lib/* files instead of the struts file 2.. The struts-el/webapps/strutsel-exercise-taglib.war is a sample and can be ignored. 3.. Do I use the JSTL *.tld files in the struts-el/lib directory - or the ones that came with my application server (JRun 4)? 4.. If I am starting a new spplication from scratch - do I need struts-el at all? Or should I just use JSTL and struts-html.tld? thanks - dave
c:forEach & html-el:text - it's not working
Hi; I am trying to use html-el:text inside a c:forEach and according to everything I have read - this should work. But it doesn't. Any ideas? thanks - dave my jsp ... Where OrderForm.java has: ... public OrderFormItem [] getItems() { return items; } public OrderFormItem getItem( int ind ){ return items[ind]; } public void setItem( int ind, OrderFormItem ofi ){ items[ind] = ofi; } ... and OrderFormItem has: ... public String getQty() { return Integer.toString(qty); } public void setQty( String num){ qty = Integer.parseInt(num);} ...
How to validate page 1 in page 2 action/form (multi-page form)
Hi; When the user clicks submit on page 2 of a form, I need to check page 1 also because they may have gotten to page 2 with a bookmark. My page 1 validation is with the page 1 form validate. page 2 has a different form. Should I: 1.. Look for the page 1 form attached to the session and if it's not there, go back to page 1? And if so, how do I get that object? 2.. Call the page1 form validate and look at the return value? And if so, how do I get the object? 3.. Another approach? thanks - dave
Re: forEach & html-el:text - it's not working
That didn't work - I got: [1]javax.servlet.jsp.JspException: No getter method for property orderForm.items[${status.count}].qty of bean org.apache.struts.taglib.html.BEAN But there is methods so OrderForm.getItems(index).getQty() is legit. any ideas? thanks - dave - Original Message - From: "Erez Efrati" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, August 12, 2003 4:23 PM Subject: RE: forEach & html-el:text - it's not working > In order to make it work you should try something like > > > > Hope this helps, > Erez > > -Original Message- > From: David Thielen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 12, 2003 11:03 PM > To: Struts-Users > Subject: c:forEach & html-el:text - it's not working > > Hi; > > I am trying to use html-el:text inside a c:forEach and according to > everything I have read - this should work. But it doesn't. Any ideas? > > thanks - dave > > my jsp > ... > varStatus="status"> > > indexed="true"/> > > > > Where OrderForm.java has: > ... > public OrderFormItem [] getItems() { return items; } > public OrderFormItem getItem( int ind ){ return items[ind]; } > public void setItem( int ind, OrderFormItem ofi ){ items[ind] = ofi; > } > ... > > and OrderFormItem has: > ... > public String getQty() { return Integer.toString(qty); } > public void setQty( String num){ qty = Integer.parseInt(num);} > ... > > > > - > 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: forEach & html-el:text - it's not working
there is a setQty (see bottom). Also, shouldn't work? According to the docs it should - I think. But I get: 500 Translator.CompilationFailedExceptionCompiler errors: Found 1 semantic error compiling "C:/JRun4/servers/default/store/WEB-INF/jsp/jrun__order2ejspa.java": 138. _tag6.setIndexed(__constantTable.getString(6)); <> *** Error: No match was found for method "setIndexed(java.lang.String)". Translator.CompilationFailedExceptionCompiler errors: Found 1 semantic error compiling "C:/JRun4/servers/default/store/WEB-INF/jsp/jrun__order2ejspa.java": 138. _tag6.setIndexed(__constantTable.getString(6)); <> *** Error: No match was found for method "setIndexed(java.lang.String)". - Original Message - From: "Erez Efrati" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, August 12, 2003 4:13 PM Subject: RE: forEach & html-el:text - it's not working > David, > > As far as I can tell you, this cannot work. The population from the > request to a new fresh form will fail due to the fact that the form > doesn't have a setQty() setter method. > > Erez > > -Original Message- > From: David Thielen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 12, 2003 11:03 PM > To: Struts-Users > Subject: c:forEach & html-el:text - it's not working > > Hi; > > I am trying to use html-el:text inside a c:forEach and according to > everything I have read - this should work. But it doesn't. Any ideas? > > thanks - dave > > my jsp > ... > varStatus="status"> > > indexed="true"/> > > > > Where OrderForm.java has: > ... > public OrderFormItem [] getItems() { return items; } > public OrderFormItem getItem( int ind ){ return items[ind]; } > public void setItem( int ind, OrderFormItem ofi ){ items[ind] = ofi; > } > ... > > and OrderFormItem has: > ... > public String getQty() { return Integer.toString(qty); } > public void setQty( String num){ qty = Integer.parseInt(num);} > ... > > > > - > 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]
wants org.apache.taglibs.standard.tag.el.core.ForEachTag instead of org.apache.taglibs.standard.tag.core.ForEachTag (ie no .el.)
Hi; If I have the following in the top of my jsp file: <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%> <%@ taglib prefix="html" uri="/tags/struts-html"%> And this in my web.xml file: http://java.sun.com/jstl/core /WEB-INF/c.tld /tags/struts-html /WEB-INF/struts-html.tld Why is it looking for the struts-el version of forEach? thanks - dave
Re: Code of a method longer than 65535 bytes
thank you - good idea - Original Message - From: "Mark Galbreath" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Thursday, August 14, 2003 7:45 AM Subject: RE: Code of a method longer than 65535 bytes Don't use the page directive (@), use and you will find the 64k limitation can be circumvented. Mark -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 9:37 AM To: Struts Users Mailing List Subject: Re: Code of a method longer than 65535 bytes I'm using JRun 4 - and need it for the EJB support so Tomcat's out. I also use [EMAIL PROTECTED] file="countries.jsp"% to pull the countries in. But regardless of how they are pulled in, they will be expanded within the form to be the actual select text. I guess I'll push Macromedia to eliminate the 64K limit. thanks - dave - Original Message - From: "Craig R. McClanahan" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, August 14, 2003 12:31 AM Subject: RE: Code of a method longer than 65535 bytes > On Thu, 14 Aug 2003, Suresh Addagalla wrote: > > > Date: Thu, 14 Aug 2003 10:33:38 +0530 > > From: Suresh Addagalla <[EMAIL PROTECTED]> > > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>, > > [EMAIL PROTECTED] > > To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> > > Subject: RE: Code of a method longer than 65535 bytes > > > > > > Hello Criag, > > > > > * Use a JSP page compiler that doesn't make page developers deal > > > with the 64k limit problem (like Tomcat 4.1 or 5.0). > > > > I am using Tomcat 4.1.12 on Windows, and I got this problem. If any > > one has a clear idea on the min version of Tomcat I should use to > > get rid of this problem, please let me know. > > > > Jasper2 was introduced around 4.1.18 or so, so anything later than > that would be a good bet. The current production version is 4.1.27. > > But for the particular case of lots of countries being used twice, you > should really really really be using no matter what > container you run on, so that updates to the list only have to happen > in one place rather than two. > > > Thanks, > > Suresh > > Craig > > PS: If you're currently using a Jasper1 based Tomcat, you'll also be > very pleased with the performance improvements in rendering speed for > Jasper2 compiled JSP pages. > > > - > 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]
why no
Hi; Wouldn't it be useful if you could do: Instead of: today
Re: JSTL and struts tag libraries
yes & yes. - but you still need html-el. - Original Message - From: "Butt, Dudley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 13, 2003 9:30 AM Subject: JSTL and struts tag libraries > Hi, > > Is it true to say that one should use JSTL instead of the struts taglibs? > If so, is JSTL a seperate topic to be learned and therefore will not be covered in any of the struts books for sale? > > thx > > > > > > NOTICE: > > This message contains privileged and confidential information intended > only for the person or entity to which it is addressed. > Any review, retransmission, dissemination, copy or other use of, or > taking of any action in reliance upon this information by persons or > entities other than the intended recipient, is prohibited. > > If you received this message in error, please notify the sender > immediately by e-mail, facsimile or telephone and thereafter delete the > material from any computer. > > The New Africa Capital Group, its subsidiaries or associates do not > accept liability for any personal views expressed in this message. > > - > 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: c:forEach & html-el:text - it's not working
weirder and weirder - I think I'm doing the same thing. Now this works: - Original Message - From: "Vic Cekvenich" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 12, 2003 4:30 PM Subject: Re: c:forEach & html-el:text - it's not working > David Thielen wrote: > "although that doesn't make sense since this is something so basic" > > Here is simlar example that does work. > http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/bPproj/bP/WEB-INF/portlets/cms/ContentAprvMR.jsp > > hth, > > .V > > > > - > 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: major weirdness with c:forEach & html-el:text
actually the jstl part is working fine. it's the html-el part that's acting weird. - dave - Original Message - From: "Mark Galbreath" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, August 12, 2003 8:30 PM Subject: RE: major weirdness with c:forEach & html-el:text This is becoming more prevalent: questions about JSTL. There is a JSTL users list, so why not ask those questions there? For that matter, why not ban questions about JSF and all the st00pid ??? about "how do I configure xxx platform for Struts?" This list has gotten out-of-hand as far as segue requests from people who have no clue as to what the purpose of the list is for. I say, "BAN THE BASTARDS!" If anyone posts something like, "I have a comic book collection...blah, blah, blah..." I say "KEEL-HAUL THE SCUM!" hm...wait a minute. That was me asking for a clue on the comics thang... never mind... aka dumbass -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 10:08 PM To: Struts-Users Subject: major weirdness with c:forEach & html-el:text Hi; I am hitting a major roadblock with this. And it looks like it is generating bad code from the jsp. Here is the problem very simply. This works: This fails: with the error: 500 Translator.CompilationFailedExceptionCompiler errors: Found 1 semantic error compiling "C:/JRun4/servers/default/store/WEB-INF/jsp/jrun__order2ejspa.java": 190. _tag8.setIndexed(__constantTable.getString(8)); <> *** Error: No match was found for method "setIndexed(java.lang.String)". Translator.CompilationFailedExceptionCompiler errors: Found 1 semantic error compiling "C:/JRun4/servers/default/store/WEB-INF/jsp/jrun__order2ejspa.java": 190. _tag8.setIndexed(__constantTable.getString(8)); <> *** Error: No match was found for method "setIndexed(java.lang.String)". the generated code is: org.apache.strutsel.taglib.html.ELTextTag _tag8 = (org.apache.strutsel.taglib.html.ELTextTag) pageContext.getTagHandlerInstance(8,org.apache.strutsel.taglib.html.ELTextTa g.class); _tag8.setPageContext(pageContext); _tag8.setParent(_tag4); _tag8.setIndexed(__constantTable.getString(8));// <<< line 190 _tag8.setName(__constantTable.getString(9)); _tag8.setProperty(__constantTable.getString(10)); Any ideas? thanks - dave - 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]
action forward -> redirect
Hi; I have action forwards in my action mapping as such: So on a success it forwards to /terms.jsp. However, the browser url is still OrderSubmit.do. This is what a forward is supposed to do. But what if I want the browser to now show /terms.jsp? Is there some way to do an action redirect without another jsp to have a redirect in it? Also, for a multi-page form - do I want each page to have a different url in the browser? Or just one that runs everything? Life is easier from a programming point of view if each page has it's own action and form. thanks - dave
validation - phone, state, & zipcode
Hi; Is there a standard validation package out there that handles phone number, state, & zipcode based on country? thanks - dave
Re: really weird - evaluating a comment
That makes sense. As long as it doesn't blow up it will still be a comment in the final html. thanks - dave - Original Message - From: "Steve Widmar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 12, 2003 9:09 PM Subject: Re: really weird - evaluating a comment Dave: Browsers will ignore comments of that style - jsp processors wont. (its possible that you - or someone else - may want HTML comment content that is the result of a processed custom action, er, tag) Using jsp comment syntax will give you what you need - <%-- --%> Steve >>> [EMAIL PROTECTED] 08/12/03 07:27PM >>> Hi; The following line in my jsp is throwing an exception: Correct me if I'm wrong - but since it's a comment - shouldn't it be left alone? thanks - dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
major weirdness with c:forEach & html-el:text
Hi; I am hitting a major roadblock with this. And it looks like it is generating bad code from the jsp. Here is the problem very simply. This works: This fails: with the error: 500 Translator.CompilationFailedExceptionCompiler errors: Found 1 semantic error compiling "C:/JRun4/servers/default/store/WEB-INF/jsp/jrun__order2ejspa.java": 190. _tag8.setIndexed(__constantTable.getString(8)); <> *** Error: No match was found for method "setIndexed(java.lang.String)". Translator.CompilationFailedExceptionCompiler errors: Found 1 semantic error compiling "C:/JRun4/servers/default/store/WEB-INF/jsp/jrun__order2ejspa.java": 190. _tag8.setIndexed(__constantTable.getString(8)); <> *** Error: No match was found for method "setIndexed(java.lang.String)". the generated code is: org.apache.strutsel.taglib.html.ELTextTag _tag8 = (org.apache.strutsel.taglib.html.ELTextTag) pageContext.getTagHandlerInstance(8,org.apache.strutsel.taglib.html.ELTextTag.class); _tag8.setPageContext(pageContext); _tag8.setParent(_tag4); _tag8.setIndexed(__constantTable.getString(8));// <<< line 190 _tag8.setName(__constantTable.getString(9)); _tag8.setProperty(__constantTable.getString(10)); Any ideas? thanks - dave
Re: wants org.apache.taglibs.standard.tag.el.core.ForEachTag instead of org.apache.taglibs.standard.tag.core.ForEachTag (ie no .el.)
never mind - Original Message - From: "David Thielen" <[EMAIL PROTECTED]> To: "Struts-Users" <[EMAIL PROTECTED]> Sent: Tuesday, August 12, 2003 12:00 PM Subject: wants org.apache.taglibs.standard.tag.el.core.ForEachTag instead of org.apache.taglibs.standard.tag.core.ForEachTag (ie no .el.) Hi; If I have the following in the top of my jsp file: <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%> <%@ taglib prefix="html" uri="/tags/struts-html"%> And this in my web.xml file: http://java.sun.com/jstl/core /WEB-INF/c.tld /tags/struts-html /WEB-INF/struts-html.tld Why is it looking for the struts-el version of forEach? thanks - dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: forEach & html-el:text - it's not working
Hi; I thought it was that too. But the only files I have are: 06/29/2003 09:50 PM 178,443 struts-el.jar 06/29/2003 09:50 PM 498,051 struts.jar and I downloaded them yesterday from the jakarta site (new computer). I also deleted the generated java files and added a text string to the jsp so I know it was building it new. The tld files I get from the struts jar files. I don't have any mapping or anything, I just let the uri in the <%@ taglib... cause it to find it in the jar file in the classpath. So unless another jar has that tld file (and I've looked), I don't see how it can be that. thanks - dave - Original Message - From: "David M. Karr" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 12, 2003 8:13 PM Subject: Re: forEach & html-el:text - it's not working > >>>>> "David" == David Thielen <[EMAIL PROTECTED]> writes: > > David> there is a setQty (see bottom). > David> Also, shouldn't David> indexed="true"/> work? According to the docs it should - I think. But I get: > > David> 500 Translator.CompilationFailedExceptionCompiler errors: > David> Found 1 semantic error compiling > David> "C:/JRun4/servers/default/store/WEB-INF/jsp/jrun__order2ejspa.java": > > David> 138. _tag6.setIndexed(__constantTable.getString(6)); > David> <> > David> *** Error: No match was found for method "setIndexed(java.lang.String)". > > The compile error is correct. That method doesn't exist. The error is that > that function call should not have been generated. It should have generated a > call to "setIndexedExpr(String)" instead. This would indicate the JSP servlet > is not following the JavaBeans specification for some reason, or perhaps it > found a very old version of the library in the classpath. > > First of all, are you certain your "taglib" directive is referencing the > correct TLD file? > > If I were you, I would carefully examine your CLASSPATH and make sure you don't > have any old versions of jar files. > > I would also clear out all of your generated JSP classes. > > -- > === > David M. Karr ; Java/J2EE/XML/Unix/C++ > [EMAIL PROTECTED] ; SCJP; SCWCD > > > > > - > 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]
I18N - Currency question
Hi; I am displaying currency in my website. It is always in U.S. dollars so I am doing: NumberFormat.getCurrencyInstance().format( (float) price / 100f ); Two questions: 1.. I assume I should set the locale for this to en_US since I want to have the dollar sign. 2.. Should it do the commas and periods to the user's locale - or is everyone used to dollars using the US comma/period setup. thanks - dave
Not keeping one value in ActionForm on reload
Hi; I have an Action & ActionForm where scope is not set (so it's session). After submitting the page and it goes on to the next page, if I do a BACK and RELOAD, then one of the edit fields goes back to null. The other retains the value it was set to. Any idea why that would happen? I log the values in the Action object and it is the correct value there. thanks - dave
really weird - evaluating a comment
Hi; The following line in my jsp is throwing an exception: Correct me if I'm wrong - but since it's a comment - shouldn't it be left alone? thanks - dave
Re: action forward -> redirect
never mind - found the redirect attribute. Although I still have the question: Also, for a multi-page form - do I want each page to have a different url in the browser? Or just one that runs everything? Life is easier from a programming point of view if each page has it's own action and form. thanks - dave - Original Message - From: David Thielen To: Struts-Users Sent: Tuesday, August 12, 2003 9:05 PM Subject: action forward -> redirect Hi; I have action forwards in my action mapping as such: So on a success it forwards to /terms.jsp. However, the browser url is still OrderSubmit.do. This is what a forward is supposed to do. But what if I want the browser to now show /terms.jsp? Is there some way to do an action redirect without another jsp to have a redirect in it? Also, for a multi-page form - do I want each page to have a different url in the browser? Or just one that runs everything? Life is easier from a programming point of view if each page has it's own action and form. thanks - dave
Two forms on one page -
Hi; I have two forms on one page. In this case, how do I handle for each form? I want to put the errors from each form above that form. thanks - dave
Two forms on one page
Hi; I have two forms on one page. In this case, how do I handle for each form? thanks - dave
Re: N form items as fields
Any suggestions for a good website or book that explains this? I have "Struts in Action" and it doesn't really have any examples of this. Also, I understand using the JSTL to do an iterate. My question is for the ActionForm - how do I set that up to have N items? thanks - dave - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, August 07, 2003 1:56 AM Subject: Re: N form items as fields > Hi Dave, > you should look at indexed or nested tags with the iterate tag. > > hth > Adam > > David Thielen wrote: > > Hi; > > > > I have a jsp page where I want to display N items where I get the N items from the database. I need to have an edit field with each item. Whats the best way to do this in struts? > > > > thanks - dave > > > > > > > - > 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: c:forEach & html-el:text - it's not working
Hi; I think this is an error in struts - although that doesn't make sense since this is something so basic. But it appears to be throwing an exception because it can't find a method in ELTextTag. When I do a , I get an exception that resolves to: 138. _tag6.setIndexed(__constantTable.getString(6)); <> *** Error: No match was found for method "setIndexed(java.lang.String)". Translator.CompilationFailedExceptionCompiler errors: Found 1 semantic error compiling "C:/JRun4/servers/default/store/WEB-INF/jsp/jrun__order2ejspa.java": 138. _tag6.setIndexed(__constantTable.getString(6)); <> *** Error: No match was found for method "setIndexed(java.lang.String)". The code for this is: org.apache.strutsel.taglib.html.ELTextTag _tag6 = (org.apache.strutsel.taglib.html.ELTextTag) pageContext.getTagHandlerInstance(6,org.apache.strutsel.taglib.html.ELTextTag.class); _tag6.setPageContext(pageContext); _tag6.setParent(_tag4); _tag6.setIndexed(__constantTable.getString(6)); // <<< this is the line throwing the exception Any idea what's going on? thanks - dave - Original Message - From: "David Thielen" <[EMAIL PROTECTED]> To: "Struts-Users" <[EMAIL PROTECTED]> Sent: Tuesday, August 12, 2003 3:03 PM Subject: c:forEach & html-el:text - it's not working Hi; I am trying to use html-el:text inside a c:forEach and according to everything I have read - this should work. But it doesn't. Any ideas? thanks - dave my jsp ... Where OrderForm.java has: ... public OrderFormItem [] getItems() { return items; } public OrderFormItem getItem( int ind ){ return items[ind]; } public void setItem( int ind, OrderFormItem ofi ){ items[ind] = ofi; } ... and OrderFormItem has: ... public String getQty() { return Integer.toString(qty); } public void setQty( String num){ qty = Integer.parseInt(num);} ...
struts, Dreamweaver, & Dreamweaver templates
Hi; I created my jsp pages using Dreamweaver and using the templates feature in Dreamweaver. I'm now incorporating struts and mixing that with Dreamweaver is difficult. Does this work ok or should I give up on templates? thanks - dave
Re: Code of a method longer than 65535 bytes
I'm using JRun 4 - and need it for the EJB support so Tomcat's out. I also use [EMAIL PROTECTED] file="countries.jsp"% to pull the countries in. But regardless of how they are pulled in, they will be expanded within the form to be the actual select text. I guess I'll push Macromedia to eliminate the 64K limit. thanks - dave - Original Message - From: "Craig R. McClanahan" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, August 14, 2003 12:31 AM Subject: RE: Code of a method longer than 65535 bytes > On Thu, 14 Aug 2003, Suresh Addagalla wrote: > > > Date: Thu, 14 Aug 2003 10:33:38 +0530 > > From: Suresh Addagalla <[EMAIL PROTECTED]> > > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>, > > [EMAIL PROTECTED] > > To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> > > Subject: RE: Code of a method longer than 65535 bytes > > > > > > Hello Criag, > > > > > * Use a JSP page compiler that doesn't make page developers deal > > > with the 64k limit problem (like Tomcat 4.1 or 5.0). > > > > I am using Tomcat 4.1.12 on Windows, and I got this problem. If any one > > has a clear idea on the min version of Tomcat I should use to get rid of > > this problem, please let me know. > > > > Jasper2 was introduced around 4.1.18 or so, so anything later than that > would be a good bet. The current production version is 4.1.27. > > But for the particular case of lots of countries being used twice, you > should really really really be using no matter what > container you run on, so that updates to the list only have to happen in > one place rather than two. > > > Thanks, > > Suresh > > Craig > > PS: If you're currently using a Jasper1 based Tomcat, you'll also be very > pleased with the performance improvements in rendering speed for Jasper2 > compiled JSP pages. > > > - > 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]
validation philosophical question
Hi; Everyone who hits my site has a high-speed connection. So I am thinking that it makes sense to do server side validation only as that provides a better method than the javascript pop-ups. And in this case, it seems to me that the logical place for all validation then is inside the ActionForm validate method. comments? thanks - dave
Help please - indexed field in ActionForm
Hi; I've been fighting this all day with no luck. And it has to be a simple thing to do. I have a form where I have N lines in it. Each line needs to have some text displayed and an edit box. How do I set this up in the .jsp file and in the ActionForm? I've found a number of examples on the web but they all have incomplete code and my guesses for the rest of the code have not been right so far. thanks - dave
Code of a method longer than 65535 bytes
Hi; Inside a form I have 2 address blocks - each with a selection of countries. This is more that 64K chars inside the Any ideas how to get around this? thanks - dave
Asking again - basic design question
Hi; I am designing a store check-out process. The old software (pre-struts) had a check at the top of each page to make sure the information from the previous page had been entered. And if not, forwarded to that page. So if you bookmarked the last page and went there, you would get forwarded back page by page and still start on the first page. For my new system (using struts), what's the suggested process: 1.. Something like that? Only to be real struts-like I would need to have it go to a page that immediately called an action to see if all data needed for that page was there yet. 2.. Keep a single url so they cannot go to any page other than the first, then the second, etc. In this case, going back in the browser and then clicking reload would take them back to the page they were on. 3.. Just do the standard struts action when they submit a page and in that action go back to the first page for which I have incomplete information. So they can bookmark and click the "purchase" submit but it would then take them back to the first page of the checkout process. So, what's standard out there? thanks - dave
Design question
Hi; I am designing a store check-out process. The old software (pre-struts) had a check at the top of each page to make sure the information from the previous page had been entered. And if not, forwarded to that page. So if you bookmarked the last page and went there, you would get forwarded back page by page and still start on the first page. For my new system (using struts), what's the suggested process: 1.. Something like that? Only to be real struts-like I would need to have it go to a page that immediately called an action to see if all data needed for that page was there yet. 2.. Keep a single url so they cannot go to any page other than the first, then the second, etc. In this case, going back in the browser and then clicking reload would take them back to the page they were on. 3.. Just do the standard struts action when they submit a page and in that action go back to the first page for which I have incomplete information. So they can bookmark and click the "purchase" submit but it would then take them back to the first page of the checkout process. So, what's standard out there? thanks - dave
Re: initializing ActionForm from a session bean
I'm a moron - I found the overloaded method with HttpServletRequest. So, is the way to tie to a session bean to do a HttpServletRequest.getSession().get/setAttribute()? thanks - dave - Original Message - From: "David Thielen" <[EMAIL PROTECTED]> To: "Struts-Users" <[EMAIL PROTECTED]> Sent: Thursday, August 07, 2003 11:51 AM Subject: initializing ActionForm from a session bean Hi; If I want to initialize an ActionForm from a session bean, what's the correct way. Looking at it it seems to me that I want to tie the session bean to the session. However, reset passes a ServletRequest instead of a HttpServletRequest so there is no way to get the session to do a getAttribute(). Am I missing something? thanks - dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: single checkbox - still use html:multibox?
thank you very very much - dave - Original Message - From: "Yansheng Lin" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Thursday, August 07, 2003 12:43 PM Subject: RE: single checkbox - still use html:multibox? > Oh I meant taglib api ref, not the javadoc ref. here is the link: > http://jakarta.apache.org/struts/userGuide/struts-html.html#checkbox > > The detail warning msg: > > WARNING: In order to correctly recognize unchecked checkboxes, the ActionForm > bean associated with this form must include a statement setting the > corresponding boolean property to false in the reset() method. > > -Original Message- > From: David Thielen [mailto:[EMAIL PROTECTED] > Sent: August 7, 2003 12:26 PM > To: 'Struts Users Mailing List' > Subject: Re: single checkbox - still use html:multibox? > > > Thanks - the book I have didn't list it so of course I assumed it didn't > exist. > > Any idea what the something special is? The javadocs don't list anything. > > thanks - dave > > > - Original Message - > From: "Yansheng Lin" <[EMAIL PROTECTED]> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > Sent: Thursday, August 07, 2003 12:19 PM > Subject: RE: single checkbox - still use html:multibox? > > > > Um, ? Please read the api carefully if you want to use this > tag. There is something you have to do in your form's reset()... > > -Original Message- > From: David Thielen [mailto:[EMAIL PROTECTED] > Sent: August 7, 2003 11:33 AM > To: Struts-Users > Subject: single checkbox - still use html:multibox? > > > Hi; > > If I have a single checkbox on my page, should I still use multibox? And if > not, > what do I use? > > thanks - dave > > > - > 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]
single checkbox - still use html:multibox?
Hi; If I have a single checkbox on my page, should I still use multibox? And if not, what do I use? thanks - dave
Re: single checkbox - still use html:multibox?
Thanks - the book I have didn't list it so of course I assumed it didn't exist. Any idea what the something special is? The javadocs don't list anything. thanks - dave - Original Message - From: "Yansheng Lin" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Thursday, August 07, 2003 12:19 PM Subject: RE: single checkbox - still use html:multibox? Um, ? Please read the api carefully if you want to use this tag. There is something you have to do in your form's reset()... -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: August 7, 2003 11:33 AM To: Struts-Users Subject: single checkbox - still use html:multibox? Hi; If I have a single checkbox on my page, should I still use multibox? And if not, what do I use? thanks - dave - 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]
JSTL ot struts taglibs?
Hi; For the logic and I18N taglibs - what do you recommend - using the struts taglibs or the JSTL taglibs? thanks - dave
struts and JSTL
Hi; (I sure brought up a storm with my last question on this .) Is there a set of struts taglibs that have removed all of the tags that should be JSTL instead? It's easy to just delete struts-logic.tld and struts-nested.tld. But beand & html both appear to have a couple of tags that should be replaced by JSTL but many others that are unique to struts. Or if not, a list of what not to use in struts and the suggested replacement from JSTL. thanks - dave
Update button on a form
Hi; I have a form with a submit, reset, and update button. How do I handle control of the update button (go to a different action)? thanks - dave
N form items as fields
Hi; I have a jsp page where I want to display N items where I get the N items from the database. I need to have an edit field with each item. Whats the best way to do this in struts? thanks - dave
Re: struts, Dreamweaver, & Dreamweaver templates
No major problems - but I was worried I was going down a road that was going to be impossible - I figured it was better to ask first. thanks - dave - Original Message - From: "Stephen Brown" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Thursday, August 07, 2003 3:20 PM Subject: RE: struts, Dreamweaver, & Dreamweaver templates > I've used Dreamweaver with struts without issue, but in general lean towards > tiles for doing page templates. It really doesn't matter and depends on the > technical aptitude of the HTML folks when deciding which way to go, but both > work. What problem are you seeing? > > > -Original Message- > > From: David Thielen [mailto:[EMAIL PROTECTED] > > Sent: August 7, 2003 12:42 PM > > To: Struts-Users > > Subject: struts, Dreamweaver, & Dreamweaver templates > > > > > > Hi; > > > > I created my jsp pages using Dreamweaver and using the > > templates feature > > in Dreamweaver. > > > > I'm now incorporating struts and mixing that with Dreamweaver is > > difficult. Does this work ok or should I give up on templates? > > > > thanks - dave > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
initializing ActionForm from a session bean
Hi; If I want to initialize an ActionForm from a session bean, what's the correct way. Looking at it it seems to me that I want to tie the session bean to the session. However, reset passes a ServletRequest instead of a HttpServletRequest so there is no way to get the session to do a getAttribute(). Am I missing something? thanks - dave
sample struts w/ I18N and validator
Hi; Does anyone know of a simple sample struts page (like logon) that includes Internationalization and validators so it shows how to use everything? thanks - dave