Re: Text Box on JSP Page
hi have u tried to use html:text 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
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: --- init-param param-nameconfig/admin/param-name param-value/WEB-INF/struts-admin.xml/param-value /init-param Inside struts-admin.xml --- action path=/list type=xxx.yyy.zzz.ListAction forward name=addpath=/add.jsp!-- THIS WORKS OK -- forward name=edit path=/edit.do!-- 404 ERROR -- forward name=remove path=/remove.do !-- 404 ERROR -- /action action path=/edit type=xxx.yyy.zzz.EditAction forward name=edit path=/edit.jsp /action action path=/remove type=xxx.yyy.zzz.RemoveAction forward name=edit path=/remove.jsp /action 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. forward name=edit path=/modulename/edit.do contextRelative=true Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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. forward name=success path=/index.jsp rewrite=true/ 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: 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
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
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]
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
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: --- init-param param-nameconfig/admin/param-name param-value/WEB-INF/struts-admin.xml/param-value /init-param Inside struts-admin.xml --- action path=/list type=xxx.yyy.zzz.ListAction forward name=addpath=/add.jsp!-- THIS WORKS OK -- forward name=edit path=/edit.do!-- 404 ERROR -- forward name=remove path=/remove.do !-- 404 ERROR -- /action action path=/edit type=xxx.yyy.zzz.EditAction forward name=edit path=/edit.jsp /action action path=/remove type=xxx.yyy.zzz.RemoveAction forward name=edit path=/remove.jsp /action 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. forward name=edit path=/modulename/edit.do 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: 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]
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]
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]
RE: Survey builder with Struts
do u need for commercial purpose if so what all u need and what can you pay -Original Message- From: Marco Fabbri [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 11:48 AM To: Struts Users Mailing List Subject: 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie question!
Hi I couldn't spot anything wrong below, did you get any runtime exceptions? If so, show a snippet. --Alen 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 % html head title \First Struts Application/title /head body html:form action=/Lookup name=lookupForm type=myapp.LookupForm Symbol nbsp nbsp html:text property=symbol / br br html:submit/ /html:form /body /html == = web.xml ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_3.dtd; web-app servlet servlet-nameaction/servlet-name servlet-class org.apache.struts.action.ActionServlet /servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param load-on-startup1/load-on-startup /servlet !-- Standard Action Servlet Mapping-- servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping taglib taglib-uri/WEB-INF/struts-html.tld/taglib-uri taglib-location/WEB-INF/struts-html.tld/taglib-location /taglib /web-app == struts-config.xml ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd; struts-config message-resources parameter=myapp.ApplicationResources/ form-beans form-bean name=lookupForm type=myapp.LookupForm/ /form-beans action-mappings action path=/Lookup name=lookupForm type=myapp.LookupAction input=/index.jsp forward name =success path=/quote.jsp/ forward name=failure path =/index.jsp/ /action /action-mappings /struts-config -- Regards, Samanth Athrey, Azikewe Systems, www.azikewe.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie question!
Hi, There are no exceptions at all! Once the FormBean is executed the control is not passed on to the Servlet! Regards, Samanth Athrey Alen Ribic [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I couldn't spot anything wrong below, did you get any runtime exceptions? If so, show a snippet. --Alen 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 % html head title \First Struts Application/title /head body html:form action=/Lookup name=lookupForm type=myapp.LookupForm Symbol nbsp nbsp html:text property=symbol / br br html:submit/ /html:form /body /html == = web.xml ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_3.dtd; web-app servlet servlet-nameaction/servlet-name servlet-class org.apache.struts.action.ActionServlet /servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param load-on-startup1/load-on-startup /servlet !-- Standard Action Servlet Mapping-- servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping taglib taglib-uri/WEB-INF/struts-html.tld/taglib-uri taglib-location/WEB-INF/struts-html.tld/taglib-location /taglib /web-app == struts-config.xml ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd; struts-config message-resources parameter=myapp.ApplicationResources/ form-beans form-bean name=lookupForm type=myapp.LookupForm/ /form-beans action-mappings action path=/Lookup name=lookupForm type=myapp.LookupAction input=/index.jsp forward name =success path=/quote.jsp/ forward name=failure path =/index.jsp/ /action /action-mappings /struts-config -- Regards, Samanth Athrey, Azikewe Systems, www.azikewe.com - 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
Hello. Thanks for solving my previous problem. I have one more problem now How can I display a string with spaces (e.g. anubhav kale ) on html page using tag H3 or any other ? I have tried to display it character by character. But as html does not recognize spaces it is displayed as anubhavkale Thanks a lot Anubhav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How can I get a value and a name that is different on a html:options collection?
Thank you very much! I really appreciate your help! Cheers, Bård A. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Text Box on JSP Page
What you can do is using RegEx or looping thru you can replace the spaces with bnsp;. This will help you to retain the spaces as much as mentioned by you. Anubhav Kale [EMAIL PROTECTED] wrote:Hello. Thanks for solving my previous problem. I have one more problem now How can I display a string with spaces (e.g. anubhav kale ) on html page using tag H3 or any other ? I have tried to display it character by character. But as html does not recognize spaces it is displayed as anubhavkale Thanks a lot Anubhav - 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
Re: Text Box on JSP Page
What you can do is using RegEx or looping thru you can replace the spaces with nbsp;. This will help you to retain the spaces as much as mentioned by you. Anubhav Kale [EMAIL PROTECTED] wrote:Hello. Thanks for solving my previous problem. I have one more problem now How can I display a string with spaces (e.g. anubhav kale ) on html page using tag H3 or any other ? I have tried to display it character by character. But as html does not recognize spaces it is displayed as anubhavkale Thanks a lot Anubhav - 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
anyone used struts and hibernate 2gether?
a quick q 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]
File /WEB-INF/struts-bean.tld not found
hi all, I am new to Struts, I have downloaded sample banking application oreilly site.(http://www.oreilly.com/catalog/jakarta/banking-dev.zip) I have unzipped the entire code in webapps\ROOT directory if I m getting following error org.apache.jasper.JasperException: File /WEB-INF/struts-bean.tld not found I have kept all the .tld file in WEB-INF folder in web.xml i have made the entry and given the path as /WEB-INF/struts-bean.tld i wanted to know is it necessary to make its entry anywhere else. thanks in advance. Vinayak. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File /WEB-INF/struts-bean.tld not found
Hi, Check out for these things 1)The file should be present the specicfied path. 2)The header tag must be included in the jsp where it is used. 3)The tag must be declared in web.xml 4) A path to struts.jar in Classpath. J G Guru Prasad V sem, Information Technology, Bachelor of Engineering, National Institute of Technology Karnataka, Surathkal. ( formerly KREC,Surathkal ) On Mon, 28 Jul 2003, Vinayak Birari ([EMAIL PROTECTED]) wrote: hi all, I am new to Struts, I have downloaded sample banking application oreilly site.(http://www.oreilly.com/catalog/jakarta/banking-dev.zip) I have unzipped the entire code in webapps\ROOT directory if I m getting following error org.apache.jasper.JasperException: File /WEB-INF/struts-bean.tld not found I have kept all the .tld file in WEB-INF folder in web.xml i have made the entry and given the path as /WEB-INF/struts-bean.tld i wanted to know is it necessary to make its entry anywhere else. thanks in advance. Vinayak. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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]
Multiboxes getting selected by default
Hi All, I'm showing a list of objects which have checkboxes at the end so that a record can be selected for modification or deletion. I'm using multiboxes for this purpose and i'm including the record's id(primary key) as the value for the multibox. My problem is that when the page is rendered, all the records are getting selected by default. What could be the reason for this situation?? Any help is appreciated. Regards, Pradeep Bhargav = pradeepbhargav JCE CIVIL GROUP MatrixOne India Scandent Group [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: [EMAIL PROTECTED]
Re: File /WEB-INF/struts-bean.tld not found
hi, thanks for the quick response, I have cheked all.option 2,3,4th points are checked.. my web.xml is located at C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\banking\web\WEB-INF all the .tld file are also located at C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\banking\web\WEB-INF in web.xml i made this entry taglib taglib-uri/WEB-INF/struts-bean.tld/taglib-uri taglib-location/WEB-INF/struts-bean.tld/taglib-location /taglib Do i need to include ...banking/web instead of .banking/web/WEB-INF but still its not reflecting the change in the path..it is still refereing to /WEB-INF is there some possiblity that server may be using differnet web.xml file altogerther as 3 -4 web.xml are present in the same server Vinayak. [EMAIL PROTECTED] 07/28/03 02:33PM Hi, Check out for these things 1)The file should be present the specicfied path. 2)The header tag must be included in the jsp where it is used. 3)The tag must be declared in web.xml 4) A path to struts.jar in Classpath. J G Guru Prasad V sem, Information Technology, Bachelor of Engineering, National Institute of Technology Karnataka, Surathkal. ( formerly KREC,Surathkal ) On Mon, 28 Jul 2003, Vinayak Birari ([EMAIL PROTECTED]) wrote: hi all, I am new to Struts, I have downloaded sample banking application oreilly site.(http://www.oreilly.com/catalog/jakarta/banking-dev.zip) I have unzipped the entire code in webapps\ROOT directory if I m getting following error org.apache.jasper.JasperException: File /WEB-INF/struts-bean.tld not found I have kept all the .tld file in WEB-INF folder in web.xml i have made the entry and given the path as /WEB-INF/struts-bean.tld i wanted to know is it necessary to make its entry anywhere else. thanks in advance. Vinayak. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File /WEB-INF/struts-bean.tld not found
Since readiing your email I deployed the banking.war file from http://examples.oreilly.com/jakarta/ I get a login page saying enter Access Number --- Pin Number Perhaps you should try that war file From: Vinayak Birari [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: File /WEB-INF/struts-bean.tld not found Date: Mon, 28 Jul 2003 14:08:08 +0530 hi all, I am new to Struts, I have downloaded sample banking application oreilly site.(http://www.oreilly.com/catalog/jakarta/banking-dev.zip) I have unzipped the entire code in webapps\ROOT directory if I m getting following error org.apache.jasper.JasperException: File /WEB-INF/struts-bean.tld not found I have kept all the .tld file in WEB-INF folder in web.xml i have made the entry and given the path as /WEB-INF/struts-bean.tld i wanted to know is it necessary to make its entry anywhere else. thanks in advance. Vinayak. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ 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]
How to activate Reset method in ActionForm?
Hi, how do I activate the reset method in the ActionForm. I have included the reset method in my ActionForm, but it is not activated. Also, I would like to know if the reset method is read before the display of the jsp. Thanks. J G Guru Prasad V sem, Information Technology, Bachelor of Engineering, National Institute of Technology Karnataka, Surathkal. ( formerly KREC,Surathkal ) 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]
Re: Multiboxes getting selected by default
hi, checkbox with multibox typically uses 2 collections. an outer collection over which u iterate., which is the superset of all the required records u need to display... another collection is needed by the multibox tag... which is the set of all records u need to get selected on the page load.. when these both collections are equal , means to say that all ur checkboxes are checked .. check it out... --nagi ---Original Message--- From: Struts Users Mailing List Date: Monday, July 28, 2003 02:38:12 PM To: [EMAIL PROTECTED] Subject: Multiboxes getting selected by default Hi All,I'm showing a list of objects which have checkboxes at the end so thata record can be selected for modification or deletion. I'm usingmultiboxes for this purpose and i'm including the record's id(primary key)as the value for the multibox. My problem is that when the page is rendered, all the records aregetting selected by default. What could be the reason for this situation??Any help is appreciated.Regards,Pradeep Bhargav=pradeepbhargavJCE CIVIL GROUPMatrixOne IndiaScandent Group[EMAIL PROTECTED]__Do you Yahoo!?Yahoo! SiteBuilder - Free, easy-to-use web site design softwarehttp://sitebuilder.yahoo.com-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]. IncrediMail - Email has finally evolved - Click Here
Re: File /WEB-INF/struts-bean.tld not found
Hi, I have tried deploying war file its workin fine. since i am interested in developing a appl. i tried to install by unzipping and manual configuration. Thanks, Vinayak. [EMAIL PROTECTED] 07/28/03 02:48PM Since readiing your email I deployed the banking.war file from http://examples.oreilly.com/jakarta/ I get a login page saying enter Access Number --- Pin Number Perhaps you should try that war file From: Vinayak Birari [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: File /WEB-INF/struts-bean.tld not found Date: Mon, 28 Jul 2003 14:08:08 +0530 hi all, I am new to Struts, I have downloaded sample banking application oreilly site.(http://www.oreilly.com/catalog/jakarta/banking-dev.zip) I have unzipped the entire code in webapps\ROOT directory if I m getting following error org.apache.jasper.JasperException: File /WEB-INF/struts-bean.tld not found I have kept all the .tld file in WEB-INF folder in web.xml i have made the entry and given the path as /WEB-INF/struts-bean.tld i wanted to know is it necessary to make its entry anywhere else. thanks in advance. Vinayak. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ 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: How to activate Reset method in ActionForm?
hi, u can't activate reset method from the actionform when theform is submitted, reset is called automatically and then the form elements are pupulated to the action form - nagi ---Original Message--- From: Struts Users Mailing List Date: Monday, July 28, 2003 02:49:35 PM To: [EMAIL PROTECTED] Subject: How to activate Reset method in ActionForm? Hi,how do I activate the reset method in the ActionForm.I have included the reset method in my ActionForm, but it is notactivated.Also, I would like to know if the reset method is read beforethe display of the jsp.Thanks.J G Guru PrasadV sem, Information Technology,Bachelor of Engineering,National Institute of Technology Karnataka, Surathkal.( formerly KREC,Surathkal )Get your own "800" numberVoicemail, fax, email, and a lot morehttp://www.ureach.com/reg/tag-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]. IncrediMail - Email has finally evolved - Click Here
STRUTS with EJB
Hi, I'm new in using of Struts. I would like to integrate STRUTS with EJB. I would like to have a complete example of struts with EJB. I interface STRUTS to EJB with the business delegate pattern but after i don't know how to write class Action, ActionForm, ActionForward... and configure my struts-config.xml Thanks, Laurent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File /WEB-INF/struts-bean.tld not found
OK. I decompiled the code to find the out the access number pin number. here is the code. if(123.equals(s) 456.equals(s1)) From: Vinayak Birari [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: File /WEB-INF/struts-bean.tld not found Date: Mon, 28 Jul 2003 14:43:28 +0530 Hi, I have tried deploying war file its workin fine. since i am interested in developing a appl. i tried to install by unzipping and manual configuration. Thanks, Vinayak. [EMAIL PROTECTED] 07/28/03 02:48PM Since readiing your email I deployed the banking.war file from http://examples.oreilly.com/jakarta/ I get a login page saying enter Access Number --- Pin Number Perhaps you should try that war file From: Vinayak Birari [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: File /WEB-INF/struts-bean.tld not found Date: Mon, 28 Jul 2003 14:08:08 +0530 hi all, I am new to Struts, I have downloaded sample banking application oreilly site.(http://www.oreilly.com/catalog/jakarta/banking-dev.zip) I have unzipped the entire code in webapps\ROOT directory if I m getting following error org.apache.jasper.JasperException: File /WEB-INF/struts-bean.tld not found I have kept all the .tld file in WEB-INF folder in web.xml i have made the entry and given the path as /WEB-INF/struts-bean.tld i wanted to know is it necessary to make its entry anywhere else. thanks in advance. Vinayak. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ 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] _ 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: How to activate Reset method in ActionForm?
Hi, according to struts docs... The methods such as reset and validate are callback methods, container will call these methods, we can not call these them [EMAIL PROTECTED] 07/28/03 02:49PM Hi, how do I activate the reset method in the ActionForm. I have included the reset method in my ActionForm, but it is not activated. Also, I would like to know if the reset method is read before the display of the jsp. Thanks. J G Guru Prasad V sem, Information Technology, Bachelor of Engineering, National Institute of Technology Karnataka, Surathkal. ( formerly KREC,Surathkal ) 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Design Question - same action, many jsps/views
Hi all, I've come across a situation which I'm not sure how to handle with struts. I have an action which, depending on from which page it's called, should forward to different jsps pages. Currently, for each resultant jsp, I create a new action with the exact same logic code inside which forwards to the right jsp. I'm just not sure if this is the right way to do it, because it's replication of code. An alternative might be to switch on the input path of the request and forward to The right jsp, but I'm not sure if this is right either. This has to have come up before, so I'm looking for a best practice solution. What do you guys reckon? Thanks, Brian
RE: STRUTS with EJB
http://xpestore.sourceforge.net -Original Message- From: Laurent MARQUEZ [mailto:[EMAIL PROTECTED] Sent: 28 July 2003 10:33 To: [EMAIL PROTECTED] Subject: STRUTS with EJB Hi, I'm new in using of Struts. I would like to integrate STRUTS with EJB. I would like to have a complete example of struts with EJB. I interface STRUTS to EJB with the business delegate pattern but after i don't know how to write class Action, ActionForm, ActionForward... and configure my struts-config.xml Thanks, Laurent. - 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: File /WEB-INF/struts-bean.tld not found
Hi, I am having entire source code ready. I have gone thr the code also. I just wanted to build it deploy it manually. :) [EMAIL PROTECTED] 07/28/03 03:06PM OK. I decompiled the code to find the out the access number pin number. here is the code. if(123.equals(s) 456.equals(s1)) From: Vinayak Birari [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: File /WEB-INF/struts-bean.tld not found Date: Mon, 28 Jul 2003 14:43:28 +0530 Hi, I have tried deploying war file its workin fine. since i am interested in developing a appl. i tried to install by unzipping and manual configuration. Thanks, Vinayak. [EMAIL PROTECTED] 07/28/03 02:48PM Since readiing your email I deployed the banking.war file from http://examples.oreilly.com/jakarta/ I get a login page saying enter Access Number --- Pin Number Perhaps you should try that war file From: Vinayak Birari [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: File /WEB-INF/struts-bean.tld not found Date: Mon, 28 Jul 2003 14:08:08 +0530 hi all, I am new to Struts, I have downloaded sample banking application oreilly site.(http://www.oreilly.com/catalog/jakarta/banking-dev.zip) I have unzipped the entire code in webapps\ROOT directory if I m getting following error org.apache.jasper.JasperException: File /WEB-INF/struts-bean.tld not found I have kept all the .tld file in WEB-INF folder in web.xml i have made the entry and given the path as /WEB-INF/struts-bean.tld i wanted to know is it necessary to make its entry anywhere else. thanks in advance. Vinayak. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ 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] _ 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: Design Question - same action, many jsps/views
Hello, one way to solve it is not to duplicate code in different Action classes, but have many ActionMapping entries in your struts-config.xml file. This way you keep the navigational part of your application away from Action classes, but still avoid code duplication in Actions. HTH, -- Laurent -Original Message- From: Brian McSweeney To: [EMAIL PROTECTED] Sent: 28-7-03 11:38 Subject: Design Question - same action, many jsps/views Hi all, I've come across a situation which I'm not sure how to handle with struts. I have an action which, depending on from which page it's called, should forward to different jsps pages. Currently, for each resultant jsp, I create a new action with the exact same logic code inside which forwards to the right jsp. I'm just not sure if this is the right way to do it, because it's replication of code. An alternative might be to switch on the input path of the request and forward to The right jsp, but I'm not sure if this is right either. This has to have come up before, so I'm looking for a best practice solution. What do you guys reckon? Thanks, Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiboxes getting selected by default
In the form class have you set the ArrayList which holds the values of the selcted check boxes to null initially..? Cheers Nagaraj Nagendra Kumar O V S [EMAIL PROTECTED] wrote: FLAVOR00-NONE---;hi, checkbox with multibox typically uses 2 collections. an outer collection over which u iterate., which is the superset of all the required records u need to display... another collection is needed by the multibox tag... which is the set of all records u need to get selected on the page load.. when these both collections are equal , means to say that all ur checkboxes are checked .. check it out... --nagi ---Original Message--- From: Struts Users Mailing List Date: Monday, July 28, 2003 02:38:12 PM To: [EMAIL PROTECTED] Subject: Multiboxes getting selected by default Hi All, I'm showing a list of objects which have checkboxes at the end so that a record can be selected for modification or deletion. I'm using multiboxes for this purpose and i'm including the record's id(primary key) as the value for the multibox. My problem is that when the page is rendered, all the records are getting selected by default. What could be the reason for this situation?? Any help is appreciated. Regards, Pradeep Bhargav = pradeepbhargav JCE CIVIL GROUP MatrixOne India Scandent Group [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: [EMAIL PROTECTED] . IncrediMail - Email has finally evolved - Click Here - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
submitting forms
how do you submit a form using javascript via html:link? -- Frances Aleah Z. De Guzman SA/Programmer Ingenium Technology, Inc. http://www.ingenium.com.ph Disclaimer : This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File /WEB-INF/struts-bean.tld not found
You probably need to reload your application after having made the entry in the web.xml file. From: Vinayak Birari [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: File /WEB-INF/struts-bean.tld not found Date: Mon, 28 Jul 2003 14:08:08 +0530 hi all, I am new to Struts, I have downloaded sample banking application oreilly site.(http://www.oreilly.com/catalog/jakarta/banking-dev.zip) I have unzipped the entire code in webapps\ROOT directory if I m getting following error org.apache.jasper.JasperException: File /WEB-INF/struts-bean.tld not found I have kept all the .tld file in WEB-INF folder in web.xml i have made the entry and given the path as /WEB-INF/struts-bean.tld i wanted to know is it necessary to make its entry anywhere else. thanks in advance. Vinayak. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multi-box: JasperException
I am getting a parsing exception when I use a multibox in my JSP. The JSP doesn't compiled. I am getting the exception at bean:write name=item property=name/ in line 5 below. Am I missing something? If I remove the multi-box tags, line 8 (which is same as line 5) works. Here is my code: 1. logic:iterate name=createDeviceForm id=item property=items type=myPackage.item.Item 2. tr align=center width=100%% i++ ; % 3. td 4.html:multibox name=createDeviceForm property=selectedItems 5. bean:write name=item property=name/ 6./html:multibox 7. /td 8. td bean:write name=item property=name/ /td Exception: org.apache.jasper.JasperException: /WEB-INF/screens/createDevice3Pix.jsp(67,62) equal symbol expected at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand ler.java:94) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java :428) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java :126) at org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:169) at org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:136) at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:723) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:809) at org.apache.jasper.compiler.Parser.parseBody(Parser.java:837) at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:758) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:809) at org.apache.jasper.compiler.Parser.parseBody(Parser.java:837) at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:758) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:809) at org.apache.jasper.compiler.Parser.parseBody(Parser.java:837) --Swati. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Multiboxes getting selected by default
Hi, This is how I'm generating the list of records, in this my main list is BusinessObjectsList which is a collection if BusinessObjectBean classes. This is the only collection I'm using. Should I be using another collection/array, if yes where should I have the setter and getter methods for them and what should they contain. Please help me in resolving this issue. === CODE = table logic:iterate id=businessObject indexId=idx name=BusinessObjectsList type=com.test.beans.BusinessObjectBean TR td align=center%=(idx).intValue()+1%/td td align=center bean:write name=businessObject property=name/ /td td align=center bean:write name=businessObject property=type/ /td td align=center bean:write name=businessObject property=revision/ /td td align=center bean:write name=businessObject property=status/ /td td align=center bean:write name=businessObject property=owner/ /td td align=center html:multibox name=businessObject property=objectId bean:write name=businessObject property=objectId/ /html:multibox /td /TR TRTD colspan=7nbsp;/TD/TR /logic:iterate /table == END OF CODE == = pradeepbhargav JCE CIVIL GROUP MatrixOne India Scandent Group [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: [EMAIL PROTECTED]
[OT] Is jsessionid specific to Tomcat or generic to all web containers?
Quick question. Is jsessionid specific to Tomcat or generic to all web containers? Regards, Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to use JSTL taglib with struts html taglib
I would like to use the struts html taglig to generate a bunch of checkboxes. While the following is not correct, it encapsulates what I would like to do: c:forEach items=${myForm.myInformationView} var=basicView html:checkbox property=myItems value=c:out value='${basicView.itemId}'//br /c:forEach I am looping throught the collection using the jstl forEach tag. The problem is that c:out is not evaluated as a runtime expression (actually, it is not evaluated at all). Using c:set to set a page level variable that you could use in a runtime expression does not work either. Is there a way to use both jstl and the struts html taglib here? How can it be done? Regards, Joshua This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logon Submit returns a blank page
Hi and thanks, Ok, I have reached this far in my logon page development... The first JSP page comes up fine, showing me a form html:form action=/LogonSubmit with a rendered html:text tag for each required field (username and password), plus a Reset and a Submit button. Code sample below comes from my struts-config.xml file: form-beans form-bean name=logonForm type=mystrutsforms.LogonForm/ /form-beans global-forwards forward name=logon path=/Logon.do/ /global-forward action-mappings action path=/Logon type=org.apache.struts.actions.ForwardAction parameter=/pages/Logon.jsp/ action path=/LogonSubmit type=mystrutsactions.LogonAction name=logonForm scope=request validate=true input=/pages/Logon.jsp forward name=success path=/pages/LogonSuccess.jsp/ forward name=fail path=/pages/LogonFail.jsp/ /action /action-mappings ** struts-config.xml code above ** I can enter data into the html:text fields and they will erase if I click Reset I can click Submit with nothing filled in (passing nulls with the request), and the proper html:errors/ are displayed However, If I enter any values for the username and password fields, then click Submit, a blank page is always returned. What's up with that? The browser says it's trying to display results from LogonSubmit.do (which is what I expect). I have a file called users.properties in the directory WEB-INF/classes and in my LogonAction.java code: public final class LogonAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws Exception { String username = ( ( LogonForm ) form ).getUsername(); String password = ( ( LogonForm ) form ).getPassword(); boolean validated = false; try { validated = isUserLoggedOn( username, password ); } catch ( SimpleUserDirectoryException sudexc ) { ActionErrors errors = new ActionErrors(); errors.add( ActionErrors.GLOBAL_ERROR, new ActionError( error.logon.connect ) ); saveErrors( request, errors ); return ( new ActionForward( mapping.getInput() ) ); } if ( !validated ) { ActionErrors errors = new ActionErrors(); errors.add( ActionErrors.GLOBAL_ERROR, new ActionError( error.logon.invalid ) ); saveErrors( request, errors ); return ( new ActionForward( mapping.getInput() ) ); } HttpSession session = request.getSession(); session.setAttribute( Constants.USER_KEY, form ); return ( mapping.findForward( Constants.SUCCESS ) ); } public boolean isUserLoggedOn( String username, String password ) throws SimpleUserDirectoryException { return ( SimpleUserDirectory.getInstance().passwordIsValid( username, password ) ); } } ** mystrutsactions.LogonAction.java code above ** Note: The LogonAction.java file above makes use of the following SimpleUserDirectory.java code: private static final String SimpleUserDirectoryFilepath = users.properties; InputStream ips = this.getClass().getClassLoader().getResourceAsStream( SimpleUserDirectoryFilepath ); ** mystrutsforms.LogonForm.java code above ** Also, my web.xml file has: init-param param-nameapplication/param-name param-valueapplication/param-value /init-param ** web.xml code above ** Any suggestions or guesses are appreciated. Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail! http://login.mail.lycos.com/r/referral?aid=27005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Multiboxes getting selected by default
what is the collection and method name used in your form bean to hold the values of the multibox ?? pradeep bhargav [EMAIL PROTECTED] wrote:Hi, This is how I'm generating the list of records, in this my main list is BusinessObjectsList which is a collection if BusinessObjectBean classes. This is the only collection I'm using. Should I be using another collection/array, if yes where should I have the setter and getter methods for them and what should they contain. Please help me in resolving this issue. === CODE = name=BusinessObjectsList type=com.test.beans.BusinessObjectBean == END OF CODE == = pradeepbhargav JCE CIVIL GROUP MatrixOne India Scandent Group [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: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
how can I switch between different languages
Hi, how can I switch between different languages ( independent of the browser-settings ?) at runtime easily ? this setting should be valid if possible for the further session. any ideas ? thx johannes
How to activate Reset method in ActionForm?
Hi, how do I activate the reset method in the ActionForm. I have included the reset method in my ActionForm, but it is not activated. Also, I would like to know if the reset method is read before the display of the jsp. Thanks. J G Guru Prasad V sem, Information Technology, Bachelor of Engineering, National Institute of Technology Karnataka, Surathkal. ( formerly KREC,Surathkal ) 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]
Beginner html:multibox help
I would like to generate a list of check boxes from a collection but determine if the checkbox is checked using a String[]. How could this be done? The following code does not work, but shows what I have tried. Regards, Joshua FormBean ... private String[] userSelectedState; public void setUserSelectedState(String[] userSelectedState) { ... } public String[] getUserSelectedState() { ... } public Collection getAllStatesFromDb() { ... } ... /FormBean JSP ... logic:iterate id=state name=myForm property=allStatesFromDb bean:define id=stateId name=state property=stateId scope=page toScope=page/ html:multibox property=userSelectedState value=%=stateId%/ bean:write name=state property=stateDescription filter=false/br /logic:iterate ... /JSP This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how can I switch between different languages
Switch off struts default locale handling (if I recall correctly this is the 'locale' attribute in the 'controller' element in struts-config.xml - set it to false) and provide the locale yourself stored in the same attribute in the session that struts stores it (the Action class provides a setLocale() method for this - but the attribute has the key defined in the constant Globals.LOCALE_KEY if you need to play with outside an Action). Since your not using the normal method of specifying it by browser settings its up to you to provide a screen (or whatever) where the user can choose one, and in the action it submits to (or if its something on every screen you would be better off subclassing the RequestProcessor and overridding processLocale()) you can create an appropriate Locale object to pass to setLocale(), or store in the session under the aforementioned key. The struts tags use the locale stored under that key to work out which resouce bundle to use. fyi Struts handling of locale setting is to be found in the processLocale() method of the RequestProcessor (you may override this if you wish). What this method does is as follows: 1. Checks the config to see if locale is to be determined automatically and if so: 2. Checks to see if a Locale is already set in the session and if not: 3. Gets the locale using the request.getLocale() method (which takes browser settings (as passed in request header) into account) and stores it in the session /fyi -Original Message- From: Johannes Plachy [mailto:[EMAIL PROTECTED] Sent: Monday, 28 July 2003 19:13 To: [EMAIL PROTECTED] Subject: how can I switch between different languages Hi, how can I switch between different languages ( independent of the browser-settings ?) at runtime easily ? this setting should be valid if possible for the further session. any ideas ? thx johannes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how can I switch between different languages
On http://jakarta.apache.org/struts/resources/tutorials.html there's a link to Struts i18n (=internationalization), to the following article: http://www.anassina.com/struts/i18n/i18n.html towards the end of that article there is a section dynamic language selection I hope this helps, Ben. On Monday, July 28, 2003, at 01:12 PM, Johannes Plachy wrote: Hi, how can I switch between different languages ( independent of the browser-settings ?) at runtime easily ? this setting should be valid if possible for the further session. any ideas ? thx johannes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TilesRequestProcessor not redirecting ForwardConfig
I've posted this to the Apache Bugzilla. After checking the code, it does not handle the option. ID is 21922 Lukas Lukas Bradley [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] It appears as if my TilesRequestProcessor is not issuing a redirection during processForwardConfig(). Instead, a server-side absolute forward is being used, and the original URL remains in the user's browser. Am I doing something incorrectly? Here is the Global Forward: global-forwards forward name=Login path=tile.login redirect=true / /global-forwards Here is the invocation: ForwardConfig lForwardConfig = this.moduleConfig.findForwardConfig(Login); mLogger.info(ForwardConfig for Login is redirect + lForwardConfig.getRedirect()) ; this.processForwardConfig(pRequest, pResponse, lForwardConfig); The getRedirect() returns true. Does tiles not support the redirect attribute? Lukas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Is jsessionid specific to Tomcat or generic to all webcontainers?
It is not standardized. You can not rely on it being the same parameter name for all web servers, even though many use jsessionid. --- Matthias Daniel Joshua wrote: Quick question. Is jsessionid specific to Tomcat or generic to all web containers? Regards, Daniel - 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: anyone used struts and hibernate 2gether?
Check out the #struts_users channel on irc.darkmyst.org. There are quite a few people who use Hibernate w/ Struts. Brad - Bradley M. Handy| Office: 517 750 6675 Programmer/Analyst | Email: [EMAIL PROTECTED] Spring Arbor University | - Sun Certified Programmer for the Java 2 Platform - -Original Message- From: Butt, Dudley [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 4:38 AM To: '[EMAIL PROTECTED]' Subject: anyone used struts and hibernate 2gether? a quick q 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]
Validator not working
Hi, I am integrating struts-validator in a struts-based application. Validadion does not return errors in the server-side validation. Whith this simple test form: form name=ProfileForm field property=profileNum depends=required,integer,intRange arg0 key=Number resource=false/ arg1 name=intRange key=${var:min} resource=false/ arg2 name=intRange key=${var:max} resource=false/ var var-namemin/var-name var-value0/var-value /var var var-namemax/var-name var-value999/var-value /var /field field property=name depends=required arg0 key=Name resource=false/ /field /form and the same validation-rules.xml as the one in struts-validator.war, the super.validate() returns an empty ActionErrors. Other custom validations on the form work. The javascript validation based on the same rules works. I am using Struts 1.1 and tomcat 4.0.6. I can´t find any error messages in the tomcat logs. Is there a custom setting for validator logs? This is the ActionMapping: action path=/ProfileActions className=pt.mai.ngin.ags.common.struts.NginActionMapping type=pt.mai.ngin.ags.common.struts.NginActions name=ProfileForm scope=session parameter=method validate=true input=/ProfilesForm.jsp forward redirect=true name=success path=/ProfilesView.jsp/ /action I have no clue what to check next. :-( Gabriel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Is jsessionid specific to Tomcat or generic to all web containers?
I think it was Tomcat-specific at one time, but I think it is in the Servlet spec now. -Max - Original Message - From: Daniel Joshua [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, July 28, 2003 3:47 AM Subject: [OT] Is jsessionid specific to Tomcat or generic to all web containers? Quick question. Is jsessionid specific to Tomcat or generic to all web containers? Regards, Daniel - 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: Survey builder with Struts
I just need to create internal surveys... - Original Message - From: PREETAM Balijepalli [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, July 28, 2003 8:58 AM Subject: RE: Survey builder with Struts do u need for commercial purpose if so what all u need and what can you pay -Original Message- From: Marco Fabbri [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 11:48 AM To: Struts Users Mailing List Subject: 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 - 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: [OT] Is jsessionid specific to Tomcat or generic to all webcontainers?
It's been standard since at least SRV 2.2. See the servlet spec, section 7.1. E.g., SRV.7.1.1 Cookies Session tracking through HTTP cookies is the most used session tracking mechanism and is required to be supported by all servlet containers. The container sends a cookie to the client. The client will then return the cookie on each subsequent request to the server, unambiguously associating the request with a session. The name of the session tracking cookie must be JSESSIONID. Max Cooper wrote: I think it was Tomcat-specific at one time, but I think it is in the Servlet spec now. -Max - Original Message - From: Daniel Joshua [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, July 28, 2003 3:47 AM Subject: [OT] Is jsessionid specific to Tomcat or generic to all web containers? Quick question. Is jsessionid specific to Tomcat or generic to all web containers? Regards, Daniel - 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]
FW: Validator not working
The Struts Validator plug-in delegates to Commons Validator for the real work. Commons Validator uses Commons Logging for logging. You can enable logging by configuring one of the loggers supported by Commons Logging. I use Log4J. Here is my log4j.properties files in WEB-INF/classes: log4j.appender.CONSOLE_APPENDER=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE_APPENDER.layout=org.apache.log4j.PatternLayout log4j.appender.CONSOLE_APPENDER.layout.ConversionPattern=%d{-MM-dd HH:mm:ss} %p - %m%n log4j.category.org.apache.commons.beanutils=DEBUG, CONSOLE_APPENDER log4j.category.org.apache.commons.digester.Digester=DEBUG, CONSOLE_APPENDER log4j.category.org.apache.commons.digester.Digester.sax=DEBUG, CONSOLE_APPENDER log4j.category.org.apache.commons.validator=DEBUG, CONSOLE_APPENDER log4j.category.org.apache.struts=DEBUG, CONSOLE_APPENDER If you use something other than Log4J, you'll need to configure it to log the org.apache.commons.validator hierarchy. -Original Message- From: Gabriel Guerreiro [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 8:12 AM To: Struts Users Mailing List Subject: Validator not working Hi, I am integrating struts-validator in a struts-based application. Validadion does not return errors in the server-side validation. Whith this simple test form: form name=ProfileForm field property=profileNum depends=required,integer,intRange arg0 key=Number resource=false/ arg1 name=intRange key=${var:min} resource=false/ arg2 name=intRange key=${var:max} resource=false/ var var-namemin/var-name var-value0/var-value /var var var-namemax/var-name var-value999/var-value /var /field field property=name depends=required arg0 key=Name resource=false/ /field /form and the same validation-rules.xml as the one in struts-validator.war, the super.validate() returns an empty ActionErrors. Other custom validations on the form work. The javascript validation based on the same rules works. I am using Struts 1.1 and tomcat 4.0.6. I can´t find any error messages in the tomcat logs. Is there a custom setting for validator logs? This is the ActionMapping: action path=/ProfileActions className=pt.mai.ngin.ags.common.struts.NginActionMapping type=pt.mai.ngin.ags.common.struts.NginActions name=ProfileForm scope=session parameter=method validate=true input=/ProfilesForm.jsp forward redirect=true name=success path=/ProfilesView.jsp/ /action I have no clue what to check next. :-( Gabriel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: StrutsDoc 0.3 Released
Nice! -Original Message- From: Nick [mailto:[EMAIL PROTECTED] Sent: Sunday, July 27, 2003 12:49 AM To: Struts Users Mailing List Subject: Re: StrutsDoc 0.3 Released Sure. It's done and at: http://www.systemmobile.com/strutsdoc/struts-example/ A tar ball of the docs are at: http://www.systemmobile.com/strutsdoc/struts-example/struts-example-docs.tar .gz On Sat, Jul 26, 2003 at 11:30:04PM -0400, James Mitchell wrote: Can we run this against the struts-example and put it up as a demo? -- James Mitchell Software Developer/Struts Evangelist http://www.struts-atlanta.org 678-910-8017 AIM:jmitchtx - Original Message - From: Nick [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 26, 2003 11:30 PM Subject: StrutsDoc 0.3 Released StrutsDoc 0.3 Released StrutsDoc is an extension task for Ant that allows developers to generate Javadoc-like documentation based on their various Struts configuration files. The 0.3 release provides support for Stxx and Tiles configurations, as well as Struts module configurations. This release has been tested with Ant 1.5.2 and 1.5.3, running on JDK 1.4.x on Windows and Linux. Earlier JDK versions will probably work with with no problem, but Xalan must be provided in the classpath as XSLT is used to generate the documentation. StrutsDoc 0.3 is released under the BSD license and can be obtained from the sourceforge.net site: http://struts.sf.net/projects/strutsdoc Thanks to Don Brown for being the release manager for this release. -- Nick Heudecker SystemMobile, Inc. Email: [EMAIL PROTECTED] Phone: 734.604.9192 Web: http://www.systemmobile.com - 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] -- Nick Heudecker SystemMobile, Inc. Email: [EMAIL PROTECTED] Phone: 734.604.9192 Web: http://www.systemmobile.com - 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]
html:multibox and multiple pages
Hello! I have a list split into several pages. Each item in this list has a checkbox which means selecting a list's element. I want to navigate through the list, selecting and deselecting checkboxes on different pages. Finally I hit Done button and want to know ALL items I've selected on EACH page. How to implement this? It seems that html:multibox is of little use here? What will the gurus say? With best regards, Alexey Styrov. E-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to activate Reset method in ActionForm?
That should be all that you need to do. It will automatically be called before each submitted action, not before the display of the JSP. Make sure that you included the correct method (match signature etc). -Tim -Original Message- From: guruprasad jakka To: [EMAIL PROTECTED] Sent: 7/28/2003 7:18 AM Subject: How to activate Reset method in ActionForm? Hi, how do I activate the reset method in the ActionForm. I have included the reset method in my ActionForm, but it is not activated. Also, I would like to know if the reset method is read before the display of the jsp. Thanks. J G Guru Prasad V sem, Information Technology, Bachelor of Engineering, National Institute of Technology Karnataka, Surathkal. ( formerly KREC,Surathkal ) 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Looking for form design advice
Here is the scenario: I have a list of checkboxes which is generated from a collection in the form bean. I have given each of them the name itemId. Based on an attribute of each object in the collection, an additional text box may be generated that is associated with the original text box. For now, I have given the text box the name ${itemId}_description where ${itemId} is the value of the checkbox. I have figured out how to determine if the checkbox is selected. I have not yet figured out how to make the association with the associated text box or how to store the values in the form bean. Any suggestions? This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to use JSTL taglib with struts html taglib
Dear Joshua, The html tags does not understand that expressions were passed and needs to be evaluated. The html-el tags will evaluate the run time expressions , where you do not even need JSTL . please do this, i believe this will work, * html-el:checkbox property=myItems value=${basicView.itemId}/ * with regards, Balaji* * White, Joshua A (HTSC, CASD) wrote: I would like to use the struts html taglig to generate a bunch of checkboxes. While the following is not correct, it encapsulates what I would like to do: c:forEach items=${myForm.myInformationView} var=basicView html:checkbox property=myItems value=c:out value='${basicView.itemId}'//br * * * * /c:forEach I am looping throught the collection using the jstl forEach tag. The problem is that c:out is not evaluated as a runtime expression (actually, it is not evaluated at all). Using c:set to set a page level variable that you could use in a runtime expression does not work either. Is there a way to use both jstl and the struts html taglib here? How can it be done? Regards, Joshua This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts and Constants ?
I am not sure of the books you mentioned. When I use Constants interface, which by the way is a good thing to use in my opinion, I would always get its value with the use of scriptlet at the top of the JSP c:set var=myKey%= Constant.keyValue %/c:set now thru my page I would only refer to myKey and not the value of Constant.keyValue HTH, Alex. -Original Message- From: Emil Alexandrov [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 9:13 AM To: [EMAIL PROTECTED] Subject: Struts and Constants ? Hi, I'm new in Struts and I'm trying to catch up with Chuck's Jakarta Struts but I must confess that I'm a little confused with the use of Constants in Struts. In the examples in the book when we pass some data from controller to view we use something like (session,request).setAttribute(IConstants.SOME_CONST, someObj) where for example SOME_CONST=blah blah What puzzles me is that in the jsp when we want to show the object we use bean:write name=blah blah property=someProperty/ The same examples I saw and in 'Struts Kick Start'. So what is the use of the Constant? If we change the constant we have to go and manually change the value of the constant in jsp too! Am I missing something, or just examples are not complete? 10x, Emil - 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]
Getting BeanUtils.Populate() Exception.
Hi, When I submit a page for save operation I get the BeanUtils.populate exception. Any solution for solving this problem. Below is the stack trace of the exception. BeanUtils.populate javax.servlet.ServletException: BeanUtils.populate at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1098) at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j ava:816) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.pramati.web.interceptors.ServiceInterceptor$ServiceAction.run(ServiceInt erceptor.java:294) at com.pramati.security.util.JAASSecurityHelper.doAs(JAASSecurityHelper.java:14 5) at java.lang.reflect.Method.invoke(Native Method) at com.pramati.services.security.spi.SecurityHelper.doAs(SecurityHelper.java:13 0) at com.pramati.web.interceptors.ServiceInterceptor.preProcess(ServiceIntercepto r.java:141) at com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultIntercep tor.java:47) at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(Intercept orChainImpl.java:48) at com.pramati.web.interceptors.FilterInterceptor.process(FilterInterceptor.jav a:92) at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(Intercept orChainImpl.java:48) at com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultIntercep tor.java:48) at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(Intercept orChainImpl.java:48) at com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultIntercep tor.java:48) at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(Intercept orChainImpl.java:48) at com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultIntercep tor.java:48) at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(Intercept orChainImpl.java:48) at com.pramati.web.interceptors.core.DefaultProcessContainer.process(DefaultPro cessContainer.java:88) at com.pramati.web.core.WorkerThread.run(WorkerThread.java:54) at com.pramati.web.core.AcceptorThread.run(AcceptorThread.java:121) Regards, Anurag Garg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Design in Struts
Well I think how you organize your action classes depends on the complexity of your screens. Once we had some of our Action classes grouped depending on the modules. The screens didn't have too many actions associated and the way the team was structured it made sense to break the Action classes depending on the modules. But in another one where lot were working on the same module and were concentrating on different screens we went with an Action class per page approach. This made sense with the way the team was organized and also since the number of actions that took place in each screen was more. However in such case if you have one action class per page and that class has different methods associated to loading, submitting, deleting or what ever action, IMHO I think it would make things a bit clear and organized. any thoughts?? -Original Message- From: Puneet Agarwal [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 12:28 PM To: Struts Users Mailing List Subject: 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Is jsessionid specific to Tomcat or generic to all web containers?
The JSESSIONID cookie is standard but a more interesting question is whether the url rewriting format is standardized? I haven't been able to confirm that http://blah.com;jsessionid=42789?qry=testqry2=test2 is standard. David --- Andrew Geery [EMAIL PROTECTED] wrote: It's been standard since at least SRV 2.2. See the servlet spec, section 7.1. E.g., SRV.7.1.1 Cookies Session tracking through HTTP cookies is the most used session tracking mechanism and is required to be supported by all servlet containers. The container sends a cookie to the client. The client will then return the cookie on each subsequent request to the server, unambiguously associating the request with a session. The name of the session tracking cookie must be JSESSIONID. Max Cooper wrote: I think it was Tomcat-specific at one time, but I think it is in the Servlet spec now. -Max - Original Message - From: Daniel Joshua [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, July 28, 2003 3:47 AM Subject: [OT] Is jsessionid specific to Tomcat or generic to all web containers? Quick question. Is jsessionid specific to Tomcat or generic to all web containers? Regards, Daniel - 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: [EMAIL PROTECTED]
RE: Struts and Constants ?
They (the authors) are just trying to show code without any scriptlets because that would be a no no. But, like the example already posted in response to your question, using bean:write name=%= IConstants.SOME_CONST % ... would be the equivalent way to use a constant in your tags. It's just not as pretty plus your html developers don't need to know Java when you go without the scriptlets. Using %= IConst.SOME_CONST % you'll need to have to have this at the top of the JSP: %@ page import=whatever.package.IConst % or you can do: %= whatever.package.IConst.SOME_CONST % -Original Message- From: Emil Alexandrov [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 9:13 AM To: [EMAIL PROTECTED] Subject: Struts and Constants ? Hi, I'm new in Struts and I'm trying to catch up with Chuck's Jakarta Struts but I must confess that I'm a little confused with the use of Constants in Struts. In the examples in the book when we pass some data from controller to view we use something like (session,request).setAttribute(IConstants.SOME_CONST, someObj) where for example SOME_CONST=blah blah What puzzles me is that in the jsp when we want to show the object we use bean:write name=blah blah property=someProperty/ The same examples I saw and in 'Struts Kick Start'. So what is the use of the Constant? If we change the constant we have to go and manually change the value of the constant in jsp too! Am I missing something, or just examples are not complete? 10x, Emil - 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: modules sessions
No, the session is associated with the web application and is controlled by the container, not by Struts. You'll need to set cookies in your own application to track per module information. Steve -Original Message- From: Eugen Bushuev [mailto:[EMAIL PROTECTED] Sent: July 27, 2003 11:38 PM To: [EMAIL PROTECTED] Subject: 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: anyone used struts and hibernate 2gether?
a quick a: yes. http://www.catb.org/~esr/faqs/smart-questions.html Steve -Original Message- From: Butt, Dudley [mailto:[EMAIL PROTECTED] Sent: July 28, 2003 1:38 AM To: '[EMAIL PROTECTED]' Subject: anyone used struts and hibernate 2gether? a quick q 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: Getting BeanUtils.Populate() Exception.
Try to find the cause of the exception (ClassCast, MethodNotFound, ... in RequestUtils.java:1098). probably you're using a wrong type (like assigning a String to a BigDecimal, or don't have a proper public setter, ... -Original Message- From: Anurag Garg [mailto:[EMAIL PROTECTED] Sent: maandag 28 juli 2003 15:25 To: Struts Users Mailing List Subject: Getting BeanUtils.Populate() Exception. Hi, When I submit a page for save operation I get the BeanUtils.populate exception. Any solution for solving this problem. Below is the stack trace of the exception. BeanUtils.populate javax.servlet.ServletException: BeanUtils.populate at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1098) at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j ava:816) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.pramati.web.interceptors.ServiceInterceptor$ServiceAction.run(ServiceInt erceptor.java:294) at com.pramati.security.util.JAASSecurityHelper.doAs(JAASSecurityHelper.java:14 5) at java.lang.reflect.Method.invoke(Native Method) at com.pramati.services.security.spi.SecurityHelper.doAs(SecurityHelper.java:13 0) at com.pramati.web.interceptors.ServiceInterceptor.preProcess(ServiceIntercepto r.java:141) at com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultIntercep tor.java:47) at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(Intercept orChainImpl.java:48) at com.pramati.web.interceptors.FilterInterceptor.process(FilterInterceptor.jav a:92) at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(Intercept orChainImpl.java:48) at com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultIntercep tor.java:48) at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(Intercept orChainImpl.java:48) at com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultIntercep tor.java:48) at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(Intercept orChainImpl.java:48) at com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultIntercep tor.java:48) at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(Intercept orChainImpl.java:48) at com.pramati.web.interceptors.core.DefaultProcessContainer.process(DefaultPro cessContainer.java:88) at com.pramati.web.core.WorkerThread.run(WorkerThread.java:54) at com.pramati.web.core.AcceptorThread.run(AcceptorThread.java:121) Regards, Anurag Garg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] STRICTLY PERSONAL AND CONFIDENTIAL This message may contain confidential and proprietary material for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient please contact the sender and delete all copies. Ce Message est uniquement destiné aux récipiendaires indiqués et peut contenir des informations confidentielles. Si vous n'êtes pas le récipiendaire, vous ne devez pas révéler le contenu de ce message ou en prendre copie. Si vous avez reçu ce message par erreur, veuillez en informer l'expéditeur, ou La Poste immédiatement, avant de le supprimer. Dit bericht is enkel bestemd voor de aangeduide ontvangers en kan vertrouwelijke informatie bevatten. Als u niet de ontvanger bent, dan mag u de inhoud van dit bericht niet bekendmaken noch kopiëren. Als u dit bericht per vergissing heeft ontvangen, gelieve er de afzender of De Post onmiddellijk van op de hoogte te brengen en het bericht vervolgens te verwijderen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts and Constants ?
10x 4 the answer, But this 'pure' templates without scriplets have some disadvantages as we see then. And this thing about HTML designers that don't have to know Java is yet another book rule that is not one to one with reality. It's true that designers don't have to know Java and they design in HTML but after I as a developer put some 'tags' in html it's the same confusion for them whether this tags are like %=something% or bean:write name=name property=prop/. Just my thoughts, may be I'm wrong. 10x once again -Original Message- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Sent: 28 2003 . 16:32 To: 'Struts Users Mailing List' Subject: RE: Struts and Constants ? They (the authors) are just trying to show code without any scriptlets because that would be a no no. But, like the example already posted in response to your question, using bean:write name=%= IConstants.SOME_CONST % ... would be the equivalent way to use a constant in your tags. It's just not as pretty plus your html developers don't need to know Java when you go without the scriptlets. Using %= IConst.SOME_CONST % you'll need to have to have this at the top of the JSP: %@ page import=whatever.package.IConst % or you can do: %= whatever.package.IConst.SOME_CONST % -Original Message- From: Emil Alexandrov [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 9:13 AM To: [EMAIL PROTECTED] Subject: Struts and Constants ? Hi, I'm new in Struts and I'm trying to catch up with Chuck's Jakarta Struts but I must confess that I'm a little confused with the use of Constants in Struts. In the examples in the book when we pass some data from controller to view we use something like (session,request).setAttribute(IConstants.SOME_CONST, someObj) where for example SOME_CONST=blah blah What puzzles me is that in the jsp when we want to show the object we use bean:write name=blah blah property=someProperty/ The same examples I saw and in 'Struts Kick Start'. So what is the use of the Constant? If we change the constant we have to go and manually change the value of the constant in jsp too! Am I missing something, or just examples are not complete? 10x, Emil - 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: Struts and Constants ?
Well, you have to communicate somehow to your designers what data he has at his disposal to render. Constants is one way, context scoped vars is another. One way or another you will have to communicate. The way you do it is up to you. -Original Message- From: Emil Alexandrov [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 10:09 AM To: Struts Users Mailing List Subject: RE: Struts and Constants ? 10x 4 the answer, But this 'pure' templates without scriplets have some disadvantages as we see then. And this thing about HTML designers that don't have to know Java is yet another book rule that is not one to one with reality. It's true that designers don't have to know Java and they design in HTML but after I as a developer put some 'tags' in html it's the same confusion for them whether this tags are like %=something% or bean:write name=name property=prop/. Just my thoughts, may be I'm wrong. 10x once again -Original Message- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Sent: 28 2003 . 16:32 To: 'Struts Users Mailing List' Subject: RE: Struts and Constants ? They (the authors) are just trying to show code without any scriptlets because that would be a no no. But, like the example already posted in response to your question, using bean:write name=%= IConstants.SOME_CONST % ... would be the equivalent way to use a constant in your tags. It's just not as pretty plus your html developers don't need to know Java when you go without the scriptlets. Using %= IConst.SOME_CONST % you'll need to have to have this at the top of the JSP: %@ page import=whatever.package.IConst % or you can do: %= whatever.package.IConst.SOME_CONST % -Original Message- From: Emil Alexandrov [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 9:13 AM To: [EMAIL PROTECTED] Subject: Struts and Constants ? Hi, I'm new in Struts and I'm trying to catch up with Chuck's Jakarta Struts but I must confess that I'm a little confused with the use of Constants in Struts. In the examples in the book when we pass some data from controller to view we use something like (session,request).setAttribute(IConstants.SOME_CONST, someObj) where for example SOME_CONST=blah blah What puzzles me is that in the jsp when we want to show the object we use bean:write name=blah blah property=someProperty/ The same examples I saw and in 'Struts Kick Start'. So what is the use of the Constant? If we change the constant we have to go and manually change the value of the constant in jsp too! Am I missing something, or just examples are not complete? 10x, Emil - 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: submitting forms
Just use a normal link with an onclick handler. There's no need to use html:link because you're not actually linking to another page but using the link as a convenient way of initiating Javsacript. a href= onclick=document.forms[0].submit();return false;Click here/a Steve -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: July 28, 2003 3:00 AM To: [EMAIL PROTECTED] Subject: submitting forms how do you submit a form using javascript via html:link? -- Frances Aleah Z. De Guzman SA/Programmer Ingenium Technology, Inc. http://www.ingenium.com.ph Disclaimer : This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. - 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]
need suggestion on logic
Hi, I am building a web application using struts1.1, and this is my requirement, There is a jsp where in user will enter data in text field, and then press enter, this will submit to a Action class, this action class must decide wether a relogin page has to be displayed or not, and if yes then display a relogin page, the user will enter the password, if the password is correct, perform the task of entering data in database, if the password is wrong or user presses cancel, then take him back to the jsp from where the user came, and populate all the data which was entered in jsp, If there is no need for relogin screen, enter the data to database. the puzzle here is how do i write that common Action class which will handle to display the login page, and other Action class which will validate the password, and forward the request to other class So i need to remmember where the request came from and where it has to go?? need help on this Ashish __ 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: [EMAIL PROTECTED]
RE: need suggestion on logic
very simple. say user fills in text field and press enter. 1. Pass the control to an action Checker. 2. Checker will verify if the process needs login. 3. If NOT, case is clear. 4. If YES, + Store the request state variables in some object. + Save that object in Session. + Pass Control to Ask Password page. + Passwd Manager checks if pass is OK? + If NOT re-display the Ask Password. + If YES, - save pass state for Checker's sake. - retrieve the request state variables. - Dispatch a request to checker again. This case will be treated same as 2,3 steps. Checker can be implemented either using + Filter OR + Some method in Base Action + extend request controller. See what suits you. -Navjot Singh PS - If all you are looking for is general login system. See CMA/Realm Security. |-Original Message- |From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] |Sent: Monday, July 28, 2003 8:03 PM |To: [EMAIL PROTECTED] |Subject: need suggestion on logic | | | Hi, | I am building a web application using struts1.1, and | this is my requirement, | There is a jsp where in user will enter data in text | field, and then press enter, this will submit to a | Action class, this action class must decide wether a | relogin page has to be displayed or not, and if yes | then display a relogin page, the user will enter the | password, if the password is correct, perform the | task of entering data in database, if the password |is | wrong or user presses cancel, then take him back to | the jsp from where the user came, and populate all |the data which was entered in jsp, | If there is no need for relogin screen, enter the | data to database. | the puzzle here is how do i write that common Action | class which will handle to display the login page, | and | other Action class which will validate the password, | and forward the request to other class | So i need to remmember where the request came from | and | where it has to go?? | need help on this | | Ashish | | | |__ |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: [EMAIL PROTECTED] | | - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ANN] brief example using iBATIS from Struts
Is there any support for OO or OR Databases in iBATIS? Damn, how come OO is not catching up as fast as it should? UML diagram way more powerful than ER diagram!!! -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: July 25, 2003 9:43 AM To: Struts Users Mailing List Cc: model_struts Subject: [ANN] brief example using iBATIS from Struts There are often newbie requests asking how to deal with a database layer from Struts. Since there are so many ways this can be done, 'simple' examples of how this can be done seem hard to come by. Since I currently use iBATIS as my persistence mechanism of choice, I created a simple Struts application demonstrating just one way a developer could use database persistence: http://www.reumann.net/do/struts/ibatisLesson1 I didn't really have the time to write up a full lesson like the others on the site, but I did provide some comments on a few of the components that deal directly with iBATIS http://www.ibatis.com/.(The iBATIS documentation is excellent and should be read first along side the application). I've looked at the way others have plugged into the database layer and happen to think the approach I demonstrate is simple yet also very flexible. For a more powerful implementation the user should check out the awesome JPetStore application at http://www.ibatis.com/jpetstore/jpetstore.html. Also, Vic has an interesting approach using iBATIS demonstrated in the basicPortal application that you can check out here: http://www.basicportal.com/ -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using an extension of ModuleConfigImpl
Thanks, Rob. This should work quite nicely. I'll try it out and let you know. --aslam -Original Message- From: Rob Leland [mailto:[EMAIL PROTECTED] Sent: Saturday, July 26, 2003 12:31 PM To: Struts Users Mailing List Subject: Re: Using an extension of ModuleConfigImpl Rob Leland wrote: Rob Leland wrote: Karachiwala, Aslam wrote: I do use extensions of ActionConfig ForwardConfig. What I've done is implement a layer of extensions of Struts classes, in which I've added custom fields and methods that I need. I'd like to do the same for ModuleConfig. Is that even possible without tinkering with the Struts code? I am assuming you want to use the same extension of the ModuleConfig for all modules ? If so then I'll see about adding a servlet parameter to set the factory used. The latest nightly build has a new ActionServlet Parameter named 'configFactory'. Set it to the factory that creates your implementation of the ModuleConfig interface in the web.xml -Rob
RE: Design Question - same action, many jsps/views
Hi Brian, Why not use different named forwards for the action and access each one from the action with a: { ... return (mapping.findForward(page1/page2/page3)); } In s-c: action path=/myAction type=FQ Class name=bean ... forward name=page1 path=/page1.jsp/ forward name=page2 path=/page2.jsp/ forward name=page3 path=/page3.jsp/ /action Hue. -Original Message- From: Brian McSweeney [mailto:[EMAIL PROTECTED] Sent: 28 July 2003 10:39 To: [EMAIL PROTECTED] Subject: Design Question - same action, many jsps/views Hi all, I've come across a situation which I'm not sure how to handle with struts. I have an action which, depending on from which page it's called, should forward to different jsps pages. Currently, for each resultant jsp, I create a new action with the exact same logic code inside which forwards to the right jsp. I'm just not sure if this is the right way to do it, because it's replication of code. An alternative might be to switch on the input path of the request and forward to The right jsp, but I'm not sure if this is right either. This has to have come up before, so I'm looking for a best practice solution. What do you guys reckon? Thanks, Brian --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24/07/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24/07/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to use JSTL taglib with struts html taglib
In the contrib directory of the Struts distribution, you'll find the Struts-EL distribution, which is a port of the Struts tag library that uses the JSTL EL engine to evaluate attribute values. Search the archives for Struts-EL. There is a README in the Struts-EL distribution, and there's a few paragraphs in the Struts website documentation. Despite the extreme paucity of documentation for it, it should be relatively clear how to use it, along with references from the archives. -Original Message- From: White, Joshua A (HTSC, CASD) [mailto:[EMAIL PROTECTED] I would like to use the struts html taglig to generate a bunch of checkboxes. While the following is not correct, it encapsulates what I would like to do: c:forEach items=${myForm.myInformationView} var=basicView html:checkbox property=myItems value=c:out value='${basicView.itemId}'//br /c:forEach I am looping throught the collection using the jstl forEach tag. The problem is that c:out is not evaluated as a runtime expression (actually, it is not evaluated at all). Using c:set to set a page level variable that you could use in a runtime expression does not work either. Is there a way to use both jstl and the struts html taglib here? How can it be done? Regards, Joshua This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. - 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: Design Question - same action, many jsps/views
Hi Hue, That's definitely one way to go, but the disadvantage that I see of using this way is that you presumably have to hard code into the action, some way of identifying where the request came from. Perhaps something like: String input = request.getRequestURI(); if(input.equalsIgnorCase(inputpath1) return (mapping.findForward(page1)); else if(input.equalsIgnorCase(inputpath2); return (mapping.findForward(page2)); else if(input.equalsIgnorCase(inputpath3); return (mapping.findForward(page3)); The previous new action mapping idea means you don't have to do this I think, which might make it a better solution. What do you think? I'm not sure though, and thanks very much for the help. Brian -Original Message- From: Hue Holleran [mailto:[EMAIL PROTECTED] Sent: 28 July 2003 16:11 To: Struts Users Mailing List Subject: RE: Design Question - same action, many jsps/views Hi Brian, Why not use different named forwards for the action and access each one from the action with a: { ... return (mapping.findForward(page1/page2/page3)); } In s-c: action path=/myAction type=FQ Class name=bean ... forward name=page1 path=/page1.jsp/ forward name=page2 path=/page2.jsp/ forward name=page3 path=/page3.jsp/ /action Hue. -Original Message- From: Brian McSweeney [mailto:[EMAIL PROTECTED] Sent: 28 July 2003 10:39 To: [EMAIL PROTECTED] Subject: Design Question - same action, many jsps/views Hi all, I've come across a situation which I'm not sure how to handle with struts. I have an action which, depending on from which page it's called, should forward to different jsps pages. Currently, for each resultant jsp, I create a new action with the exact same logic code inside which forwards to the right jsp. I'm just not sure if this is the right way to do it, because it's replication of code. An alternative might be to switch on the input path of the request and forward to The right jsp, but I'm not sure if this is right either. This has to have come up before, so I'm looking for a best practice solution. What do you guys reckon? Thanks, Brian --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24/07/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24/07/2003 - 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: modules sessions
On Mon, 28 Jul 2003, Eugen Bushuev wrote: Date: Mon, 28 Jul 2003 09:38:03 +0300 From: Eugen Bushuev [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: 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? If you want to make the modules have separate sessions, you can make them separate web applications instead. senx wbr, eugen. Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Design Question - same action, many jsps/views
I used a design I called the side trip action. Basically any caller to the action has placed, either in a form field or in the user session object, a from and dest url. the action does what it needs to do, redirects errors back to from, and then forwards on success to dest. I called this the Side trip because I originally used it for a small bit of intelligence -- you go to a page that requires you to be logged in.. you're sent to the login page.. and after a successful login, you're sent back to where you started from. From: Brian McSweeney [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Design Question - same action, many jsps/views Date: Mon, 28 Jul 2003 16:26:52 +0100 Hi Hue, That's definitely one way to go, but the disadvantage that I see of using this way is that you presumably have to hard code into the action, some way of identifying where the request came from. Perhaps something like: String input = request.getRequestURI(); if(input.equalsIgnorCase(inputpath1) return (mapping.findForward(page1)); else if(input.equalsIgnorCase(inputpath2); return (mapping.findForward(page2)); else if(input.equalsIgnorCase(inputpath3); return (mapping.findForward(page3)); The previous new action mapping idea means you don't have to do this I think, which might make it a better solution. What do you think? I'm not sure though, and thanks very much for the help. Brian -Original Message- From: Hue Holleran [mailto:[EMAIL PROTECTED] Sent: 28 July 2003 16:11 To: Struts Users Mailing List Subject: RE: Design Question - same action, many jsps/views Hi Brian, Why not use different named forwards for the action and access each one from the action with a: { ... return (mapping.findForward(page1/page2/page3)); } In s-c: action path=/myAction type=FQ Class name=bean ... forward name=page1 path=/page1.jsp/ forward name=page2 path=/page2.jsp/ forward name=page3 path=/page3.jsp/ /action Hue. -Original Message- From: Brian McSweeney [mailto:[EMAIL PROTECTED] Sent: 28 July 2003 10:39 To: [EMAIL PROTECTED] Subject: Design Question - same action, many jsps/views Hi all, I've come across a situation which I'm not sure how to handle with struts. I have an action which, depending on from which page it's called, should forward to different jsps pages. Currently, for each resultant jsp, I create a new action with the exact same logic code inside which forwards to the right jsp. I'm just not sure if this is the right way to do it, because it's replication of code. An alternative might be to switch on the input path of the request and forward to The right jsp, but I'm not sure if this is right either. This has to have come up before, so I'm looking for a best practice solution. What do you guys reckon? Thanks, Brian --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24/07/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24/07/2003 - 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] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Is jsessionid specific to Tomcat or generic to all webcontainers?
On Mon, 28 Jul 2003, David Graham wrote: Date: Mon, 28 Jul 2003 06:37:49 -0700 (PDT) From: David Graham [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: [OT] Is jsessionid specific to Tomcat or generic to all web containers? The JSESSIONID cookie is standard but a more interesting question is whether the url rewriting format is standardized? I haven't been able to confirm that http://blah.com;jsessionid=42789?qry=testqry2=test2 is standard. The URL rewriting format is also standardized; in section 7.1.3 you will see the sentence: The session id must be encoded as a path parameter in the URL string. A path parameter is defined in the RFCs that define the formats of URLs. Among other things, that means it is separated by a semicolon (;) instead of a question mark or ampersand, and that path parameters come first. David Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Source Code Print Utility For Code Reviews?
You may want to check out Java2HTML (www.java2html.com). There's an Ant task that you can integrate into your build process. It will generate HTML that highlights your source code, adds hyperlinks to allow you to navigate it, and put line numbers on it. You may not even need to print it if you publish the HTML to a central location. But you should just be able to print .html files directly from Windows explorer (I assume). It's a fairly simple solution, but may meet your needs without much tweaking. HTH, Tim [EMAIL PROTECTED] wrote: I just came up with a solution that utilizes enscript and Ghostscript. I initially tried to use the Windows ports of both of those programs, but I could not get them to work the way I wanted them to. So I installed the cygwin versions of both and all works well. Basically, I go from the .java file to a PDF formatted just as you describe below. I wrote a short shell script that invokes enscript to format the file into a PostScript document and then run those results trough Ghostscript to distill it into a PDF. It seems that Windows Explorer allows you to right-click on a selection of PDF files and print them in one fell swoop (through Acrobat maybe?). So far in the one day that I have been doing it this way, this has worked well for me. I have also found gvim to be quite useful in this endeavor. I can open all of the Java files that I want to print in one gvim session and utilize command mode to process all of them with the conversion script. This may be a bit of a roundabout way of accomplishing this task, but it is almost fully automated for me. Let me know if you would like more specific details about this process. Larry -Original Message- From: Hohlen, John C [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 2:38 PM To: Struts-User (E-mail) Subject: [OT] Source Code Print Utility For Code Reviews? Anybody know of a good free print utility for generating hardcopies of Java source files for code reviews? Something that can print landscape, automatically print line numbers, etc. Ideally, I just like to be able put the utility in my Send To folder so I can print the file from Windows Explorer without having to open up the file. Thanks, JOHN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** This electronic mail transmission contains confidential and/or privileged information intended only for the person(s) named. Any use, distribution, copying or disclosure by another person is strictly prohibited. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validation of Indexed Properties
Hi, I am currently imple,enting the Struts validator into our web app. All is going pretty well with the exception of client-side indexed property validation. I have looked at the Validator documentation, and gone through this list looking for some idea that will give me a clue as to what I am doing wrong. I have not been able to find anything that makes this work. I would appreciate any help or direction. Nick Code snippets from the various objects that are involved: struts-config: form-bean name=ItemaForm type=com.myco.toolkits.forms.ItemaEditorForm form-property name=timeRequests type=com.myco.toolkits.beans.ToolkitTimeRequest[] size=10/ /form-bean validation.xml: field indexedListProperty=timeRequest property=startTime depends= required arg0 key=itemaEditor.timeRequestStartTime/ /field jsp: nested:iterate name=%=ItemaEditorAction.ITEMA_DETAIL_FORM % property=timeRequests id=timeRequest indexId=trIndex tr id=trDetail td id=startTime align=left html:text name=timeRequest property=startTime indexed= true size=25 maxlength=30 styleId=StartTime/ /td /tr nested:iterate - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Is jsessionid specific to Tomcat or generic to all web containers?
--- Craig R. McClanahan [EMAIL PROTECTED] wrote: On Mon, 28 Jul 2003, David Graham wrote: Date: Mon, 28 Jul 2003 06:37:49 -0700 (PDT) From: David Graham [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: [OT] Is jsessionid specific to Tomcat or generic to all web containers? The JSESSIONID cookie is standard but a more interesting question is whether the url rewriting format is standardized? I haven't been able to confirm that http://blah.com;jsessionid=42789?qry=testqry2=test2 is standard. The URL rewriting format is also standardized; in section 7.1.3 you will see the sentence: The session id must be encoded as a path parameter in the URL string. A path parameter is defined in the RFCs that define the formats of URLs. Among other things, that means it is separated by a semicolon (;) instead of a question mark or ampersand, and that path parameters come first. Ah, they definitely need to make that clearer in the spec. I had read that sentence but only interpreted it to mean a query string parameter. Thanks for the clarification. David Craig - 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: [EMAIL PROTECTED]
Offtopic: Dynamic Menus and struts?
Hi we are developing an application with struts and tiles, and we'd like one of our tiles to contain a menu that is rendered everytime the page is loaded. And the menus that the user can see are based on what permissions he has access to. So we were thinking of using Javascript to do the menu (only other way I know of is an applet). But we have a couple fundamental problems, #1 how to get the permissions from the session object into a javascript function, and how to get the menu data to the javascript functions, in the form of an xml file or otherwise. Has anyone else tackled something of the sort? Any help/expertise extremely appreciated. -David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Offtopic: Dynamic Menus and struts?
There was a discussion about this recently. Search the list archives for Java array to JavaScript array. You'll want to build your JavaScript array based on a (probably) session scoped Java array. Your JavaScript function would then be responsible for building the menu items. http://marc.theaimsgroup.com/?l=struts-user -= J -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 11:08 AM To: Struts Mailing List Subject: Offtopic: Dynamic Menus and struts? Hi we are developing an application with struts and tiles, and we'd like one of our tiles to contain a menu that is rendered everytime the page is loaded. And the menus that the user can see are based on what permissions he has access to. So we were thinking of using Javascript to do the menu (only other way I know of is an applet). But we have a couple fundamental problems, #1 how to get the permissions from the session object into a javascript function, and how to get the menu data to the javascript functions, in the form of an xml file or otherwise. Has anyone else tackled something of the sort? Any help/expertise extremely appreciated. -David - 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]
Struts 1.1 questions
We have an app that is broken down into sub-apps. Within the struts-config.xml file (defined in the web.xml as being the default app) I have this entry: message-resources parameter=com.acs.cfs.kidstar.web.KidstarResources/ Within a sub-app's config file I have the following entries: message-resources parameter=com.acs.cfs.kidstar.web.KidstarResources/ message-resources parameter=com.acs.cfs.kidstar.web.casemgmt.CasemgmtResources / message-resources key=MESSAGE parameter=com.acs.cfs.kidstar.web.casemgmt.CasemgmtMessages / Questions are this. 1) While in a jsp of a sub-app, if someone looks up a message WITHOUT using the bundle attribute and it is not found in the sub-app's default resource bundle (ie: html:messages id=message message=true header=messages.header footer=messages.footer ) will Struts look to the applications default msg-resource's file for that key? (For example with what I've defined above if key foomsg isn't found in the com.acs.cfs.kidstar.web.casemgmt.CasemgmtResources file, will it go to the com.acs.cfs.kidstar.web.KidstarResources file to look for it? It appears to not be the case. 2) Is it possible to have what I've got in the sub-app config file - that being 2 default resources (both without the key attribute)? It seems that Struts does not complain about this but it only takes the last entry in the list for the default resource. What I really want to happen is, look in KidstarResources and if not found look in CasemgmtResources. (Of course if 2 files contain the same key there'd need to be a pecking order of who is used first, in my case I don't have msgkeys that are contained in both files). Thanks for any info on this.
RE: Offtopic: Dynamic Menus and struts?
I'm looking at the very same thing right now. Struts-menu (a seperate Struts helper package) takes care of all the javascript stuff. It does have built in support for permissions based display, but I don't know if supports truly dynamic (i.e. defined in the database) menus - any ideas anyone? Paul -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: 28 July 2003 17:08 To: Struts Mailing List Subject: Offtopic: Dynamic Menus and struts? Hi we are developing an application with struts and tiles, and we'd like one of our tiles to contain a menu that is rendered everytime the page is loaded. And the menus that the user can see are based on what permissions he has access to. So we were thinking of using Javascript to do the menu (only other way I know of is an applet). But we have a couple fundamental problems, #1 how to get the permissions from the session object into a javascript function, and how to get the menu data to the javascript functions, in the form of an xml file or otherwise. Has anyone else tackled something of the sort? Any help/expertise extremely appreciated. -David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Reasons to move to Struts 1.1
Dear all, We have using Struts 1.0.2 for about last couple of years. Now that Struts 1.1 is out. Are there any reasons for us to start thinking moving to 1.1? Any help or pointer to help will be greatly appreicated. Regards, ATTA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reasons to move to Struts 1.1
Struts 1.1 has tons of new features including validator, tiles, dynabeans, and map backed forms. David --- atta-ur rehman [EMAIL PROTECTED] wrote: Dear all, We have using Struts 1.0.2 for about last couple of years. Now that Struts 1.1 is out. Are there any reasons for us to start thinking moving to 1.1? Any help or pointer to help will be greatly appreicated. Regards, ATTA - 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: [EMAIL PROTECTED]
Re: Logon Submit returns a blank page
What is in the log file? Log files records errors. There may be a clue. --- todd thorner [EMAIL PROTECTED] wrote: Hi and thanks, Ok, I have reached this far in my logon page development... The first JSP page comes up fine, showing me a form html:form action=/LogonSubmit with a rendered html:text tag for each required field (username and password), plus a Reset and a Submit button. Code sample below comes from my struts-config.xml file: form-beans form-bean name=logonForm type=mystrutsforms.LogonForm/ /form-beans global-forwards forward name=logon path=/Logon.do/ /global-forward action-mappings action path=/Logon type=org.apache.struts.actions.ForwardAction parameter=/pages/Logon.jsp/ action path=/LogonSubmit type=mystrutsactions.LogonAction name=logonForm scope=request validate=true input=/pages/Logon.jsp forward name=success path=/pages/LogonSuccess.jsp/ forward name=fail path=/pages/LogonFail.jsp/ /action /action-mappings ** struts-config.xml code above ** I can enter data into the html:text fields and they will erase if I click Reset I can click Submit with nothing filled in (passing nulls with the request), and the proper html:errors/ are displayed However, If I enter any values for the username and password fields, then click Submit, a blank page is always returned. What's up with that? The browser says it's trying to display results from LogonSubmit.do (which is what I expect). I have a file called users.properties in the directory WEB-INF/classes and in my LogonAction.java code: public final class LogonAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws Exception { String username = ( ( LogonForm ) form ).getUsername(); String password = ( ( LogonForm ) form ).getPassword(); boolean validated = false; try { validated = isUserLoggedOn( username, password ); } catch ( SimpleUserDirectoryException sudexc ) { ActionErrors errors = new ActionErrors(); errors.add( ActionErrors.GLOBAL_ERROR, new ActionError( error.logon.connect ) ); saveErrors( request, errors ); return ( new ActionForward( mapping.getInput() ) ); } if ( !validated ) { ActionErrors errors = new ActionErrors(); errors.add( ActionErrors.GLOBAL_ERROR, new ActionError( error.logon.invalid ) ); saveErrors( request, errors ); return ( new ActionForward( mapping.getInput() ) ); } HttpSession session = request.getSession(); session.setAttribute( Constants.USER_KEY, form ); return ( mapping.findForward( Constants.SUCCESS ) ); } public boolean isUserLoggedOn( String username, String password ) throws SimpleUserDirectoryException { return ( SimpleUserDirectory.getInstance().passwordIsValid( username, password ) ); } } ** mystrutsactions.LogonAction.java code above ** Note: The LogonAction.java file above makes use of the following SimpleUserDirectory.java code: private static final String SimpleUserDirectoryFilepath = users.properties; InputStream ips = this.getClass().getClassLoader().getResourceAsStream( SimpleUserDirectoryFilepath ); ** mystrutsforms.LogonForm.java code above ** Also, my web.xml file has: init-param param-nameapplication/param-name param-valueapplication/param-value /init-param ** web.xml code above ** Any suggestions or guesses are appreciated. Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail! http://login.mail.lycos.com/r/referral?aid=27005 - 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: [EMAIL PROTECTED]
Re: Reasons to move to Struts 1.1
Thanks, David. With these keywords, I sure should be able to dig deeper. Regards, ATTA - Original Message - From: David Graham [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, July 28, 2003 9:31 AM Subject: Re: Reasons to move to Struts 1.1 Struts 1.1 has tons of new features including validator, tiles, dynabeans, and map backed forms. David --- atta-ur rehman [EMAIL PROTECTED] wrote: Dear all, We have using Struts 1.0.2 for about last couple of years. Now that Struts 1.1 is out. Are there any reasons for us to start thinking moving to 1.1? Any help or pointer to help will be greatly appreicated. Regards, ATTA - 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: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File /WEB-INF/struts-bean.tld not found
Did you put: %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % in your FileName.jsp? --- message message [EMAIL PROTECTED] wrote: You probably need to reload your application after having made the entry in the web.xml file. From: Vinayak Birari [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: File /WEB-INF/struts-bean.tld not found Date: Mon, 28 Jul 2003 14:08:08 +0530 hi all, I am new to Struts, I have downloaded sample banking application oreilly site.(http://www.oreilly.com/catalog/jakarta/banking-dev.zip) I have unzipped the entire code in webapps\ROOT directory if I m getting following error org.apache.jasper.JasperException: File /WEB-INF/struts-bean.tld not found I have kept all the .tld file in WEB-INF folder in web.xml i have made the entry and given the path as /WEB-INF/struts-bean.tld i wanted to know is it necessary to make its entry anywhere else. thanks in advance. Vinayak. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus - 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: [EMAIL PROTECTED]
messages 101
I can't seem to get messages to work. My action code has this line of code: //create a message ActionMessages messages = new ActionMessages(); messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(record.save.success,new Integer(record.getUID(; this.saveMessages(request,messages); //log it if (log.isInfoEnabled()){ log.info(Record saved successfully: + record.getUID()); } and my view has this: html:messages id=error bean:write name=error/br / /html:messages and my struts-config has: message-resources parameter=gov.noaa.mm.NMMRResources/ Nothing prints out in my view. What am I missing here? The log message Record saved successfully shows up, so I know that the messages are being saved. My ActionErrors work fine so I know my message-resources are being used properly. The javadoc for Action.saveMessages() reads: Save the specified messages keys into the appropriate request attribute for use by the html:messages tag (if messages=true is set), if any messages are required. Is this my problem? Do I have to set messages to true. Where do I set messages=true? thanks, -Trav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Servlets tied to J2EE in new spec
Hi, I just attended a conference this weekend.A speaker mentioned that with the Servlet 2.4 spec, Servlets are being tied to the J2EE environment.I would like to know in what way ? Also,does this mean that we can't use Tomcat anymore ?? Thanks, Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reasons to move to Struts 1.1
There is a book by Ted husted and a few other others called struts in action. Page 54 - 57 has a number of tables with various points. The tables are called Struts 1.0 weaknesses addressed by Sruts 1.1 Struts 1.1 weaknesses Struts's Strengths. From: atta-ur rehman [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Reasons to move to Struts 1.1 Date: Mon, 28 Jul 2003 09:30:51 -0700 Dear all, We have using Struts 1.0.2 for about last couple of years. Now that Struts 1.1 is out. Are there any reasons for us to start thinking moving to 1.1? Any help or pointer to help will be greatly appreicated. Regards, ATTA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ 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: Reasons to move to Struts 1.1
Some reasons I've come up with from recent experience: * Support: Even though 1.1 was only recently released, it has been widely used for a while. In fact, at the risk of starting a flame war, I would go so far as to say that 1.0 has been largely abandoned (at least by the user community). I have never seen a book on Struts that covers 1.0, and most answers I've seen on this list assume that poster is using 1.1. * Functionality: The list of features added by 1.1 is too long to mention here (look at the release notes). Among them are dynamic forms (so you don't have the maintenance overhead of writing your own form beans), and I believe the tag libraries are friendlier. I had to use 1.0, and was always frustrated as I would find a feature that would do exactly what I needed, only to find out that it was only in 1.0. Basically, if you want to save yourself a lot of aggravation, upgrade to 1.1. Dhruva --- atta-ur rehman [EMAIL PROTECTED] wrote: Dear all, We have using Struts 1.0.2 for about last couple of years. Now that Struts 1.1 is out. Are there any reasons for us to start thinking moving to 1.1? Any help or pointer to help will be greatly appreicated. Regards, ATTA - 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: [EMAIL PROTECTED]
Re: messages 101
in your html:message tag you need to set the message property to true. You'd end up with something like this html:messages id=message message=true bean:write name=message/br /html:messages Travis Stevens [EMAIL PROTECTED]To: [EMAIL PROTECTED] oaa.gov cc: Subject: messages 101 07/28/2003 12:47 PM Please respond to Struts Users Mailing List I can't seem to get messages to work. My action code has this line of code: //create a message ActionMessages messages = new ActionMessages(); messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(record.save.success,new Integer(record.getUID(; this.saveMessages(request,messages); //log it if (log.isInfoEnabled()){ log.info(Record saved successfully: + record.getUID()); } and my view has this: html:messages id=error bean:write name=error/br / /html:messages and my struts-config has: message-resources parameter=gov.noaa.mm.NMMRResources/ Nothing prints out in my view. What am I missing here? The log message Record saved successfully shows up, so I know that the messages are being saved. My ActionErrors work fine so I know my message-resources are being used properly. The javadoc for Action.saveMessages() reads: Save the specified messages keys into the appropriate request attribute for use by the html:messages tag (if messages=true is set), if any messages are required. Is this my problem? Do I have to set messages to true. Where do I set messages=true? thanks, -Trav - 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]