AW: [OT] WebObjects vs. Struts
Hi, It's an interesting question. I'm using WO5 (Wolips+eclipse) since I stared to work for my new company and I have not a big experience of struts. Actualy struts does not seem to have the features that my company requiered in order to switch from WO to stuts: frameworks, easy plugable and reusable component with nice GUI (it was not my requierments..), etc. But my opinion is that struts is better. WO5 is to slow and components are not as reusable as they seem, it always needs a lot of hacks, it use non standard API's, ... personaly I wish I could migrate on struts, but perhaps I will turn mad before ;-) I also would be interested by your opinion/experience. Frederic -Ursprungliche Nachricht- Von: Hunter Hillegas [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 25. Juli 2003 19:56 An: Struts List Betreff: [OT] WebObjects vs. Struts Anyone here ever used Apple's WebObjects? How does it compare to Struts/J2EE in your opinion? Cheers, Hunter - 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]
modules sessions
Hi. Is it possible to have for each module separate jsp session? I.e. to have several session cookies with different paths matching app. modules? senx & wbr, eugen. -- С уважением, Е.Бушуев. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Design in Struts
Raj, As per the best practice observation, it has always been suggested by people to have two actions associated with all your screens( considering one form per screen) . First one to load the page, and the other to process it. But in case like ours we could have ended up with too many actions. So we created one action class that is invoked for preloading excersise of all screens. So for all our screens we have a common action class that is invoked to launch the screen and this action class forwards the request to approprite page. Adn then we have one action class associated with every screen. (mostly) Hope it answeres your q. Regards, Puneet Agarwal Tata Consultancy Services, C-56, Phase - II, NOIDA 201305 (India) Phone: +91-120-2461001, 2, 7, 8, 9, 12, 13 (Ext. 1031) FAX : +91-120-246 1521 Struts ... Action ... Struts in Action ... Action in Struts ... [EMAIL PROTECTED] erizon.comTo: [EMAIL PROTECTED] cc: 03/18/02 09:15 AM Subject: Design in Struts Please respond to "Struts Users Mailing List" Hi All, I need some guidance about the design prespective of a Web Application using Struts. Is it advisable to have a Action with each Form? If not, then How to have a single action for all your forms and do some sort of redirection internally ? thanks -raj - 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: Multiple modules - Please help
Can you access the edit or remove actions by entering the URL in your address bar? e.g. http://localhost:8080/myapp/admin/edit.do?parameter=XXX Steve > -Original Message- > From: Ajay Patil [mailto:[EMAIL PROTECTED] > Sent: July 27, 2003 11:21 PM > To: [EMAIL PROTECTED] > Subject: RE: Multiple modules - Please help > > > Hello, > > Thanks for the lightning response ! > > Actually, I am not switching modules. I am trying to forward > to another action in the same module. I still get the 404 error > with the contextRelative attribute in forward definition. > > Inside web.xml: > --- > > config/admin > /WEB-INF/struts-admin.xml > > > > Inside struts-admin.xml > --- > type="xxx.yyy.zzz.ListAction"> > > > > > > type="xxx.yyy.zzz.EditAction"> > > > > type="xxx.yyy.zzz.RemoveAction"> > > > > It was working when I had a single configuration file. I created > struts-admin.xml file and removed the admin (module name) > prefix from all paths. > > Now the JSP forwards are working. > But the action-chainings give me 404 errors. > > Thanks for patiently reading through my problem. > > Ajay > > > > If the action you are forwarding to is in a different module then > > you need to use the SwitchAction or specify contextRelative=true on > > your forward definition. > > > > contextRelative="true"> > > > Steve > > > > > - > 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: Text Box on JSP Page
Hi, HTML does not recognise white spaces... so when u try to write some value that contains space, it recognises upto the point where it encounters a space. So in order to retain the space what you have to do is very simple value='<%=expression%>' Cheers Nagaraj Anubhav Kale <[EMAIL PROTECTED]> wrote: Hello. I want to display a string inside text box on JSP Page. If the string contains spaces then only the 1st substring upto 1st space is diaplayed in text box on the page. (e.g. if string is "anubhav kale" then text box displays only "anubhav" ) I use the following code: [input] value = > Can somebody help me how to avoid this ?? ( TEXTAREAS solve this problem but I DO NOT want to use TEXTAREAS as textarea inserts unnecessary spaces) Thanks Anubhav - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
Design in Struts
Hi All, I need some guidance about the design prespective of a Web Application using Struts. Is it advisable to have a Action with each Form? If not, then How to have a single action for all your forms and do some sort of redirection internally ? thanks -raj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Survey builder with Struts
Hi all, does someone knows how can I find a FREE struts application to dynamically build a survey? (Not Polls, I've yet installed and it's too simple for my issues...) A commercial example is this: http://www.surveytime.com/. But I need less features than this... Thanks a lot in advance. Marco Fabbri
Re: Can Validator javascript show more than one error at a time?
Look for this to be fixed in the nightly dated July 29. Brian Alexander Lee wrote: There's currently a defect (http://issues.apache.org/bugzilla/show_bug.cgi?id=20754) in bugzilla that would use "&" (bitwise operator) instead of "&&" so it would process all validations. You can apply the patch yourself. It's only two files ValidatorPlugIn.java and JavascriptValidatorTag.java. BAL - Original Message - From: "Steve Raeburn" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, July 26, 2003 2:33 PM Subject: RE: Can Validator javascript show more than one error at a time? The generated Javascript groups tests by type (required, mask, min length etc) and calls them as follows: function validateRegistrationForm(form) { if (bCancel) return true; else return validateRequired(form) && validateMask(form) && validateMinLength(form) && validateMaxLength(form) && validateEmail(form); } Due to the way the && expression is evaluated, if any test returns true the subsequent tests are not executed. If you had several missing required fields then those errors would be grouped together. But if you had only one missing required field and another type of error, you would not see the second error message until you correct the missing field error. See the struts-validator sample application (shipped with Struts) for examples. Steve -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Brian Chaplin Sent: July 26, 2003 10:35 AM To: [EMAIL PROTECTED] Subject: Can Validator javascript show more than one error at a time? Somehow Ted Husted was able to get the javascript to show more than one error at a time in the javascript alert message. See screen shot on page 373 of Struts in Action. I'm using Struts 1.1 final and it seems the javascript won't support that? -- Rob Leland
Struts console plug-in - Bug - rewrite attribute
To whom it my concern, I was using the Struts console plug-in Eclipse with the Struts-logon application. the console gives the error message "Invalid struts config File error on line 44:Attribute "rewrite" is not declared for element "forward". Validate that the file's DOCTYPE is supported by Struts Console. " The error message referring to the line below in the struts-config.xml file. I think the attribute rewrite has not been implemented yet. _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple modules - Please help
Hello, Thanks for the lightning response ! Actually, I am not switching modules. I am trying to forward to another action in the same module. I still get the 404 error with the contextRelative attribute in forward definition. Inside web.xml: --- config/admin /WEB-INF/struts-admin.xml Inside struts-admin.xml --- It was working when I had a single configuration file. I created struts-admin.xml file and removed the admin (module name) prefix from all paths. Now the JSP forwards are working. But the action-chainings give me 404 errors. Thanks for patiently reading through my problem. Ajay > If the action you are forwarding to is in a different module then > you need to use the SwitchAction or specify contextRelative=true on > your forward definition. > contextRelative="true"> > Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Text Box on JSP Page
hi have u tried to use tag... try it along with some java script HTH Prashanth Anubhav Kale <[EMAIL PROTECTED]> wrote: Hello. I want to display a string inside text box on JSP Page. If the string contains spaces then only the 1st substring upto 1st space is diaplayed in text box on the page. (e.g. if string is "anubhav kale" then text box displays only "anubhav" ) I use the following code: [input] value = > Can somebody help me how to avoid this ?? ( TEXTAREAS solve this problem but I DO NOT want to use TEXTAREAS as textarea inserts unnecessary spaces) Thanks Anubhav - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
Text Box on JSP Page
Hello. I want to display a string inside text box on JSP Page. If the string contains spaces then only the 1st substring upto 1st space is diaplayed in text box on the page. (e.g. if string is "anubhav kale" then text box displays only "anubhav" ) I use the following code: value =<%=stringName %> > Can somebody help me how to avoid this ?? ( TEXTAREAS solve this problem but I DO NOT want to use TEXTAREAS as textarea inserts unnecessary spaces) Thanks Anubhav
newbie question!
Hello, This question probably might have been asked many a times. But I searched the archive (though not fully) but could not find this. So, if anybody has a solution please do let me know. I have developed a sample application, which takes in an input and based on that displays either a success page or failure page. The problem am facing is the servlet is not being called. Below is the sturts.config.xml, b.xml and index.jsp. Am using jdk1.4.0 and tomcat 4.1.12. The java class files are under WEB-INF\classes\myapp package. Thanx for you help. == index.jsp <%@ page language="java"%> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> \First Struts Application Symbol == = web.xml http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";> action org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.xml 1 action *.do /WEB-INF/struts-html.tld /WEB-INF/struts-html.tld == struts-config.xml http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";> -- Regards, Samanth Athrey, Azikewe Systems, www.azikewe.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Nested Bean Problem
Or you could create a new class, JBNCCArrayList (Java Bean Naming Convention Compliant Array List) or some other (nicer) name, that extends ArrayList (remember to include all the appropriate constructors), that adds the following method public int getSize() { return size(); } And use that in place of the ArrayList. This will allow the BeanUtils to get the size (e.g. "userBean.roleUser[0].menuComponent.size") because the naming convention is in place, and this solution does not require extra object creation (as in the CollectionBean suggestion). I really think Sun should fix this, it annoys the c*!p out of me, I personally can't see the harm in 'adding' the Collection Classes to fix this naming convention error, by adding (not a wholesale rename) they can maintain backward compatibility (perhaps marking size() as deprecated). But then I'm not a Language Specification writer, so maybe I'm missing something. Gary -Original Message- From: Nagaraj_K [mailto:[EMAIL PROTECTED] Sent: Friday, 25 July 2003 3:15 PM To: Struts Users Mailing List Subject: RE: Nested Bean Problem Why not add a method in the roleUserBean which returns the size of the ArrayList menuComponent Bean? Using the index of the iterator you will get the roleUserBean component using which u can get the size of the menuComponent ArrayList. Nagaraj -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 10:39 AM To: Struts Users Mailing List Subject: Re: Nested Bean Problem Actually the ArrayList menuComponentBean is having all the menuNames which I am showing in the top header row of a html table. I want to set the colspan of all the other rows equal to the number of menu items in this row. Thanks, Prashant. "Nagendra Kumar O V S" To: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]cc: go.com> Subject: Re: Nested Bean Problem 07/25/03 10:22 AM Please respond to "Struts Users Mailing List" hi, why do u want to get the size of the collection...? u can use indexId attribute which gives the index of the iterator -- nagi ---Original Message--- From: Struts Users Mailing List Date: Friday, July 25, 2003 09:57:28 AM To: [EMAIL PROTECTED] Subject: Nested Bean Problem Hi, I have a problem handling nested beans.. For example... I have a userBean as given below private int userID; private String lastName; private String firstName; private ArrayList roleUser; Where the last field Arraylist is the arraylist of the objects of the bean called roleUserBean. Again the roleUserBean has the following properties. private int roleid; private String desc; private String name; private ArrayList menuComponent; The last property menuComponent is the arrayList of objects of the bean called menuComponentBean. Now the menuComponentBean contains private int menuID; private String menuName; private String description; I have put the userBean in the session scope. Now I want to know how many objects are there in the menuComponentBean (size of the ArrayList menuComponentBean). I am not able to get that. Please help. Thanks in advance. Prashant M Desai. - 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] . IncrediMail - Email has finally evolved - Click Here - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For addition
RE: Multiple modules - Please help
If the action you are forwarding to is in a different module then you need to use the SwitchAction or specify contextRelative=true on your forward definition. Steve > -Original Message- > From: Ajay Patil [mailto:[EMAIL PROTECTED] > Sent: July 27, 2003 10:30 PM > To: [EMAIL PROTECTED] > Subject: Multiple modules - Please help > > > Hello, > > I am trying to configure Struts with multiple modules. I have got > most of it working but I am stuck up at one point. > > When the action classes forward to a JSP page, everything works ok. > But I get a 404 error if the action forwards to another action. > > .> > > > > Has anyone got the above case working with multiple modules ? > If yes, could you please send me the sample working config file ? > > I also tried giving the modulename prefix but I got a 400 error :-( > .> > > > > Any help is a blessing. > Ajay > > > - > 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: Multiple modules - Please help
hi, there is an SwitchAction available with struts, which can be used to switch bet' modules. try it i have't implemented though -- nagi ---Original Message--- From: Struts Users Mailing List Date: Monday, July 28, 2003 10:47:39 AM To: [EMAIL PROTECTED] Subject: Multiple modules - Please help Hello,I am trying to configure Struts with multiple modules. I have got most of it working but I am stuck up at one point. When the action classes forward to a JSP page, everything works ok.But I get a 404 error if the action forwards to another action..>Has anyone got the above case working with multiple modules ?If yes, could you please send me the sample working config file ?I also tried giving the modulename prefix but I got a 400 error :-(.>Any help is a blessing.Ajay-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]. IncrediMail - Email has finally evolved - Click Here
Multiple modules - Please help
Hello, I am trying to configure Struts with multiple modules. I have got most of it working but I am stuck up at one point. When the action classes forward to a JSP page, everything works ok. But I get a 404 error if the action forwards to another action. Has anyone got the above case working with multiple modules ? If yes, could you please send me the sample working config file ? I also tried giving the modulename prefix but I got a 400 error :-( Any help is a blessing. Ajay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSL+struts
SSLEXT really works great for me when i switch from "http" to "https". Well when i am in https mode i submit a form as post methods, however the subsequent page is not secured. Obviously the action redirects to http mode, that is ok with me but it appends the form parameter values to the URL and it is visible in clients browser address bar. I do not want to see the form parameter values in the Address bar. Does any one experience the same problem and Any idea to solve this will be greatly appreciated thanks nagi Nagendra Kumar O V S Member Technical Staff Ikigo India Private Ltd. 470-B, Road No. 36, Jubilee Hills, Hyderabad 500033 Contact(O): 23544671 Cell: 98482-41789 IncrediMail - Email has finally evolved - Click Here
tomcat4.1
Hello every body. recently i started working on tomcat 4.1 page container, previously i use to work in Resin page container & i feel Resin is really very good page container then Tomcat. I m facing unexpected errors, some times my bean will get called & some times for same the bean i get bean not found error. I am following same standard directory struture suggested in tomcat document for developers.Even i wasted lot of time to configure jdbc datasource in tomcat, this can be done within 2 mins in Resin. Can any body suggest me how best i can start working on tomcat 4.1(developing webapplication & congifuring jdbc Datasouce). If any body don't know about Resin page container , then visit www.caucho.com & feel the diiference in it.. waiting for your reply.. thanx in advance.. regds, virupaksha
[Ann] Log4J Administration Webapp built with struts.
Hi, Just thought I'd let you know that LogWeb, A fully functional administration interface for Log4J, has been implemented with Struts. LogWeb is freely available at: http://www.codeczar.com/projects/logweb/index.html Thanks to the struts team. Without struts, LogWeb would have taken much longer to develop. Cheers Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: expert group
P.S. I did buy the book as a result of the reviews. From: "message message" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: expert group Date: Mon, 28 Jul 2003 03:33:20 +0400 Yes thank you and I will keep my opinions to myself. The only reason I am here is because I was visiting www.amazon.com whilst looking for some books. Somebody wrote although JSP PRO has loads of typos it is very good book. I think the reason that person wrote the reviews was because it opens this new world of open source software. Free ware which allows one to setup non -static websites. All you need is motivation to learn. From: "James Mitchell" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: Re: expert group Date: Sun, 27 Jul 2003 18:20:17 -0400 There are many talented and helpful people on this list. There are also some who spew false rumors and outrageous predictions. You are free to form your own opinion(s), and I encourage you to do so. -- James Mitchell Software Developer/Struts Evangelist http://www.struts-atlanta.org 678-910-8017 AIM:jmitchtx - Original Message - From: "message message" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 27, 2003 1:13 PM Subject: expert group > > I was informed that the expert group can be found at Struts. > > Does that mean that as long I use struts Framework I will always be > using a framework which is compliant to the various web standards. > > Does that also mean that J2EE architects are not experts but a bunch of > lame > Sun Microsystems Salesman ? > > I just wondering. > > _ > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: expert group
Yes thank you and I will keep my opinions to myself. The only reason I am here is because I was visiting www.amazon.com whilst looking for some books. Somebody wrote although JSP PRO has loads of typos it is very good book. I think the reason that person wrote the reviews was because it opens this new world of open source software. Free ware which allows one to setup non -static websites. All you need is motivation to learn. From: "James Mitchell" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: Re: expert group Date: Sun, 27 Jul 2003 18:20:17 -0400 There are many talented and helpful people on this list. There are also some who spew false rumors and outrageous predictions. You are free to form your own opinion(s), and I encourage you to do so. -- James Mitchell Software Developer/Struts Evangelist http://www.struts-atlanta.org 678-910-8017 AIM:jmitchtx - Original Message - From: "message message" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 27, 2003 1:13 PM Subject: expert group > > I was informed that the expert group can be found at Struts. > > Does that mean that as long I use struts Framework I will always be > using a framework which is compliant to the various web standards. > > Does that also mean that J2EE architects are not experts but a bunch of > lame > Sun Microsystems Salesman ? > > I just wondering. > > _ > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: expert group
There are many talented and helpful people on this list. There are also some who spew false rumors and outrageous predictions. You are free to form your own opinion(s), and I encourage you to do so. -- James Mitchell Software Developer/Struts Evangelist http://www.struts-atlanta.org 678-910-8017 AIM:jmitchtx - Original Message - From: "message message" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 27, 2003 1:13 PM Subject: expert group > > I was informed that the expert group can be found at Struts. > > Does that mean that as long I use struts Framework I will always be > using a framework which is compliant to the various web standards. > > Does that also mean that J2EE architects are not experts but a bunch of > lame > Sun Microsystems Salesman ? > > I just wondering. > > _ > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ServletException Response has already been committed'
Actually, I think I'm completely off on that element. For some reason I tought a element would specify a forwarding ActionForward and element would specify an included ActionForward. But I think the element does not exist. You can always make this a servlet instead of the action and then jsp:include that. -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 8:49 AM To: [EMAIL PROTECTED] Subject: RE: ServletException Response has already been committed' This is for the first JSP I want to include another JSP in the above jsp using This throws Error Message: Error in servlet What am I doing wrong here ??? >>> [EMAIL PROTECTED] 07/24/03 04:57PM >>> Ok I was looking for a way to tell the ActionServlet to include, rahter than forward to the view. It seems you do it with element instead of element in your action mapping configuration. So your should have a instead of a to that view. Hope this does it. ranko -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 4:47 PM To: [EMAIL PROTECTED] Subject: RE: ServletException Response has already been committed' The is not a direct JSP and it needs to retrieve data from the database and set the values in the Formbean . I am not sure how this can be achieved, Tiles talks abt it ,but is not clear to me. >>> [EMAIL PROTECTED] 07/24/03 04:34PM >>> When the ActionServlet forwards to your view that is usually the only forward that happens and everything is fine. When you include another Struts Action in your view with , another forward happens. If you are not doing anything in the Action but returning an ActionForward to the jsp page, maybe you can just go directly to the page in your tag. I don't know how kosher that is in the Struts environment though. Is there a way to tell ActionServlet to use include() instead of forward()? ranko -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 3:42 PM To: [EMAIL PROTECTED] Subject: RE: ServletException Response has already been committed' Going thru the struts archives it is clear that once forward() is done then the exception is raised. But can some one help as how this can be achieved using Struts. I am new to struts so this may be a naive questions, but how can I show a JSP page without using forward ? This is what I ma trying to do The UpdProvDetailInfo.jsp has the includes, so without forward how can I even show the page. Or Am i missing something.. Thanks >>> [EMAIL PROTECTED] 07/24/03 03:29PM >>> I'm not sure how ActionServlet processes ActionForwards, but if it uses the forward() method of the RequestDispatcher then the response cannot be commited already. In addition, forward() will commit so you cannot try to commit again. This means that if you have more than one mapped to a Struts Action, then you will try to commit the respnose twice. Or after the the Action is done, the rest of the jsp page will try to write more stuff to the client and cause the exception. If the ActionServlet is not using RequestDispatcher.forward() then I don't know. More experienced Struts guys will probably be able to clear this up. ranko -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 2:57 PM To: [EMAIL PROTECTED] Subject: Re: ServletException Response has already been committed' I checked it , it works fine when I just use the "selectedproviderinfo.do" . I get this error when I try to Include this another jsp page. Thanks >>> [EMAIL PROTECTED] 07/24/03 02:47PM >>> is there a chance that accessing "selectedproviderinfo.do" by itself would also cause the same servletexception ? From: "Sashi Ravipati" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: ServletException Response has already been committed' Date: Thu, 24 Jul 2003 14:39:34 -0400 I have a jsp page which I need to include in all my other JSP pages. I created an action for JSP to be included and used . This throws Servlet Exception. I also tried but the same result. How can this be achieved. Thanks _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - 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: Validator - NullPointerException
After a few direct questions about how I solved the problem, here the answer: The database for my application was missing eg. not started. The error (NullPointerException) shown in the browser was more than strange but now it works fine... Koni Koni Roth wrote: Hello I'm running Netbeans 3.5 with Tomcat 4.0.6 and Struts 1.1. Since I use validation my application sometimes dies at startup. When I restart the server it throws the following exeption: -- java.lang.NullPointerException at org.apache.struts.taglib.html.JavascriptValidatorTag.doStartTag(JavascriptValidatorTag.java:316) at org.apache.jsp.index$jsp._jspService(index$jsp.java:741) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) ... -- When I kill Tomcat, close the browser and restart the application again, it all works fine!!?!! Has anyone similar experience? What can I do? Thanks Koni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can Validator javascript show more than one error at a time?
To correct myself: "Due to the way the && expression is evaluated, if any tests returns *false* the subsequent tests are not executed." This is because the && operator uses short-circuit evaluation. If any of the tests return false then the whole expression must be false, so the subsequent tests are not evaluated. The & operator does not use short-circuit evaluation so all tests are evaluated. This only affects the Javascript validation tests - the server validations are always all run. Steve > -Original Message- > From: Brian Alexander Lee [mailto:[EMAIL PROTECTED] > Sent: July 27, 2003 6:34 AM > To: Struts Users Mailing List; [EMAIL PROTECTED] > Subject: Re: Can Validator javascript show more than one error at a > time? > > > There's currently a defect > (http://issues.apache.org/bugzilla/show_bug.cgi?id=20754) > in bugzilla that would use "&" (bitwise operator) instead of "&&" so it > would process all validations. > > You can apply the patch yourself. It's only two files ValidatorPlugIn.java > and JavascriptValidatorTag.java. > > BAL > - Original Message - > From: "Steve Raeburn" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Saturday, July 26, 2003 2:33 PM > Subject: RE: Can Validator javascript show more than one error at a time? > > > > The generated Javascript groups tests by type (required, mask, > min length > > etc) and calls them as follows: > > > > function validateRegistrationForm(form) { > >if (bCancel) > > return true; > > else > > return validateRequired(form) && > > validateMask(form) && > > validateMinLength(form) && > > validateMaxLength(form) && > > validateEmail(form); > > } > > > > Due to the way the && expression is evaluated, if any test returns true > the > > subsequent tests are not executed. > > > > If you had several missing required fields then those errors would be > > grouped together. But if you had only one missing required field and > another > > type of error, you would not see the second error message until you > correct > > the missing field error. > > > > See the struts-validator sample application (shipped with Struts) for > > examples. > > > > Steve > > > > > -Original Message- > > > From: news [mailto:[EMAIL PROTECTED] Behalf Of Brian Chaplin > > > Sent: July 26, 2003 10:35 AM > > > To: [EMAIL PROTECTED] > > > Subject: Can Validator javascript show more than one error at a time? > > > > > > > > > Somehow Ted Husted was able to get the javascript to show > more than one > > > error at a time in the javascript alert message. > > > See screen shot on page 373 of Struts in Action. > > > I'm using Struts 1.1 final and it seems the javascript won't support > that? > > > > > > > > > > > > > > > - > > > 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]
Calculation...
What is price of simple Ticket oriented Intranet application (10 jsp, 20-30 .java files) ??? Thank You - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Action with no associated form bean?
You do not have to have a form to call an action. You have not stated your problem. What is the problem you encountered? > -Original Message- > From: Oguz Kologlu [mailto:[EMAIL PROTECTED] > Sent: Sunday, July 27, 2003 9:42 AM > To: Struts-User > Subject: Action with no associated form bean? > > Hi all, > > I'm having some problems getting a form that has no associated form bean > to > display. > > It's basically a logout form with no fields that calls a logout action > but > has no form values so doesn't require a form bean - yet it seems you must > have a form bean to call an action. > > Is this the case? Is there another solution around this or do I have to > create a dummy form bean / dynaform to call the action? > > > Thanks > Oz > > > - > 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]
URG:Is there a Struts Equivalent Tag This??????
Hi, I am currently doing a small project of converting an existing web-application written in JSPs to Struts framework. I have a selfregistration page which has many input fields. The data obtained from it is received in another jsp and processed further. I have given the piece of code where the data is transferred to the backend. Enumeration e = request.getParameterNames(); while(e.hasMoreElements()) { String s = (String)e.nextElement(); String s_req = request.getParameter(s); ---code to put to database and process further--- } This code accesses the field names and values obtained from the previous page. I would like to know if there is a way in struts where i can get the names of the individual fields along with their values to be accessed in the next jsp. Thanks, Guru Prasad Get your own "800" number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
expert group
I was informed that the expert group can be found at Struts. Does that mean that as long I use struts Framework I will always be using a framework which is compliant to the various web standards. Does that also mean that J2EE architects are not experts but a bunch of lame Sun Microsystems Salesman ? I just wondering. _ 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]
RE: Possible to dynamically set value of an element?
Thanks balaji, I'll try that:) David -Original Message- From: R Balaji [mailto:[EMAIL PROTECTED] Sent: Sunday, July 27, 2003 3:13 AM To: Struts Users Mailing List Subject: Re: Possible to dynamically set value of an element? Have you ever tried with heml-el:select, where you can pass such expresions . balaji David Benoff wrote: >Pardon the newbie-ness but I’ve searched the archives extensively and >haven’t turned up anything on this. Any hints would be much >appreciated. > >I’d like to know whether there is any way to dynamically set the >property attribute within an html:select element. >The page I’m working on iterates through a collection of User beans, >each of which has its own collection of Role beans. Each user is >displayed on a row with a dropdown that is populated with that user’s >collection of roles. The user needs to select a single Role for each >user displayed, and I’d like to get the form returned as a HashMap with >the username as the key and the rolename as the value. > >The relevant snippet is below: > > > > > > > > > > > >My problem, of course, is that since property="rolemap(username)” isn’t >dynamic, the key gets stored verbosely as “username”, which overwrites >the value on each iteration, so the map always gets returned with a >single value. > >My guess is there’s a straightforward way to do this, but I’ll be darned >if I can find it. I’d very much appreciate it if someone could point me >in the right direction. > >Thanks, >David Benoff > > >--- >Outgoing mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003 > > > > --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mmap-backed form property and multiselect.
I pot it again Does it work to combine map-backed form property and multiselect My code : public void setValue( String key, String[] val ) public String[] getValue(String key) does not work. Is there any other way to do it ? Thanks for your help. Jacek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can Validator javascript show more than one error at a time?
There's currently a defect (http://issues.apache.org/bugzilla/show_bug.cgi?id=20754) in bugzilla that would use "&" (bitwise operator) instead of "&&" so it would process all validations. You can apply the patch yourself. It's only two files ValidatorPlugIn.java and JavascriptValidatorTag.java. BAL - Original Message - From: "Steve Raeburn" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, July 26, 2003 2:33 PM Subject: RE: Can Validator javascript show more than one error at a time? > The generated Javascript groups tests by type (required, mask, min length > etc) and calls them as follows: > > function validateRegistrationForm(form) { >if (bCancel) > return true; > else > return validateRequired(form) && > validateMask(form) && > validateMinLength(form) && > validateMaxLength(form) && > validateEmail(form); > } > > Due to the way the && expression is evaluated, if any test returns true the > subsequent tests are not executed. > > If you had several missing required fields then those errors would be > grouped together. But if you had only one missing required field and another > type of error, you would not see the second error message until you correct > the missing field error. > > See the struts-validator sample application (shipped with Struts) for > examples. > > Steve > > > -Original Message- > > From: news [mailto:[EMAIL PROTECTED] Behalf Of Brian Chaplin > > Sent: July 26, 2003 10:35 AM > > To: [EMAIL PROTECTED] > > Subject: Can Validator javascript show more than one error at a time? > > > > > > Somehow Ted Husted was able to get the javascript to show more than one > > error at a time in the javascript alert message. > > See screen shot on page 373 of Struts in Action. > > I'm using Struts 1.1 final and it seems the javascript won't support that? > > > > > > > > > > - > > 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]
Action with no associated form bean?
Hi all, I'm having some problems getting a form that has no associated form bean to display. It's basically a logout form with no fields that calls a logout action but has no form values so doesn't require a form bean - yet it seems you must have a form bean to call an action. Is this the case? Is there another solution around this or do I have to create a dummy form bean / dynaform to call the action? Thanks Oz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OT: JSR-168 is available for review
Vic gave a very interesting Flash demo the other day. Considering the poor state of java view options it was good to see a real alternative to the gobbledygook currently available. Edgar > -Original Message- > From: Vic Cekvenich [mailto:[EMAIL PROTECTED] > Sent: Saturday, July 26, 2003 5:29 PM > To: '[EMAIL PROTECTED]' > Subject: Re: OT: JSR-168 is available for review > > > > Ex: Pick one approach, from this slide show for example: > http://www.centercomp.com/beyondstruts/index.html > Clearly one approach is better than the other, else if you do > not have a > full time architect, consider a consultant; or maybe a vendor > advertisement, it that is what you want to do. > > I do teach Advanced Struts class, and do consulting, and then > I itemize > my recommendation and implement it. > > Time will tell. > > .V > baseBeans.com > Project Recovery > > ps: > I also liked my Commodore 64, I liked VisiCalc, and I like Sun's > inventing Java, > http://finance.yahoo.com/q?s=SUNW&d=c&k=c2&a=v&p=e5,m20,m100,m 200,e200&t=2y&l=off&z=l&q=l but I think Sun and Java should go separate ways. http://viva.sourceforge.net/ Craig R. McClanahan wrote: > > On Thu, 24 Jul 2003, Laurent PETIT wrote: > > >>Date: Thu, 24 Jul 2003 09:17:13 +0100 >>From: Laurent PETIT <[EMAIL PROTECTED]> >>Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>, >> Laurent PETIT <[EMAIL PROTECTED]> >>To: Struts Users Mailing List <[EMAIL PROTECTED]> >>Subject: Re: OT: JSR-168 is available for review >> >>Hello, >> >>I'm quite new in the Java / J2EE sphere, and so I don't really know >>the typical behaviors I'm supposed to have in some circumstances ? ;-) >> >>Is it quite normal to blame the JCP specs, even without giving any >>reason for that ? Or is there such a historical life of bad specs from >>the JCP, that no more spec from it deserves to be taken away without a >>glance ? >> > > > What you see here is pretty typical behavior for Vic lately (which is > one of the reasons his mail goes straight into my "noisy" folder), but > it's not typical of people on STRUTS-USER. > > >>Please if you have 2 minutes, explain to me ! >> > > > Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Possible to dynamically set value of an element?
Have you ever tried with heml-el:select, where you can pass such expresions . balaji David Benoff wrote: Pardon the newbie-ness but I’ve searched the archives extensively and haven’t turned up anything on this. Any hints would be much appreciated. I’d like to know whether there is any way to dynamically set the property attribute within an html:select element. The page I’m working on iterates through a collection of User beans, each of which has its own collection of Role beans. Each user is displayed on a row with a dropdown that is populated with that user’s collection of roles. The user needs to select a single Role for each user displayed, and I’d like to get the form returned as a HashMap with the username as the key and the rolename as the value. The relevant snippet is below: My problem, of course, is that since property="rolemap(username)” isn’t dynamic, the key gets stored verbosely as “username”, which overwrites the value on each iteration, so the map always gets returned with a single value. My guess is there’s a straightforward way to do this, but I’ll be darned if I can find it. I’d very much appreciate it if someone could point me in the right direction. Thanks, David Benoff --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003
Possible to dynamically set value of an element?
Pardon the newbie-ness but I’ve searched the archives extensively and haven’t turned up anything on this. Any hints would be much appreciated. I’d like to know whether there is any way to dynamically set the property attribute within an html:select element. The page I’m working on iterates through a collection of User beans, each of which has its own collection of Role beans. Each user is displayed on a row with a dropdown that is populated with that user’s collection of roles. The user needs to select a single Role for each user displayed, and I’d like to get the form returned as a HashMap with the username as the key and the rolename as the value. The relevant snippet is below: My problem, of course, is that since property="rolemap(username)” isn’t dynamic, the key gets stored verbosely as “username”, which overwrites the value on each iteration, so the map always gets returned with a single value. My guess is there’s a straightforward way to do this, but I’ll be darned if I can find it. I’d very much appreciate it if someone could point me in the right direction. Thanks, David Benoff --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003