validwhen
Hi, Has any one used validwhen validator rule ? when I am using it is not doing anything its making empty validate javascript methods and no validations are being called . Thanks in advance. cheers, Sumeet
RE: validwhen
As I understood, validwhen is only on server side. there will not be any javascript validations. -Original Message- From: sumeet sharma [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 1:08 PM To: [EMAIL PROTECTED] Subject: validwhen Hi, Has any one used validwhen validator rule ? when I am using it is not doing anything its making empty validate javascript methods and no validations are being called . Thanks in advance. cheers, Sumeet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Definition for form bean
Hi, I am getting [ org.apache.jasper.JasperException: Cannot retrieve definition for form bean null ] but I have given it in my struts-config.xml [ form-beans form-bean name=loginForm type=com.globalRad.LoginForm/ /form-beans ] the class LoginForm.class exists in the specified directory structure... Where can I be going wrong? Pls advice. Thanks! Ipsita -- http://www.fastmail.fm - mmm... Fastmail... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message
Hi , am new to struts...am trying to deploy an example...which is throwing org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message exception...i tried to set the structs.jar to classpath...still am getting the same error... pls advice me... sreeni This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Definition for form bean
Can you please send the code of your action mapping also. AS i think u may be using attribute not the name while associating the form with the Action. - Original Message - From: Ipsita [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 13, 2003 2:21 PM Subject: Definition for form bean Hi, I am getting [ org.apache.jasper.JasperException: Cannot retrieve definition for form bean null ] but I have given it in my struts-config.xml [ form-beans form-bean name=loginForm type=com.globalRad.LoginForm/ /form-beans ] the class LoginForm.class exists in the specified directory structure... Where can I be going wrong? Pls advice. Thanks! Ipsita -- http://www.fastmail.fm - mmm... Fastmail... - 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: org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message
Hi To look after into the problem. I need to have a look on to ur code. Which server are you using? - Original Message - From: Gali, Sreenivasalu Naidu (Cognizant) [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 13, 2003 2:33 PM Subject: org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message Hi , am new to struts...am trying to deploy an example...which is throwing org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message exception...i tried to set the structs.jar to classpath...still am getting the same error... pls advice me... sreeni - 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]
Sturts
HI is there any way to call a action within an JSP file without using Submit button and any other html:form element I want to call a action with in a logic:iterate which is further containing one more logic:iterate
RE: org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message
Hi, am using Tomcat 4.1 -Original Message- From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 2:38 PM To: Struts Users Mailing List Subject: Re: org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message Hi To look after into the problem. I need to have a look on to ur code. Which server are you using? - Original Message - From: Gali, Sreenivasalu Naidu (Cognizant) [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 13, 2003 2:33 PM Subject: org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message Hi , am new to struts...am trying to deploy an example...which is throwing org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message exception...i tried to set the structs.jar to classpath...still am getting the same error... pls advice me... sreeni - 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] This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message
no worries. It is simple Can u send me the code and steps u r follwoing Cheers Gary - Original Message - From: Gali, Sreenivasalu Naidu (Cognizant) [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 13, 2003 2:42 PM Subject: RE: org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message Hi, am using Tomcat 4.1 -Original Message- From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 2:38 PM To: Struts Users Mailing List Subject: Re: org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message Hi To look after into the problem. I need to have a look on to ur code. Which server are you using? - Original Message - From: Gali, Sreenivasalu Naidu (Cognizant) [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 13, 2003 2:33 PM Subject: org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message Hi , am new to struts...am trying to deploy an example...which is throwing org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message exception...i tried to set the structs.jar to classpath...still am getting the same error... pls advice me... sreeni - 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]
Problem of nested logic:iterate
Hi, I have a problem regarding struts logic:iterate I need to show category wise listing of products. so can anybody advice me how to create nested logic iterate loops to accomplish this. what i need is there will be two nested logic iterates logic:iterate !--this is for listing of catergory-- logic:iterate !--this is for products under a catergory-- /logic:iterate /logic:iterate How can populate the inner loop variable??? Thanks in advance, Raman Garg
Re: org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message
For newbie, try to use struts-blank.war and start developing. Hope this will helps u. regards Sathish On Thu, 13 Nov 2003 14:33:34 +0530, Gali, Sreenivasalu Naidu (Cognizant) [EMAIL PROTECTED] wrote: Hi , am new to struts...am trying to deploy an example...which is throwing org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message exception...i tried to set the structs.jar to classpath...still am getting the same error... pls advice me... sreeni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message
Hi , i just followed the steps and code available in this following link http://www.javaranch.com/newsletter/Mar2002/newslettermar2002.jsp#struts Thanks a lot .. Regards Sreeni -Original Message- From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 2:42 PM To: Struts Users Mailing List Subject: Re: org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message no worries. It is simple Can u send me the code and steps u r follwoing Cheers Gary - Original Message - From: Gali, Sreenivasalu Naidu (Cognizant) [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 13, 2003 2:42 PM Subject: RE: org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message Hi, am using Tomcat 4.1 -Original Message- From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 2:38 PM To: Struts Users Mailing List Subject: Re: org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message Hi To look after into the problem. I need to have a look on to ur code. Which server are you using? - Original Message - From: Gali, Sreenivasalu Naidu (Cognizant) [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 13, 2003 2:33 PM Subject: org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message Hi , am new to struts...am trying to deploy an example...which is throwing org.apache.jasper.JasperException: /jsp/LoginView.jsp(9,13) Unable to load class message exception...i tried to set the structs.jar to classpath...still am getting the same error... pls advice me... sreeni - 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] This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Show validation error messages next to the corresponding input fields
use property attribute of html:messages or html:errors. you will get only the messages that concern your field. Caroline Caroline LAUFERON Cap Gemini Telecom Media Networks France Skill Center VASN - RENNES 02 99 27 61 92 [EMAIL PROTECTED] - Original Message - From: Kevin Wang [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 13, 2003 3:22 AM Subject: Show validation error messages next to the corresponding input fields Does anybody know how to do this? I know I can get ActionErrors which is an array of messages.. but is there a way I can put the messages in place with their input fields? Thanks. - 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: Definition for form bean
Hi Ipsita, Have a look at the following ex: form-bean name=TestFormBean type=test.FormBeanClass/ action path=/test type=test.ActionClass scope=session name=TestFormBean validate=true forward name=Success path=/jsp/displaypage.jsp redirect=false/ forward name=Failure path=/jsp/error.jsp redirect=false/ /action The problem would be at the ActionMapping where you are associating the formBean with the Action Class. If you have done that already, you can have a quick check in the jsp whether the form bean instance is available or not by : logic:present name=TestFormBean scope=session BForm ref available in Session Scope /B /logic:present if the form bean is available then do the rest of your processing. - Prasun -Original Message- From: Ipsita [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 2:22 PM To: Struts Users Mailing List Subject: Definition for form bean Hi, I am getting [ org.apache.jasper.JasperException: Cannot retrieve definition for form bean null ] but I have given it in my struts-config.xml [ form-beans form-bean name=loginForm type=com.globalRad.LoginForm/ /form-beans ] the class LoginForm.class exists in the specified directory structure... Where can I be going wrong? Pls advice. Thanks! Ipsita -- http://www.fastmail.fm - mmm... Fastmail... - 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]
FYI - some good links
Tutorials with struts http://jakarta.apache.org/struts/resources/tutorials.html For List of common errors in Struts http://www.geocities.com/Colosseum/Field/7217/SW/struts/errors.html Some code examples with struts http://forum.exadel.com/viewtopic.php?t=120 do share yours!!! Raman Garg
Problem of nested logic:Iterate
Hi, I have a problem regarding struts logic:iterate I need to show category wise listing of products. so can anybody advice me how to create nested logic iterate loops to accomplish this. what i need is there will be two nested logic iterates logic:iterate !--this is for listing of catergory-- logic:iterate ... !--this is for products under a catergory-- /logic:iterate /logic:iterate How can populate the inner loop variable each category id?? Thanks in advance, Raman Garg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DynaAction differences?
On 11/12/2003 11:35 PM Nathan Maves wrote: What is the difference between these three DynaActionForm DynaValidatorForm DynaValidatorActionForm I assume that the first does no validation. But I can not find any docs on how to use the second two. Hi Nathan, the first allows the developer to write their own validation routines in the validate() method. The second work within the Validator framework, which includes validate.xml configuration, to do validation automatically. The difference between them centers on which validation configuration the class chooses from the xml file, dependent on the path or on the form name. The best place to read up on this is the jakarta struts website. It really is quite comprehensive and where it is not, there are links to other resources such as the validator wiki. Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FYI - some good links
Thank you very much -Original Message- From: Raman Garg [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 3:13 PM To: Struts Users Mailing List Subject: FYI - some good links Tutorials with struts http://jakarta.apache.org/struts/resources/tutorials.html For List of common errors in Struts http://www.geocities.com/Colosseum/Field/7217/SW/struts/errors.html Some code examples with struts http://forum.exadel.com/viewtopic.php?t=120 do share yours!!! Raman Garg This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ExceptionHandler to ActionError
Hi I'd like to catch exceptions in an exception handler and then re-use the ActionMessage mechanism to relay messages to the failed input page. Is this possible? What do I have to do within the ExceptionHandler to invoke the ActionMessage mechanism? thanks Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE: validwhen
Yes it is for server side only. But if I can define a CDATA and call a method to perform javascript validation cant I do that ?? As there is no way I can validate a nested indexed property on the clientside and server side same time . No then I will end up writting javascript in .js files .. Which I am trying to avoid for bussiness logic . Thanx cheers, Sumeet On Thu, 13 Nov 2003 Vara Prasad Reddy wrote : As I understood, validwhen is only on server side. there will not be any javascript validations. -Original Message- From: sumeet sharma [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 1:08 PM To: [EMAIL PROTECTED] Subject: validwhen Hi, Has any one used validwhen validator rule ? when I am using it is not doing anything its making empty validate javascript methods and no validations are being called . Thanks in advance. cheers, Sumeet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem of nested logic:iterate
Here u go...I have a userForm that has a list of users. Each User further has a list of orders...here's the logic:iterate code to do what u want to do ... logic:iterate name=userForm property=users id=user bean:write name=user property=firstname/ logic:iterate name=user property=orders id=order bean:write name=order property=orderdesc/ /logic:iterate /logic:iterate Sumit -Original Message- From: Raman Garg [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 2:46 PM To: Struts Users Mailing List Subject: Problem of nested logic:iterate Hi, I have a problem regarding struts logic:iterate I need to show category wise listing of products. so can anybody advice me how to create nested logic iterate loops to accomplish this. what i need is there will be two nested logic iterates logic:iterate !--this is for listing of catergory-- logic:iterate !--this is for products under a catergory-- /logic:iterate /logic:iterate How can populate the inner loop variable??? Thanks in advance, Raman Garg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
R: who want to join xmoon project ?
Added new documentation about the login example. A quick tour of xmoon. http://www.xmoon.it -Messaggio originale- Da: Mario [mailto:[EMAIL PROTECTED] Inviato: mercoledì 12 novembre 2003 14.30 A: '[EMAIL PROTECTED]' Oggetto: who want to join xmoon project ? Its an opensource project that speed up your development time. http://www.xmoon.it http://www.xmoon.it/ contact me.
action-mappings, action not working
Hi I am using : Redhat 9 Apache 2.0.48 Tomcat 4.1.29 Struts 1.1 For some reason I am not getting any errors and control is not getting forwarded to respective success forward from DummyAction. Any help is appreciated. Regards Ajay Kalidindi config and source follows: struts-config.xml entry: action-mappings action path=/Menutype=com.kalidindis.home.DummyAction forward name=success path=/common/menu.jsp/ /action /action-mappings DummyAction.java : package com.kalidindis.home; import java.io.IOException; import javax.servlet.RequestDispatcher; import javax.servlet.*; import org.apache.struts.action.*; import org.apache.struts.util.*; /** * Implementation of strongAction/strong that lists contacts of Ajay Kalidindi. */ public final class DummyAction extends Action { public ActionForward perform(ActionServlet servlet, ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { return (mapping.findForward(success)); } }
Re: action-mappings, action not working
Try to debug it using System.out.println (SAMPLE TEXT ); in your action class public ActionForward perform(ActionServlet servlet, ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { System.out.println (SAMPLE TEXT ); return (mapping.findForward(success)); } and check the output at tomcat after restarting it... this will ensure that your class file is called. if this goes ok then some problem is there in your index.jsp cheers Raman Garg - Original Message - From: Ajay Kalidindi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 13, 2003 4:53 PM Subject: action-mappings, action not working Hi I am using : Redhat 9 Apache 2.0.48 Tomcat 4.1.29 Struts 1.1 For some reason I am not getting any errors and control is not getting forwarded to respective success forward from DummyAction. Any help is appreciated. Regards Ajay Kalidindi config and source follows: struts-config.xml entry: action-mappings action path=/Menutype=com.kalidindis.home.DummyAction forward name=success path=/common/menu.jsp/ /action /action-mappings DummyAction.java : package com.kalidindis.home; import java.io.IOException; import javax.servlet.RequestDispatcher; import javax.servlet.*; import org.apache.struts.action.*; import org.apache.struts.util.*; /** * Implementation of strongAction/strong that lists contacts of Ajay Kalidindi. */ public final class DummyAction extends Action { public ActionForward perform(ActionServlet servlet, ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { return (mapping.findForward(success)); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts comparison
Struts comparison to WebWork: http://www.jroller.com/page/mrdon/2003#re_struts_vs_webwork_technical .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: action-mappings, action not working
Hi, the methode signature is wrong. You have to override the methode public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { There is no method public ActionForward perform(ActionServlet servlet, ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { in the Action class. Since Struts 1.1 the perform method is deprecated, so you better use the execute method. public ActionForward execute(ActionMapping mapping, ActionForm form, ServletRequest request, ServletResponse response) throws Exception { HTH, Phil - Original Message - From: Ajay Kalidindi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 13, 2003 12:23 PM Subject: action-mappings, action not working Hi I am using : Redhat 9 Apache 2.0.48 Tomcat 4.1.29 Struts 1.1 For some reason I am not getting any errors and control is not getting forwarded to respective success forward from DummyAction. Any help is appreciated. Regards Ajay Kalidindi config and source follows: struts-config.xml entry: action-mappings action path=/Menutype=com.kalidindis.home.DummyAction forward name=success path=/common/menu.jsp/ /action /action-mappings DummyAction.java : package com.kalidindis.home; import java.io.IOException; import javax.servlet.RequestDispatcher; import javax.servlet.*; import org.apache.struts.action.*; import org.apache.struts.util.*; /** * Implementation of strongAction/strong that lists contacts of Ajay Kalidindi. */ public final class DummyAction extends Action { public ActionForward perform(ActionServlet servlet, ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { return (mapping.findForward(success)); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DynaAction differences?
DynaActionForm implements the DynaBean interface and allows you to declaratively create action forms in the struts-config file. DynaValidatorForm is an DynaActionForm which hooks into the struts validation framework. The form name is passed to the validation framework to identify the validation rules to execute. DynaValidatorActionForm is an DynaValidatorForm which hooks into the struts validation framework. The action path is passed to the validation framework to identify the validation rules to execute. If you look at the source code for each, it will become evident how they work. robert -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 5:35 PM To: [EMAIL PROTECTED] Subject: DynaAction differences? What is the difference between these three DynaActionForm DynaValidatorForm DynaValidatorActionForm I assume that the first does no validation. But I can not find any docs on how to use the second two. nathan - 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: ExceptionHandler to ActionError
Assuming you want to do this to make use of the html:messages tag... The default ExceptionHandler (org.apache.struts.action.ExceptionHandler) creates an ActionErrors object which encapsulates the error message derived from the Exception and the ExceptionConfig. By nature of the inheritance relationship an ActionErrors is an ActionMessages. Therefor you can use the html:messages tag with the ActionErrors created by the ExceptionHandler. In your page you can iterate over the ActionErrors created by the ExceptonHandler like so... html:messages id=error lic:out value=${error} escapeXml=false//li /html:messages By default the messages tag will iterate over the ActionErrors rather than the ActionMessages which is what you want in this case since ExceptionHandler created and stored them as ActionErrors. -- Norm Deane MIS Consultant Vanderbilt University (615) 322-7855 [EMAIL PROTECTED] -Original Message- From: Nathan Coast [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 4:20 AM To: Struts Users Mailing List Subject: ExceptionHandler to ActionError Hi I'd like to catch exceptions in an exception handler and then re-use the ActionMessage mechanism to relay messages to the failed input page. Is this possible? What do I have to do within the ExceptionHandler to invoke the ActionMessage mechanism? thanks Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't Find Source For Struts 1.0.2
I can't find a link to the source code for Struts 1.0.2 on the Struts website anymore. Anyone know how I can download a copy? Thanks, JOHN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: PDF File Display in JSP-Struts
Any time he has to fix a bug or add a new feature, he knows exactly which file to edit ;-) -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 9:03 PM To: Struts Users Mailing List Subject: Re: PDF File Display in JSP-Struts I remember in the pre-Struts days of someone on the JSP Interest mailing list talking about the fact that they had a 5000 line JSP page that implemented the entire app (complete with creating different forms and processing the results) -- all in a single page. And he was *proud* of it!
Re: R: who want to join xmoon project ?
I noticed that the example has a couple of Hibernate xml files in it aswell ? Mike |-+ | | Mario | | | [EMAIL PROTECTED]| | | idea.com| | || | | 13/11/2003 11:14 | | | AM | | | Please respond to| | | Struts Users| | | Mailing List| |-+ --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: R: who want to join xmoon project ? | --| Added new documentation about the login example. A quick tour of xmoon. http://www.xmoon.it -Messaggio originale- Da: Mario [mailto:[EMAIL PROTECTED] Inviato: mercoledì 12 novembre 2003 14.30 A: '[EMAIL PROTECTED]' Oggetto: who want to join xmoon project ? It's an opensource project that speed up your development time. http://www.xmoon.it http://www.xmoon.it/ contact me. The information in this message is confidential and may be legally privileged. It is intended solely for the addressee; access to this email by anyone else is unauthorised. If you are not the intended recipient: (1) you are kindly requested to return a copy of this message to the sender indicating that you have received it in error, and to destroy the received copy; and (2) any disclosure or distribution of this message, as well as any action taken or omitted to be taken in reliance on its content, is prohibited and may be unlawful. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Validation using mask
when attempt to try this with other field its working fine()...Any Idea? Has anyone ever experienced such problem in validation ?? -Ram -Original Message- From: Ramadoss Chinnakuzhandai Sent: Wednesday, November 12, 2003 4:46 PM To: Struts Users Mailing List Subject: RE: Validation using mask sorry Saul I tried that as well but again it does not accepting . Any idea/suggestion would be appreciated. -Ram -Original Message- From: Saul Q Yuan [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 3:20 PM To: 'Struts Users Mailing List' Subject: RE: Validation using mask Try take out the - before \., ie. Use: ^[0-9a-zA-Z\.]*$ Saul -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 3:09 PM To: Struts Users Mailing List Subject: RE: Validation using mask Any suggestions or ideas for the below mail would be greatly appreciated. Tnx in advance, -Ram -Original Message- From: Ramadoss Chinnakuzhandai Sent: Wednesday, November 12, 2003 10:18 AM To: [EMAIL PROTECTED] Subject: Validation using mask Sorry for posting my prev question again... In my form I'm validating a TextField hostname in order to accept only ^[0-9a-zA-Z-\.]*$ in its input value using mask pattern in validation.xml. field property=hostname depends=required,mask,minlength,maxlength arg0 key=form.hostname/ arg1 key=${var:minlength} name=minlength resource=false/ arg2 key=${var:maxlength} name=maxlength resource=false/ msg name=mask key=errors.hostname.invalid/ var var-namemaxlength/var-name var-value63/var-value /var var var-nameminlength/var-name var-value1/var-value /var var var-namemask/var-name var-value^[0-9a-zA-Z-\.]*$/var-value /var /field The problem is that it DOES NOT accepting . character as part its input value. The same time I tested the same pattern for different TextField called ccID on the other page and I found it accepting . character as part of its input value field property=ccID depends=requiredif,mask arg0 key=form.creditcard.cid/ msg name=mask key=errors.hostname.invalid/ var var-namefield[0]/var-name var-valueccNoID/var-value /var var var-namefieldTest[0]/var-name var-valueEQUAL/var-value /var var var-namefieldValue[0]/var-name var-valuefalse/var-value /var var var-namemask/var-name var-value^[0-9a-zA-Z-\.]*$/var-value /var /field I'm just wondering why it does accepting the first field and why it does not for the second field? Please correct me where I'm going wrong or do I hv to modify the mask pattern in such a way that it accepts . character...?? -Ram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
R: R: who want to join xmoon project ?
Yes but i'll remove it because hibernate probably will not support dynabean in the future. i'm using commons sql and i'll publish another demo soon (i hope) -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Inviato: giovedì 13 novembre 2003 15.50 A: Struts Users Mailing List Oggetto: Re: R: who want to join xmoon project ? I noticed that the example has a couple of Hibernate xml files in it aswell ? Mike |-+ | | Mario | | | [EMAIL PROTECTED]| | | idea.com| | || | | 13/11/2003 11:14 | | | AM | | | Please respond to| | | Struts Users| | | Mailing List| |-+ --- ---| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: R: who want to join xmoon project ? | --- ---| Added new documentation about the login example. A quick tour of xmoon. http://www.xmoon.it -Messaggio originale- Da: Mario [mailto:[EMAIL PROTECTED] Inviato: mercoledì 12 novembre 2003 14.30 A: '[EMAIL PROTECTED]' Oggetto: who want to join xmoon project ? It's an opensource project that speed up your development time. http://www.xmoon.it http://www.xmoon.it/ contact me. The information in this message is confidential and may be legally privileged. It is intended solely for the addressee; access to this email by anyone else is unauthorised. If you are not the intended recipient: (1) you are kindly requested to return a copy of this message to the sender indicating that you have received it in error, and to destroy the received copy; and (2) any disclosure or distribution of this message, as well as any action taken or omitted to be taken in reliance on its content, is prohibited and may be unlawful. - 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]
Are Tiles controller classes singletons
I have some tiles controller classes (BlahBlahTilesController implements org.apache.struts.tiles.Controller) assigned for a few definitions. Are these managed by Tiles as singletons? I am guessing they are. Version Info: I am using TilesForStruts.jar with Struts 1.0.2 Thanks, -Shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DB2 Pooled connection from Struts
Good morning... I'm having an impossible time getting a pool of connections to a DB2 database going. I've gotten a single connection to work using the old method (DriverManager.register, DriverManager.getConnection, ...) but I can't seem to do it by describing the datasource in struts-config.xml and calling getDataSource(). Here's the code that works (in a bean): DriverManager.registerDriver(new COM.ibm.db2.jdbc.app.DB2Driver()); Connection conn = DriverManager.getConnection(jdbc:db2:DB2Test, user, password); I've tried a whole bunch configurations in struts-config.xml, for example: data-source key=CIS type=COM.ibm.db2.jdbc.DB2ConnectionPoolDataSource set-property property=driverClass value=COM.ibm.db2.jdbc.app.DB2Driver / set-property property=url value=jdbc:db2:DB2Test / set-property property=user value=user / set-property property=password value=password / set-property property=maxActive value=10 / set-property property=maxWait value=5000 / set-property property=defaultAutoCommit value=false / /data-source and then in my Action I call: CISCustomerLookup ccl = new CISCustomerLookup(getDataSource(req, CIS).getConnection()); Where ccl is my bean and to shield it from the Struts layer I pass the connection it should use for the lookup. But it doesn't work. The latest error I recieved is the following: javax.servlet.ServletException: [IBM][JDBC Drvier] CLI0615E Error receiving from... I've also recieved messages alluding to no suitable driver available. And when I check the Tomcat log I have often had a situation where the ActionServlet was marked unavailable due to a problem creating the datasource when I deployed the war. I've also tried the net driver (COM.ibm.db2.jdbc.net.DB2Driver) with similar results. Help me please!!! Any working examples would be most apprciated. Eric Schultz Technical Leader Conseiller Technique Elix Specialist in interactive business solutions Specialiste en solutions d'affaires interactives 14 Commerce Place, 5th floor Nun's Island, QC H4E 1T5 t: 514 768-1000 f: 514 768-7680 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: R: who want to join xmoon project ?
Mario, Where did you hear that dynabean will not be supported? I'm using the 2.1b6 release and it has components that can be dynabeans. I didn't see any notes about it going away anytime soon. (not that I've used those dynabean components yet). Regards, David -Original Message- From: Mario [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 10:02 AM To: 'Struts Users Mailing List' Subject: R: R: who want to join xmoon project ? Yes but i'll remove it because hibernate probably will not support dynabean in the future. i'm using commons sql and i'll publish another demo soon (i hope) -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Inviato: giovedì 13 novembre 2003 15.50 A: Struts Users Mailing List Oggetto: Re: R: who want to join xmoon project ? I noticed that the example has a couple of Hibernate xml files in it aswell ? Mike |-+ | | Mario | | | [EMAIL PROTECTED]| | | idea.com| | || | | 13/11/2003 11:14 | | | AM | | | Please respond to| | | Struts Users| | | Mailing List| |-+ --- ---| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: R: who want to join xmoon project ? | --- ---| Added new documentation about the login example. A quick tour of xmoon. http://www.xmoon.it -Messaggio originale- Da: Mario [mailto:[EMAIL PROTECTED] Inviato: mercoledì 12 novembre 2003 14.30 A: '[EMAIL PROTECTED]' Oggetto: who want to join xmoon project ? It's an opensource project that speed up your development time. http://www.xmoon.it http://www.xmoon.it/ contact me. The information in this message is confidential and may be legally privileged. It is intended solely for the addressee; access to this email by anyone else is unauthorised. If you are not the intended recipient: (1) you are kindly requested to return a copy of this message to the sender indicating that you have received it in error, and to destroy the received copy; and (2) any disclosure or distribution of this message, as well as any action taken or omitted to be taken in reliance on its content, is prohibited and may be unlawful. - 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: R: who want to join xmoon project ?
David, There has been discussion on the Hibernate forums and mailing lists that dynabeans will be deprecated in a release after 2.1. I do not believe that a replacement will be made available. If you would like to voice your opinion on this, please visit the Hibernate forums at: http://forum.hibernate.org/ On Thu, Nov 13, 2003 at 10:24:31AM -0500, David Friedman wrote: Mario, Where did you hear that dynabean will not be supported? I'm using the 2.1b6 release and it has components that can be dynabeans. I didn't see any notes about it going away anytime soon. (not that I've used those dynabean components yet). Regards, David -Original Message- From: Mario [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 10:02 AM To: 'Struts Users Mailing List' Subject: R: R: who want to join xmoon project ? Yes but i'll remove it because hibernate probably will not support dynabean in the future. i'm using commons sql and i'll publish another demo soon (i hope) -- Nick Heudecker SystemMobile, Inc. Email: [EMAIL PROTECTED] Web: http://www.systemmobile.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
R: R: who want to join xmoon project ?
http://forum.hibernate.org/viewtopic.php?t=925033highlight=dynabean -Messaggio originale- Da: David Friedman [mailto:[EMAIL PROTECTED] Inviato: giovedì 13 novembre 2003 16.25 A: Struts Users Mailing List Oggetto: RE: R: who want to join xmoon project ? Mario, Where did you hear that dynabean will not be supported? I'm using the 2.1b6 release and it has components that can be dynabeans. I didn't see any notes about it going away anytime soon. (not that I've used those dynabean components yet). Regards, David -Original Message- From: Mario [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 10:02 AM To: 'Struts Users Mailing List' Subject: R: R: who want to join xmoon project ? Yes but i'll remove it because hibernate probably will not support dynabean in the future. i'm using commons sql and i'll publish another demo soon (i hope) -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Inviato: giovedì 13 novembre 2003 15.50 A: Struts Users Mailing List Oggetto: Re: R: who want to join xmoon project ? I noticed that the example has a couple of Hibernate xml files in it aswell ? Mike |-+ | | Mario | | | [EMAIL PROTECTED]| | | idea.com| | || | | 13/11/2003 11:14 | | | AM | | | Please respond to| | | Struts Users| | | Mailing List| |-+ --- ---| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: R: who want to join xmoon project ? | --- ---| Added new documentation about the login example. A quick tour of xmoon. http://www.xmoon.it -Messaggio originale- Da: Mario [mailto:[EMAIL PROTECTED] Inviato: mercoledì 12 novembre 2003 14.30 A: '[EMAIL PROTECTED]' Oggetto: who want to join xmoon project ? It's an opensource project that speed up your development time. http://www.xmoon.it http://www.xmoon.it/ contact me. The information in this message is confidential and may be legally privileged. It is intended solely for the addressee; access to this email by anyone else is unauthorised. If you are not the intended recipient: (1) you are kindly requested to return a copy of this message to the sender indicating that you have received it in error, and to destroy the received copy; and (2) any disclosure or distribution of this message, as well as any action taken or omitted to be taken in reliance on its content, is prohibited and may be unlawful. - 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]
Dynamic HTML
How can generate input tags dynamicly ?? My application have fields that are dynamics and sometimes I have 1 fields and sometimes I have N fields. Can I control this in struts ?? Thanks Sergio. Aquest missatge electrònic pot contenir informació confidencial o privilegiada. Si vostè no és el destinatari del missatge, o l'ha rebut per error, si us plau notifiqui-ho al remitent i destrueixi el missatge amb tot el seu contingut. Està completament prohibida qualsevol còpia, ús o distribució no autoritzada del contingut d'aquest missatge electrònic. Este mensaje electrónico puede contener información confidencial o privilegiada. Si usted no es el destinatario de este mensaje o lo ha recibido por error, por favor notifíquelo al remitente y destruya el mensaje con todo su contenido. Queda expresamente prohibida cualquier copia, utilización o distribución no autorizada del contenido de este mensaje electrónico. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Validation using mask
Can anybody suggest me is there any good resources to refer particularty deep into Struts Validation...? I did refer Struts by Marinescu and other one by Ted Husted but unfortunately did not find enough information particularly deal with Struts Validation.. I hv been trying to see what is the cause but seems still look very hard for me to find out the following problem... :) -Ram -Original Message- From: Ramadoss Chinnakuzhandai Sent: Thursday, November 13, 2003 9:54 AM To: Struts Users Mailing List Subject: RE: Validation using mask when attempt to try this with other field its working fine()...Any Idea? Has anyone ever experienced such problem in validation ?? -Ram -Original Message- From: Ramadoss Chinnakuzhandai Sent: Wednesday, November 12, 2003 4:46 PM To: Struts Users Mailing List Subject: RE: Validation using mask sorry Saul I tried that as well but again it does not accepting . Any idea/suggestion would be appreciated. -Ram -Original Message- From: Saul Q Yuan [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 3:20 PM To: 'Struts Users Mailing List' Subject: RE: Validation using mask Try take out the - before \., ie. Use: ^[0-9a-zA-Z\.]*$ Saul -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 3:09 PM To: Struts Users Mailing List Subject: RE: Validation using mask Any suggestions or ideas for the below mail would be greatly appreciated. Tnx in advance, -Ram -Original Message- From: Ramadoss Chinnakuzhandai Sent: Wednesday, November 12, 2003 10:18 AM To: [EMAIL PROTECTED] Subject: Validation using mask Sorry for posting my prev question again... In my form I'm validating a TextField hostname in order to accept only ^[0-9a-zA-Z-\.]*$ in its input value using mask pattern in validation.xml. field property=hostname depends=required,mask,minlength,maxlength arg0 key=form.hostname/ arg1 key=${var:minlength} name=minlength resource=false/ arg2 key=${var:maxlength} name=maxlength resource=false/ msg name=mask key=errors.hostname.invalid/ var var-namemaxlength/var-name var-value63/var-value /var var var-nameminlength/var-name var-value1/var-value /var var var-namemask/var-name var-value^[0-9a-zA-Z-\.]*$/var-value /var /field The problem is that it DOES NOT accepting . character as part its input value. The same time I tested the same pattern for different TextField called ccID on the other page and I found it accepting . character as part of its input value field property=ccID depends=requiredif,mask arg0 key=form.creditcard.cid/ msg name=mask key=errors.hostname.invalid/ var var-namefield[0]/var-name var-valueccNoID/var-value /var var var-namefieldTest[0]/var-name var-valueEQUAL/var-value /var var var-namefieldValue[0]/var-name var-valuefalse/var-value /var var var-namemask/var-name var-value^[0-9a-zA-Z-\.]*$/var-value /var /field I'm just wondering why it does accepting the first field and why it does not for the second field? Please correct me where I'm going wrong or do I hv to modify the mask pattern in such a way that it accepts . character...?? -Ram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDF File Display in JSP-Struts
I remember in the pre-Struts days of someone on the JSP Interest mailing list talking about the fact that they had a 5000 line JSP page that implemented the entire app (complete with creating different forms and processing the results) -- all in a single page. And he was *proud* of it! Doesn't he still post to this list under the alias Vic C.? [EMAIL PROTECTED] 11/12/2003 7:03:13 PM Quoting Christian Bollmeyer [EMAIL PROTECTED]: Am Mittwoch, 12. November 2003 21:31 schrieb Craig R. McClanahan: Quoting Larry Meadors [EMAIL PROTECTED]: Why would you ever do this? This looks like a complete and total kludge. If you are sending back binary data (application/pdf), just do it from the action class using the response.getOutputStream() and return null from the execute method. Advantages: - you already have everything you need right there - you eliminate the entry in struts-config - you eliminate a useless jsp - you can specify any content type (not just one per jsp) - you get better exception handling - the list could go on and on... There's actually a much more fundamental reason than all of the above (which are true nonetheless) -- JSP pages are not allowed to create binary output. They never call response.getOutputStream(). That's how it's meant to be, and JSPs themselves don't, but you can always shed in a scriptlet to make them behave otherwise. You might get lucky on some containers, but you can be assured that writing binary output from a scriptlet is not guaranteed to be portable. Indeed, you're more likely to cause an IllegalStateException, because the servlet container won't let you call getWriter() and getOutputStream() on the same response. I've seen people doing just ridiculous things with JSPs, some of them routinely putting a % at the top and a % at the end, and then went on happily putting everything imaginable in-bet- ween, usually with lengthy %@ page import=[xy] % state- ments on top. Won't support Mark Galbreath on this matter, so if there may be a grain of truth in his direction, I'm still just telling from my personal experiences, limited to a single case, thankfully. But never underestimate human ingenuity ;-) s/ingenuity/foolishness/ :-) I remember in the pre-Struts days of someone on the JSP Interest mailing list talking about the fact that they had a 5000 line JSP page that implemented the entire app (complete with creating different forms and processing the results) -- all in a single page. And he was *proud* of it! Larry Craig -- Chris. Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
simple question
Hi, Is there any Struts tag for an expression like %= request.getAttribute(attributeName)% where the attribute is a String. Thanks, Shyam __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Collection of Updateable over multiple pages.
Hi, In my application, I am using logic:iterate tags to iterate over a collection. The collection is displayed as a table on jsp page, and I use indexed=true attributes to display individual fields which are all updateable. This collection can sometimes be very big (like 500). I wish to break it into multiple pages, and allow user to browse and update any value. How should I do it? Currently I have only one form and action class. Thanks, Anubhav This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and from our network.
Re: simple question
you can use bean:write name=attributeName OR bean:message key=attributeName/ Where key is the key defined in resources file Cheers Gary - Original Message - From: Shyam A [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 13, 2003 9:40 PM Subject: simple question Hi, Is there any Struts tag for an expression like %= request.getAttribute(attributeName)% where the attribute is a String. Thanks, Shyam __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't Find Source For Struts 1.0.2
Try this link http://archive.apache.org/dist/jakarta/struts/old/release/v1.0.2/ -Original Message- From: Hohlen, John C [mailto:[EMAIL PROTECTED] Sent: Thu 11/13/2003 8:32 AM To: Struts-User (E-mail) Cc: Subject: Can't Find Source For Struts 1.0.2 I can't find a link to the source code for Struts 1.0.2 on the Struts website anymore. Anyone know how I can download a copy? Thanks, JOHN - 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]
indexId attribute of logic:iterate tag
Hi, I have a JSP page in which I display the results of a database query in a table format using logic:iterate tag for a bean. I want to display the number of the table row using the indexId attribute of the logic:iterate tag. The index starts from 0 but I want to display the records starting from 1. I have been unsuccessful at my initial attempts in manipulating the indexId to work the way I want. Any suggestions? Thanks, Shym __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts-legacy.jar
Hi All, Can anyone please explain the real funda of struts-legacy.jar. I faced a big problem of image uploading and was getting error when i was posting the form by setting enctype but when i kept struts-legacy.jar into my webserver classpath. My code is running perfectly What is the logic behind it ANy help will be appreciated regards Gary - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
simple design question
I have a simple design question.. I have to forms. first form is one simple select box that needs to have the values populated from a db. This form needs to have validation and the submit to the second form. The second form need to populate a select box based on the value from the first form. This form also need to be validated and then forward on to the display jsp. How many form beans and actions will I need? I would like to use dynavalidatorforms as well. Current setup is an action that places an arraylist into an attribute of the request then forward to the first form. I dont know how to get the first form to auto validate and forward to the second form. nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: indexId attribute of logic:iterate tag
You could use JSTL c:forEach var=element items=${form.items} varStatus=status c:out value=${status.count}/ !-- starts at 1 -- c:out value=${element}/br /c:forEach For more information see Interface LoopTagStatus in the current JSTL Spec. robert -Original Message- From: Shyam A [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 11:41 AM To: [EMAIL PROTECTED] Subject: indexId attribute of logic:iterate tag Hi, I have a JSP page in which I display the results of a database query in a table format using logic:iterate tag for a bean. I want to display the number of the table row using the indexId attribute of the logic:iterate tag. The index starts from 0 but I want to display the records starting from 1. I have been unsuccessful at my initial attempts in manipulating the indexId to work the way I want. Any suggestions? Thanks, Shym __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - 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: simple design question
Then a simple answer, one solution would be, use a single form, two actions, and use action (path) based validation. Saul -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 12:02 PM To: [EMAIL PROTECTED] Subject: simple design question I have a simple design question.. I have to forms. first form is one simple select box that needs to have the values populated from a db. This form needs to have validation and the submit to the second form. The second form need to populate a select box based on the value from the first form. This form also need to be validated and then forward on to the display jsp. How many form beans and actions will I need? I would like to use dynavalidatorforms as well. Current setup is an action that places an arraylist into an attribute of the request then forward to the first form. I dont know how to get the first form to auto validate and forward to the second form. nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can I use action path instead of form name in form name=xxx in validation.xml?
I can't use the form names because in our application all the forms are by the same session attribute. I read from somewhere that I can do something like, formset form name=/logonaction /form /formset But I haven't been successful...Please advice, Thanks! Kevin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can I use action path instead of form name in form name=xxx in validation.xml?
Yes. You can do this, but you have to use or subclass DynaValidatorActionForm. It uses the path attribute of the action mapping to determine validation rules for the request. robert -Original Message- From: Kevin Wang [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 12:13 PM To: [EMAIL PROTECTED] Subject: Can I use action path instead of form name in form name=xxx in validation.xml? I can't use the form names because in our application all the forms are by the same session attribute. I read from somewhere that I can do something like, formset form name=/logonaction /form /formset But I haven't been successful...Please advice, Thanks! Kevin - 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: simple design question
This sounds like what I need! Can you explain a little more.. :) Thanks in advance, nathan On Nov 13, 2003, at 10:10 AM, Saul Q Yuan wrote: Then a simple answer, one solution would be, use a single form, two actions, and use action (path) based validation. Saul -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 12:02 PM To: [EMAIL PROTECTED] Subject: simple design question I have a simple design question.. I have to forms. first form is one simple select box that needs to have the values populated from a db. This form needs to have validation and the submit to the second form. The second form need to populate a select box based on the value from the first form. This form also need to be validated and then forward on to the display jsp. How many form beans and actions will I need? I would like to use dynavalidatorforms as well. Current setup is an action that places an arraylist into an attribute of the request then forward to the first form. I dont know how to get the first form to auto validate and forward to the second form. nathan - 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: simple design question
Ok, then, 1. Let's say you declare your form as MyForm, which is of type DynaValidatorActionForm in Struts-config.xml. 2. And you declare your actions as /myAction1 and /myAction2 respectively. 3. Then in validation.xml, declare your validation as: form name=/myAction1 field ... arg0 ... / /field /form form name=/myAction2 field ... arg0 ... / /field /form 4. Add necessary codes in your jsp files to support client side JS validation. a. html:form action=/myAction1.do onsubmit=return validateMyForm(this); b. html:javascript formName=/myAction1 method=validateMyForm dynamicJavascript=true staticJavascript=false / script language=Javascript1.1 src=staticJavascript.jsp/script same for the other jsp page. Hope this helps Saul -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 12:23 PM To: Struts Users Mailing List Subject: Re: simple design question This sounds like what I need! Can you explain a little more.. :) Thanks in advance, nathan On Nov 13, 2003, at 10:10 AM, Saul Q Yuan wrote: Then a simple answer, one solution would be, use a single form, two actions, and use action (path) based validation. Saul -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 12:02 PM To: [EMAIL PROTECTED] Subject: simple design question I have a simple design question.. I have to forms. first form is one simple select box that needs to have the values populated from a db. This form needs to have validation and the submit to the second form. The second form need to populate a select box based on the value from the first form. This form also need to be validated and then forward on to the display jsp. How many form beans and actions will I need? I would like to use dynavalidatorforms as well. Current setup is an action that places an arraylist into an attribute of the request then forward to the first form. I dont know how to get the first form to auto validate and forward to the second form. nathan - 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]
tag body output
(this is really a taglib question, not struts, so my apology for being off-topic) I am designing a security tag which shows or nukes its body depending on the user. I got it to work, although I have a question as to why the simplier code didn't work. I am just learning and I want to understand. Here is the working code public class SecurityTag extends BodyTagSupport { protected String saveBody = null; public int doStartTag() throws JspException { String ts = (String) pageContext. getAttribute(TEST-SECURITY,PageContext.SESSION_SCOPE); if (hide.equals(ts)) { return SKIP_BODY; } return EVAL_BODY_BUFFERED; } public int doAfterBody() throws JspException { if (bodyContent != null) { saveBody = bodyContent.getString(); } else { saveBody = null; } return SKIP_BODY; } public int doEndTag() throws JspException { if (saveBody != null) ResponseUtils.write(pageContext, saveBody); return EVAL_PAGE; } } My first attempt was to just call ResponseUtils.write(pageContext, bodyContent.getString()) from doAfterBody(). WHY DIDN'T THAT WORK? It just output nothing despite the fact that bodyContent had the content at that point. Thanks, Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : Dynamic HTML
-Message d'origine- De : Gonzalez Comesaña [mailto:Gonzalez Comesaña] Envoyé : jeudi 13 novembre 2003 11:36 À : Struts Users Mailing List Objet : Dynamic HTML How can generate input tags dynamicly ?? My application have fields that are dynamics and sometimes I have 1 fields and sometimes I have N fields. Can I control this in struts ?? Thanks Sergio. Yes, with indexed or nested properties Example : public class InfoForm extends ValidatorForm{// defined in session scope in struts config Info info; public Info getInfo() { return info; } public void setInfo(Info info) { this.info = info; } } public class Info implements Serializable, GroupByItem { ArrayList smsList = new ArrayList();// the dynamic indexed property public ArrayList getSmsList() { return this.smsList; } public void setSmsList(ArrayList newSmsList) { this.smsList = newSmsList; } public void setAddSmsButton(String empty) { Sms sms = new Sms(); this.addSms(sms); } public void commitSmsDelete() { for (int index=0; indexsmsList.size(); index++) { Sms sms = (Sms)smsList.get(index); if (sms.getCheckDeleted() == true) { this.removeSms(sms); } } } public void addSms(Sms sms){ this.smsList.add(sms); } } nested:nest property=info nested:iterate property=smsList indexId=index nested:submit property=deleteSmsButton/ // on Sms class there is a boolean property deleteSmsButton /nested:iterate nested:submit property=addSmsButton/ /nested:nest Bye Franck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic HTML
There are quite a few ways to do this and you can find help on this list. I prefer the Nested Tags to do this. Affan Gonzalez wrote: How can generate input tags dynamicly ?? My application have fields that are dynamics and sometimes I have 1 fields and sometimes I have N fields. Can I control this in struts ?? Thanks Sergio. Aquest missatge electrònic pot contenir informació confidencial o privilegiada. Si vostè no és el destinatari del missatge, o l'ha rebut per error, si us plau notifiqui-ho al remitent i destrueixi el missatge amb tot el seu contingut. Està completament prohibida qualsevol còpia, ús o distribució no autoritzada del contingut d'aquest missatge electrònic. Este mensaje electrónico puede contener información confidencial o privilegiada. Si usted no es el destinatario de este mensaje o lo ha recibido por error, por favor notifíquelo al remitente y destruya el mensaje con todo su contenido. Queda expresamente prohibida cualquier copia, utilización o distribución no autorizada del contenido de este mensaje electrónico. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validator and Indexed Properties
As of March 14, 2003 it appears that Struts/Commons validation does not support indexed properties as such: I have a collection of objects A where each A has some properties, call them p1, p2, and p3. I want to validate field p3 for each object A in the collection. Is this currently possible with Struts1.1? I've search the archives and found others with similar questions. Various work arounds were presented, but I wanted to know if Struts provides standard support for such a situation. If so, I would appreciate some advice on how to construct my field .../ or a link to some documentation. Here is a message in the archives which points to relavent attempts to circumvent what was considered a bug. http://www.mail-archive.com/[EMAIL PROTECTED]/msg63332.html robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse Sysdeo Tomcat Plugin Problem
I would suggest looking at Netbeans for Tomcat based development. It has good integration with Netbeans. - Navneet David Graham said the following on 08/11/2003 12:40 AM: Make sure you haven't added any of your projects to Tomcat's classpath via the plugin. That will always cause problems. David --- Madrid, Jeffrey [EMAIL PROTECTED] wrote: Hello, I'm having a problem running Tomcat from Eclipse using the Sysdeo Tomcat plugin when I have a Struts webapp deployed. I've isolated the problem to some kind of conflict with the commons-digester.jar. When I remove it from the webapp's lib directory, the plugin works great but of course the Struts web app does not. I'm currently using Eclipse 2.1.1 and Struts 1.1 RC 2. I'm having the problem with both tomcatPlugin V21 and V22beta2 versions. I have been trying to solve the problem for two days now so I would really be grateful for any help you can provide. Thank you in advance. Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can I use action path instead of form name in form name=xxx in validation.xml?
Thanks Robert! Right now my forms are extending ActionForm. Can I just make them extend DynaValidatorActionForm without changing anything else? What do I need to change if I do need to? Kevin Robert Taylor [EMAIL PROTECTED]To: Struts Users Mailing List [EMAIL PROTECTED] .comcc: Subject: RE: Can I use action path instead of form name in form name=xxx in 11/13/2003 11:19 validation.xml? AM Please respond to Struts Users Mailing List Yes. You can do this, but you have to use or subclass DynaValidatorActionForm. It uses the path attribute of the action mapping to determine validation rules for the request. robert -Original Message- From: Kevin Wang [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 12:13 PM To: [EMAIL PROTECTED] Subject: Can I use action path instead of form name in form name=xxx in validation.xml? I can't use the form names because in our application all the forms are by the same session attribute. I read from somewhere that I can do something like, formset form name=/logonaction /form /formset But I haven't been successful...Please advice, Thanks! Kevin - 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]
[OT] generate HTML file from XML and XSLT
Hi, I have a XML file and a XSLT file, i need to create a HTML file in a temp directory then read this file to get a String so can email this String or print the String as HTML is it possible to do it?? and how I am using jdk1.4.1 Ashish = A$HI$H __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can I use action path instead of form name in form name=xxx in validation.xml?
You will also need to set the 'type' attribute value in the form-bean element of the struts-config file to org.apache.struts.validator.DynaValidatorActionForm (or a subclass thereof) robert -Original Message- From: Kevin Wang [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 2:14 PM To: Struts Users Mailing List Subject: RE: Can I use action path instead of form name in form name=xxx in validation.xml? Thanks Robert! Right now my forms are extending ActionForm. Can I just make them extend DynaValidatorActionForm without changing anything else? What do I need to change if I do need to? Kevin Robert Taylor [EMAIL PROTECTED]To: Struts Users Mailing List [EMAIL PROTECTED] .comcc: Subject: RE: Can I use action path instead of form name in form name=xxx in 11/13/2003 11:19 validation.xml? AM Please respond to Struts Users Mailing List Yes. You can do this, but you have to use or subclass DynaValidatorActionForm. It uses the path attribute of the action mapping to determine validation rules for the request. robert -Original Message- From: Kevin Wang [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 12:13 PM To: [EMAIL PROTECTED] Subject: Can I use action path instead of form name in form name=xxx in validation.xml? I can't use the form names because in our application all the forms are by the same session attribute. I read from somewhere that I can do something like, formset form name=/logonaction /form /formset But I haven't been successful...Please advice, Thanks! Kevin - 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]
conditional validation
Hello All, Can i do the conditional validation. For example if i have a drop down and the default value is Please select one. if user dosen't select anything. validation won't show that it is required field to select. can anyone please help. Also how do i validation for radio button to see that user select something. the entry in my validation.xml looks like this: fieldproperty=product depends=required,mask msg name=mask key=myForm.product.maskmsg/ arg0 key=myForm.product.displayname/ var var-namemask/var-name var-value^\w+$/var-value /var /field Thanks, Newt _ Concerned that messages may bounce because your Hotmail account is over limit? Get Hotmail Extra Storage! http://join.msn.com/?PAGE=features/es - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Request scope for FormBeans does not work??
Hi, Heeelp: I have been struggling for the last 2 days with an issue regarding the / request / session scope of the form beans defined in action mappings. (Request scope does not work for me, I have to use session scope...). Can you please help : I have the following steps within the code; - display login form (works OK) - on submit, execute LoginAction (works OK) - LoginAction returns Admin forward, and , as expected from the configuration (attached below), the prep_mtg_day action is executed. -PrepMtgDayAction action extracts the data from backend and stores the result (a collection of beans) in the form as following: public class PrepMtgDayAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { (MtgDayForm)form.setMeetings(mtgBeanList); // try to store in form, the form scoped at request or: request.setAttribute(meetings, mtgBeanList); // try to store a bean in the request sscope } After the action returns success and the page associated in the mapping of the action is executed, the JSP tries to use meetings object (Collection) from the form or request. Only if the form scope is session or I set the attribute on the session,(with session.setAttribute(meetings, mtgBeanList), can I use it in the forwarded jsp... So, when does a Request start or end? It seems like during the forward there is a new Request created?, so , whatever I stored within request gets lost? Any indications on when can I use Request scope? Thanks!!! Struts exception: == Nov 13, 2003 1:48:10 PM EST Error HTTP BEA-101017 [ServletContext(id=20 393935,name=CfgMgrWeb,context-path=/CfgMgrWeb)] Root cause of ServletException. javax.servlet.jsp.JspException: Cannot find bean meetings in any scope at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:938) at org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java: 277) =struts config action mappings= action path=/login type=com.genesys.cfgmgr.web.action.LoginAction scope=request name=loginForm validate=true input=/Login.jsp forward name=Admin path=/action/prep_mtg_day redirect=true/ This is what I use forward name=Unknown path=/Login.jsp redirect=true/ /action action path=/prep_mtg_day type=com.genesys.cfgmgr.web.action.PrepMtgDayAction scope=request name=mtgDayForm forward name=success path=/MeetingDay.jsp redirect=true/ forward name=error path=/error.jsp redirect=true/ /action - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Accesing Session Object from ActionForm
Hi , i have got a question about ActionForm For example if i have got a simple form class which is inhereted from ActionForm, here ist he code public class SimulationForm extends ValidatorForm { .. // some declerations public String getDate() { return date; } public String getSimulationDate() { return simDate; } public Collection getScenarios() { // in here i have to access HttpSession object // this Collection data is going to fill combobox Collection c = (Collection) session.getAttribute(data) ; // any solution for here ? } .. // some code } As i declared above, i need to access HttpSession object in ActionForm. Any idea ? Regards. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Request scope for FormBeans does not work??
Voinea, Marina wrote: (MtgDayForm)form.setMeetings(mtgBeanList); // try to store in form, the form scoped at request You fowarded to this Action and it has the current request, but objects in that request are now no longer around once you leave this Action.. so you need to put your MtgDayForm back into Request scope or else use Session scope. -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Request scope for FormBeans does not work??
Hi, i think you have to set the attribute redirect=false, than a simple forward is done. The difference between a redirect and a simple forward is that if you use redirect a new request is create when you call another resource (jsp or action). The default value of the attribute redirect is false, so you dont have to specify it. HTH, Phil - Original Message - From: Voinea, Marina [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 13, 2003 8:42 PM Subject: Request scope for FormBeans does not work?? Hi, Heeelp: I have been struggling for the last 2 days with an issue regarding the / request / session scope of the form beans defined in action mappings. (Request scope does not work for me, I have to use session scope...). Can you please help : I have the following steps within the code; - display login form (works OK) - on submit, execute LoginAction (works OK) - LoginAction returns Admin forward, and , as expected from the configuration (attached below), the prep_mtg_day action is executed. -PrepMtgDayAction action extracts the data from backend and stores the result (a collection of beans) in the form as following: public class PrepMtgDayAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { (MtgDayForm)form.setMeetings(mtgBeanList); // try to store in form, the form scoped at request or: request.setAttribute(meetings, mtgBeanList); // try to store a bean in the request sscope } After the action returns success and the page associated in the mapping of the action is executed, the JSP tries to use meetings object (Collection) from the form or request. Only if the form scope is session or I set the attribute on the session,(with session.setAttribute(meetings, mtgBeanList), can I use it in the forwarded jsp... So, when does a Request start or end? It seems like during the forward there is a new Request created?, so , whatever I stored within request gets lost? Any indications on when can I use Request scope? Thanks!!! Struts exception: == Nov 13, 2003 1:48:10 PM EST Error HTTP BEA-101017 [ServletContext(id=20 393935,name=CfgMgrWeb,context-path=/CfgMgrWeb)] Root cause of ServletException. javax.servlet.jsp.JspException: Cannot find bean meetings in any scope at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:938) at org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java: 277) =struts config action mappings= action path=/login type=com.genesys.cfgmgr.web.action.LoginAction scope=request name=loginForm validate=true input=/Login.jsp forward name=Admin path=/action/prep_mtg_day redirect=true/ This is what I use forward name=Unknown path=/Login.jsp redirect=true/ /action action path=/prep_mtg_day type=com.genesys.cfgmgr.web.action.PrepMtgDayAction scope=request name=mtgDayForm forward name=success path=/MeetingDay.jsp redirect=true/ forward name=error path=/error.jsp redirect=true/ /action - 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 application with frames: top, side menus and main screen
Hi ! Has anyone found sample STRUTS application and/or documentation on the net that uses frames ? I would like to build the application with top menu, side menu and main screen. Thanks ! Neso - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard
Accesing Session Object from ValidatorForm
Hi , (sorry for previous email) i have got a question about ValidatorForm For example if i have got a simple form class which is inhereted from ValidatorForm , here is the code public class SimulationForm extends ValidatorForm { .. // some declerations public String getDate() { return date; } public String getSimulationDate() { return simDate; } public Collection getScenarios() { // in here i have to access HttpSession object // this Collection data is going to fill combobox Collection c = (Collection) session.getAttribute(data) ; // any solution for here ? .. // some code } As i declared above, i need to access HttpSession object in ValidatorForm . Any idea ? Regards. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DynaValidationForm
Hi, Is there a way to make DynaValidationForm not to do the validation based on a certain attribute other than sub-classing it? That's not that difficlt to do, but I was wondering if there is a better way, here is my scenario. I have an account table and I have one form and one action for all the usecases associated with account (add/edit/update/view/list/delete). For edit scenario, I need to retrieve the row in one interaction and update in the other. I am relying on the form that gets created when edit is called and setting all the fields to that form. This worked fine until I introduced validation. With validation, during the first interaction, it tries to validate and returns the form back. I want it not to validate for the first request. thanks, Vishu MMS firstam.com made the following annotations on 11/13/2003 12:05:44 PM -- THIS E-MAIL MESSAGE AND ANY FILES TRANSMITTED HEREWITH, ARE INTENDED SOLELY FOR THE USE OF THE INDIVIDUAL(S) ADDRESSED AND MAY CONTAIN CONFIDENTIAL, PROPRIETARY OR PRIVILEGED INFORMATION. IF YOU ARE NOT THE ADDRESSEE INDICATED IN THIS MESSAGE (OR RESPONSIBLE FOR DELIVERY OF THIS MESSAGE TO SUCH PERSON) YOU MAY NOT REVIEW, USE, DISCLOSE OR DISTRIBUTE THIS MESSAGE OR ANY FILES TRANSMITTED HEREWITH. IF YOU RECEIVE THIS MESSAGE IN ERROR, PLEASE CONTACT THE SENDER BY REPLY E-MAIL AND DELETE THIS MESSAGE AND ALL COPIES OF IT FROM YOUR SYSTEM. == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: simple design question
Sweet Now are you telling me that the two html form can be on the same page? What about pre-loading the select boxes with information? On Nov 13, 2003, at 10:43 AM, Saul Q Yuan wrote: Ok, then, 1. Let's say you declare your form as MyForm, which is of type DynaValidatorActionForm in Struts-config.xml. 2. And you declare your actions as /myAction1 and /myAction2 respectively. 3. Then in validation.xml, declare your validation as: form name=/myAction1 field ... arg0 ... / /field /form form name=/myAction2 field ... arg0 ... / /field /form 4. Add necessary codes in your jsp files to support client side JS validation. a. html:form action=/myAction1.do onsubmit=return validateMyForm(this); b. html:javascript formName=/myAction1 method=validateMyForm dynamicJavascript=true staticJavascript=false / script language=Javascript1.1 src=staticJavascript.jsp/script same for the other jsp page. Hope this helps Saul -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 12:23 PM To: Struts Users Mailing List Subject: Re: simple design question This sounds like what I need! Can you explain a little more.. :) Thanks in advance, nathan On Nov 13, 2003, at 10:10 AM, Saul Q Yuan wrote: Then a simple answer, one solution would be, use a single form, two actions, and use action (path) based validation. Saul -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 12:02 PM To: [EMAIL PROTECTED] Subject: simple design question I have a simple design question.. I have to forms. first form is one simple select box that needs to have the values populated from a db. This form needs to have validation and the submit to the second form. The second form need to populate a select box based on the value from the first form. This form also need to be validated and then forward on to the display jsp. How many form beans and actions will I need? I would like to use dynavalidatorforms as well. Current setup is an action that places an arraylist into an attribute of the request then forward to the first form. I dont know how to get the first form to auto validate and forward to the second form. nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help- Not able to pass the index
I have the code fragment which passes the current index in logic:iterate tag to the javascript function openChildWindowNew. I am not able to do that as index value is never passed because indexed counter is never evaluated. The code is like: logic:iterate id=finduser name=userlist indexId=ind tr width=100% td align=left width=50% bean:write name=finduser property=username filter=true/ /td td align=left width=50% html:text name=finduser property=role size=30 maxlength=30 indexed=true onclick=javascript:openChildWindowNew( ind ) / /td /tr /logic:iterate any help is appreciated. Anubhav This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and from our network.
RE: struts application with frames: top, side menus and main screen
I'm using frames w/Struts, what specifically do you want to know? There's not anything special you have to do with frames and Struts as far as I know. -Original Message- From: neso m [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 3:02 PM To: [EMAIL PROTECTED] Subject: struts application with frames: top, side menus and main screen Hi ! Has anyone found sample STRUTS application and/or documentation on the net that uses frames ? I would like to build the application with top menu, side menu and main screen. Thanks ! Neso - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: struts application with frames: top, side menus and main screen
I am currently working on a site that is frame based for each of the pages that are to be displayed I reference the action mapping for each of the src tags. -Original Message- From: neso m [mailto:[EMAIL PROTECTED] Sent: Thu 11/13/2003 2:02 PM To: [EMAIL PROTECTED] Cc: Subject: struts application with frames: top, side menus and main screen Hi ! Has anyone found sample STRUTS application and/or documentation on the net that uses frames ? I would like to build the application with top menu, side menu and main screen. Thanks ! Neso - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts/Tiles/Performance
Hi all, We're migrating an application to using Struts Tiles and are noticing a significant decrease in performance; not just the first time a page is being accessed but every time. I see in the archives that others have had similiar problems and that the solution lay in the servlet engine, where reference was being made to Tomcat 4? We're using Weblogic 6.1 sp4 presenting data via the BlueMartini Framework. Are others using this combination (without BM) and willing to share ideas as to tuning parameters or caching the portlets one way or another? Thx in advance Colin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: struts application with frames: top, side menus and main screen
...I need to put dynamic support for different languages. Display every page in English/French, back and forth also top and side menu changes every time I click French or English. As I change through my top menu i would like my side menu to change, as well as my main page, for example when I click on administration administration menu pops up on the left hand side and main page populated with welcome to the admin section. Similar thing with publishing section, and any other on topmenu etc.I have little prototype with heavu use of JavaScript which I am not very happy with. Where tough to maintain. I beleive that there is a better way to do this utilizing some Struts tags instead of using bare JavaScript. I was wondering if there is anyone with anything to share that would get me going here. Thanks ! Neso David Liles [EMAIL PROTECTED] wrote: I am currently working on a site that is frame based for each of the pages that are to be displayed I reference the action mapping for each of the src tags. -Original Message- From: neso m [mailto:[EMAIL PROTECTED] Sent: Thu 11/13/2003 2:02 PM To: [EMAIL PROTECTED] Cc: Subject: struts application with frames: top, side menus and main screen Hi ! Has anyone found sample STRUTS application and/or documentation on the net that uses frames ? I would like to build the application with top menu, side menu and main screen. Thanks ! Neso - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard
RE: simple design question
It should work if the two html forms are on the same page, if that's what you want. Populating your selection box is another question, you probably need to prepare the data as collections in your action and send that to the request. There are tons of threads in the archive on this, so I'm not getting into the details. Saul -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 3:05 PM To: Struts Users Mailing List Subject: Re: simple design question Sweet Now are you telling me that the two html form can be on the same page? What about pre-loading the select boxes with information? On Nov 13, 2003, at 10:43 AM, Saul Q Yuan wrote: Ok, then, 1. Let's say you declare your form as MyForm, which is of type DynaValidatorActionForm in Struts-config.xml. 2. And you declare your actions as /myAction1 and /myAction2 respectively. 3. Then in validation.xml, declare your validation as: form name=/myAction1 field ... arg0 ... / /field /form form name=/myAction2 field ... arg0 ... / /field /form 4. Add necessary codes in your jsp files to support client side JS validation. a. html:form action=/myAction1.do onsubmit=return validateMyForm(this); b. html:javascript formName=/myAction1 method=validateMyForm dynamicJavascript=true staticJavascript=false / script language=Javascript1.1 src=staticJavascript.jsp/script same for the other jsp page. Hope this helps Saul -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 12:23 PM To: Struts Users Mailing List Subject: Re: simple design question This sounds like what I need! Can you explain a little more.. :) Thanks in advance, nathan On Nov 13, 2003, at 10:10 AM, Saul Q Yuan wrote: Then a simple answer, one solution would be, use a single form, two actions, and use action (path) based validation. Saul -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 12:02 PM To: [EMAIL PROTECTED] Subject: simple design question I have a simple design question.. I have to forms. first form is one simple select box that needs to have the values populated from a db. This form needs to have validation and the submit to the second form. The second form need to populate a select box based on the value from the first form. This form also need to be validated and then forward on to the display jsp. How many form beans and actions will I need? I would like to use dynavalidatorforms as well. Current setup is an action that places an arraylist into an attribute of the request then forward to the first form. I dont know how to get the first form to auto validate and forward to the second form. nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can not get error message to display on the same page
Hi, I am trying to write a logon page as discribed on the struts-example, but finding some problem with my logon.jsp when ActionLogon.java trys to return ActionErrors or ActionMessages back to the original page, the logon.jsp. I am using Struts1.1 + jboss-3.2.1_tomcat-4.1.24. I tried two ways to display the errors by using the htlm:errors/ tag and without the tag. Can someone tell me what is going on. Thank you in advance, Kam Lung Leung Below is the tested condictions for both situations: The first part which is without the html:errors/ on the logon page and I only had the code listed below in the logon.jsp. logic:messagesPresent There were errors font color='red' html:messages id=validatorMsgs message=true bean:write name=validatorMsgs/ /html:messages /font /logic:messagesPresent I tested the following conditions: 1) userName == empty string, and password == empty string (invalid format case) I got the popup window saying that User Name is required and Password is required. 2) userName == hohoho and password == empty string (invalid format case) I got the popup window saying that Password is required. 3) userName == hohoho, and password == ho (invalid format case) I got no popup window, but instead the error massage was on the same logon page saying There were errors. I am expecting a popup window with an error message saying that password can not be less then 6 characters. 4) userName == hohoho, and password == hohoho (valid format case, but wrong password) I got either popup window nor error message on the logon page. I am especting an error message as Invalid Password for this user on the logon page. The second part which is with the html:errors/ on the logon page and I had the code listed below in the logon.jsp. html:errors/ logic:messagesPresent There were errors font color='red' html:messages id=validatorMsgs message=true bean:write name=validatorMsgs/ /html:messages /font /logic:messagesPresent I tested the following conditions: 1) userName == empty string, and password == empty string (invalid format case) I got the popup windown saying that User Name is required and Password is required. 2) userName == hohoho and password == empty string (invalid format case) I got the popup windown saying that Password is required. 3) userName == hohoho, and password == ho (invalid format case) I got these messages on the logon page. Password can not be less than 6 characters. There were errors I am expecting to see the Password can not be less than 6 characters. on the popup windown at least. 4) userName == hohoho, and password == hohoho (valid format case, but wrong password) I got either popup windown nor error message on the logon page. I am especting an error message as Invalid Password for this user on the logon page. application.property adminLogonForm.userName=User Name adminLogonForm.userName.maskmsg=The First Character Of The User Name Must Be A Letter. adminLogonForm.password=Password adminLogonForm.password.maskmsg=The First Character Of The Password Must Be A Letter. adminLogonForm.error.password=Invalid Password for this user. Here is the validation.xml file global constant constant-namepasswordMask/constant-name constant-value^[a-zA-Z]{1}[a-zA-Z0-9_]*$/constant-value /constant /global formset form name=adminLogonForm . . field property=password depends=required,minlength,maxlength,mask msg name=mask key=adminLogonForm.password.maskmsg/ arg0 key=adminLogonForm.password/ arg1 name=minlength key=${var:minlength} resource=false/ arg1 name=maxlength key=${var:maxlength} resource=false/ var var-nameminlength/var-name var-value6/var-value /var var var-namemaxlength/var-name var-value12/var-value /var var var-namemask/var-name var-value${passwordMask}/var-value /var /field /form /formset struts-config.xml form-bean name=adminLogonForm type=com.wlwa.Infra.WebComponemt.Dispatcher.Forms.AdminLogonForm / /form-beans global-forwards forward name=logoff path=/adminLogoff.do/ forward name=logon path=/Infra/WebComponemt/Presentation/AdminLogon.jsp/ /global-forwards action path=/adminLogonSubmit type=com.wlwa.Infra.WebComponemt.Dispatcher.Actions.AdminLogonAction name=adminLogonForm scope=session validate=true input=logon forward name=success path=/Infra/WebComponemt/Presentation/index.jsp /
RE: Request scope for FormBeans does not work??
Yes! Thanks a lot,I read it and I forgot... However, now it can not retrieve the path to the style sheet, there is a tag to deal with that, I'm trying to find it -Original Message- From: Phil [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 3:01 PM To: Struts Users Mailing List Subject: Re: Request scope for FormBeans does not work?? Hi, i think you have to set the attribute redirect=false, than a simple forward is done. The difference between a redirect and a simple forward is that if you use redirect a new request is create when you call another resource (jsp or action). The default value of the attribute redirect is false, so you dont have to specify it. HTH, Phil - Original Message - From: Voinea, Marina [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 13, 2003 8:42 PM Subject: Request scope for FormBeans does not work?? Hi, Heeelp: I have been struggling for the last 2 days with an issue regarding the / request / session scope of the form beans defined in action mappings. (Request scope does not work for me, I have to use session scope...). Can you please help : I have the following steps within the code; - display login form (works OK) - on submit, execute LoginAction (works OK) - LoginAction returns Admin forward, and , as expected from the configuration (attached below), the prep_mtg_day action is executed. -PrepMtgDayAction action extracts the data from backend and stores the result (a collection of beans) in the form as following: public class PrepMtgDayAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { (MtgDayForm)form.setMeetings(mtgBeanList); // try to store in form, the form scoped at request or: request.setAttribute(meetings, mtgBeanList); // try to store a bean in the request sscope } After the action returns success and the page associated in the mapping of the action is executed, the JSP tries to use meetings object (Collection) from the form or request. Only if the form scope is session or I set the attribute on the session,(with session.setAttribute(meetings, mtgBeanList), can I use it in the forwarded jsp... So, when does a Request start or end? It seems like during the forward there is a new Request created?, so , whatever I stored within request gets lost? Any indications on when can I use Request scope? Thanks!!! Struts exception: == Nov 13, 2003 1:48:10 PM EST Error HTTP BEA-101017 [ServletContext(id=20 393935,name=CfgMgrWeb,context-path=/CfgMgrWeb)] Root cause of ServletException. javax.servlet.jsp.JspException: Cannot find bean meetings in any scope at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:938) at org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java: 277) =struts config action mappings= action path=/login type=com.genesys.cfgmgr.web.action.LoginAction scope=request name=loginForm validate=true input=/Login.jsp forward name=Admin path=/action/prep_mtg_day redirect=true/ This is what I use forward name=Unknown path=/Login.jsp redirect=true/ /action action path=/prep_mtg_day type=com.genesys.cfgmgr.web.action.PrepMtgDayAction scope=request name=mtgDayForm forward name=success path=/MeetingDay.jsp redirect=true/ forward name=error path=/error.jsp redirect=true/ /action - 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 application with frames: top, side menus and main screen
There are 100 ways to peel an onion one way to peel it is to attach a parameter to each of your links and in your action mapping determin which pages should be displayed based on the detected parameter As for displaying different pages in your different frame windows... you control that with your targets. -Original Message- From: neso m [mailto:[EMAIL PROTECTED] Sent: Thu 11/13/2003 2:27 PM To: Struts Users Mailing List Cc: Subject: RE: struts application with frames: top, side menus and main screen ...I need to put dynamic support for different languages. Display every page in English/French, back and forth also top and side menu changes every time I click French or English. As I change through my top menu i would like my side menu to change, as well as my main page, for example when I click on administration administration menu pops up on the left hand side and main page populated with welcome to the admin section. Similar thing with publishing section, and any other on topmenu etc.I have little prototype with heavu use of JavaScript which I am not very happy with. Where tough to maintain. I beleive that there is a better way to do this utilizing some Struts tags instead of using bare JavaScript. I was wondering if there is anyone with anything to share that would get me going here. Thanks ! Neso David Liles [EMAIL PROTECTED] wrote: I am currently working on a site that is frame based for each of the pages that are to be displayed I reference the action mapping for each of the src tags. -Original Message- From: neso m [mailto:[EMAIL PROTECTED] Sent: Thu 11/13/2003 2:02 PM To: [EMAIL PROTECTED] Cc: Subject: struts application with frames: top, side menus and main screen Hi ! Has anyone found sample STRUTS application and/or documentation on the net that uses frames ? I would like to build the application with top menu, side menu and main screen. Thanks ! Neso - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Request scope for FormBeans does not work??
Yeap, the html:base tag is used to solve page forward issues... Thanks again. (So we need: redirect= false and html:base together) ... -Original Message- From: Voinea, Marina Sent: Thursday, November 13, 2003 3:34 PM To: 'Struts Users Mailing List' Subject: RE: Request scope for FormBeans does not work?? Yes! Thanks a lot,I read it and I forgot... However, now it can not retrieve the path to the style sheet within the forwarded to page, there is a tag to deal with that, I'm trying to find it -Original Message- From: Phil [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 3:01 PM To: Struts Users Mailing List Subject: Re: Request scope for FormBeans does not work?? Hi, i think you have to set the attribute redirect=false, than a simple forward is done. The difference between a redirect and a simple forward is that if you use redirect a new request is create when you call another resource (jsp or action). The default value of the attribute redirect is false, so you dont have to specify it. HTH, Phil - Original Message - From: Voinea, Marina [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 13, 2003 8:42 PM Subject: Request scope for FormBeans does not work?? Hi, Heeelp: I have been struggling for the last 2 days with an issue regarding the / request / session scope of the form beans defined in action mappings. (Request scope does not work for me, I have to use session scope...). Can you please help : I have the following steps within the code; - display login form (works OK) - on submit, execute LoginAction (works OK) - LoginAction returns Admin forward, and , as expected from the configuration (attached below), the prep_mtg_day action is executed. -PrepMtgDayAction action extracts the data from backend and stores the result (a collection of beans) in the form as following: public class PrepMtgDayAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { (MtgDayForm)form.setMeetings(mtgBeanList); // try to store in form, the form scoped at request or: request.setAttribute(meetings, mtgBeanList); // try to store a bean in the request sscope } After the action returns success and the page associated in the mapping of the action is executed, the JSP tries to use meetings object (Collection) from the form or request. Only if the form scope is session or I set the attribute on the session,(with session.setAttribute(meetings, mtgBeanList), can I use it in the forwarded jsp... So, when does a Request start or end? It seems like during the forward there is a new Request created?, so , whatever I stored within request gets lost? Any indications on when can I use Request scope? Thanks!!! Struts exception: == Nov 13, 2003 1:48:10 PM EST Error HTTP BEA-101017 [ServletContext(id=20 393935,name=CfgMgrWeb,context-path=/CfgMgrWeb)] Root cause of ServletException. javax.servlet.jsp.JspException: Cannot find bean meetings in any scope at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:938) at org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java: 277) =struts config action mappings= action path=/login type=com.genesys.cfgmgr.web.action.LoginAction scope=request name=loginForm validate=true input=/Login.jsp forward name=Admin path=/action/prep_mtg_day redirect=true/ This is what I use forward name=Unknown path=/Login.jsp redirect=true/ /action action path=/prep_mtg_day type=com.genesys.cfgmgr.web.action.PrepMtgDayAction scope=request name=mtgDayForm forward name=success path=/MeetingDay.jsp redirect=true/ forward name=error path=/error.jsp redirect=true/ /action - 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 application with frames: top, side menus and main screen
Thanks for your answers. Do you have any documents, how to, etc to point me too? Neso David Liles [EMAIL PROTECTED] wrote: There are 100 ways to peel an onion one way to peel it is to attach a parameter to each of your links and in your action mapping determin which pages should be displayed based on the detected parameter As for displaying different pages in your different frame windows... you control that with your targets. -Original Message- From: neso m [mailto:[EMAIL PROTECTED] Sent: Thu 11/13/2003 2:27 PM To: Struts Users Mailing List Cc: Subject: RE: struts application with frames: top, side menus and main screen ...I need to put dynamic support for different languages. Display every page in English/French, back and forth also top and side menu changes every time I click French or English. As I change through my top menu i would like my side menu to change, as well as my main page, for example when I click on administration administration menu pops up on the left hand side and main page populated with welcome to the admin section. Similar thing with publishing section, and any other on topmenu etc.I have little prototype with heavu use of JavaScript which I am not very happy with. Where tough to maintain. I beleive that there is a better way to do this utilizing some Struts tags instead of using bare JavaScript. I was wondering if there is anyone with anything to share that would get me going here. Thanks ! Neso David Liles wrote: I am currently working on a site that is frame based for each of the pages that are to be displayed I reference the action mapping for each of the src tags. -Original Message- From: neso m [mailto:[EMAIL PROTECTED] Sent: Thu 11/13/2003 2:02 PM To: [EMAIL PROTECTED] Cc: Subject: struts application with frames: top, side menus and main screen Hi ! Has anyone found sample STRUTS application and/or documentation on the net that uses frames ? I would like to build the application with top menu, side menu and main screen. Thanks ! Neso - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard
RE: struts application with frames: top, side menus and main screen
Here is an example frame layout that maps to actions for each of the pages to be displayed... frameset rows=80,* cols=* frameborder=no border=0 framespacing=0 frame src=/header.do name=headerFrame scrolling=no noresize frameset cols=120,* frameborder=no border=0 framespacing=0 frame src=/nav.do name=navFrame scrolling=no noresize frame src=/main.do name=mainFrame /frameset /frameset As for href links... I've used the following: html:link page=javascript:nav('parameter');example 1/html:link JavaScript that executes the href notice that the line (paraent.mainFrame.location) identifies which frame window to display the returned page // JavaScript Document function nav(id) { var URL = /Display.do?item= + id + site=public parent.mainFrame.location = URL; } Hope this helps -Original Message- From: neso m [mailto:[EMAIL PROTECTED] Sent: Thu 11/13/2003 2:49 PM To: Struts Users Mailing List Cc: Subject: RE: struts application with frames: top, side menus and main screen Thanks for your answers. Do you have any documents, how to, etc to point me too? Neso David Liles [EMAIL PROTECTED] wrote: There are 100 ways to peel an onion one way to peel it is to attach a parameter to each of your links and in your action mapping determin which pages should be displayed based on the detected parameter As for displaying different pages in your different frame windows... you control that with your targets. -Original Message- From: neso m [mailto:[EMAIL PROTECTED] Sent: Thu 11/13/2003 2:27 PM To: Struts Users Mailing List Cc: Subject: RE: struts application with frames: top, side menus and main screen ...I need to put dynamic support for different languages. Display every page in English/French, back and forth also top and side menu changes every time I click French or English. As I change through my top menu i would like my side menu to change, as well as my main page, for example when I click on administration administration menu pops up on the left hand side and main page populated with welcome to the admin section. Similar thing with publishing section, and any other on topmenu etc.I have little prototype with heavu use of JavaScript which I am not very happy with. Where tough to maintain. I beleive that there is a better way to do this utilizing some Struts tags instead of using bare JavaScript. I was wondering if there is anyone with anything to share that would get me going here. Thanks ! Neso David Liles wrote: I am currently working on a site that is frame based for each of the pages that are to be displayed I reference the action mapping for each of the src tags. -Original Message- From: neso m [mailto:[EMAIL PROTECTED] Sent: Thu 11/13/2003 2:02 PM To: [EMAIL PROTECTED] Cc: Subject: struts application with frames: top, side menus and main screen Hi ! Has anyone found sample STRUTS application and/or documentation on the net that uses frames ? I would like to build the application with top menu, side menu and main screen. Thanks ! Neso - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem using requiredif
Can anyone tell me what's going on in here.. i want the product field has to have some value other then Please select one. and it should be required field. Thanks, Newt field property=product depends=requiredif arg0 key=firstForm.product.displayname/ var var-namefield[0]/var-name var-valueproduct/var-value /var var var-namefieldTest[0]/var-name var-valueEQUAL/var-value /var var var-namefieldValue[0]/var-name var-valuePlease select one/var-value /var /field _ Send a QuickGreet with MSN Messenger http://www.msnmessenger-download.com/tracking/cdp_games - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts - sometime the form is being submitted twice
Using the following code fragment: function f_ValidateForm(later) { var newline = unescape(%0A); var leading_space = ; var ni = newline + leading_space; } // end with if (later == 1) { document.formq1.BUTTONPRESSED.value = FinishLater; document.formq1.submit(); } else if (later == 0) { document.formq1.BUTTONPRESSED.value = NextPage; } return true; } FORM ... action=/SampleApp/questionnaire.do INPUT type=button name=FinishLater value=Save and finish later onClick=return f_ValidateForm(1) INPUT type=submit name=NextPage value=Continue onClick=return f_ValidateForm(0) Prior to moving the questionnairre Servlet\JSP to implementing a Struts Action class, the form was being submitted to the servlet without any problem. Now all of a sudden (on rare instance), the form is sometimes being submitted twice - returning with a error due to a duplicate table entry. Can anyone determine the cause of this (besides the FinishLater submitting the form and then returning true to the button)? Is this something within Struts? Why has this cropped up only now as this code has been in production for quite a while with the 'submit/return true'??? Is it WebSphere 5.0? Struts? Please help!!! _ MSN Messenger with backgrounds, emoticons and more. http://www.msnmessenger-download.com/tracking/cdp_customize - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to disable (or work around) jsessionid in html:img sources
Btw, Kris - I just had to make use of this code that you provided, and it works perfectly. Sweet! Kris Schneider wrote: If you can accomplish what you want via Apache rewrite rules, that seems like a simpler solution. If that doesn't work out, here's a JSP/JSTL equivalent of how html:img comes up with the module path: %@ page import=org.apache.struts.Globals % %@ taglib prefix=curi=http://java.sun.com/jstl/core; % %@ taglib prefix=c_rt uri=http://java.sun.com/jstl/core_rt; % c_rt:set var=moduleKey value=%= Globals.MODULE_KEY %/ c:set var=moduleConfig value=${requestScope[moduleKey]}/ c:set var=prefix value=/ c:if test=${not empty moduleConfig} c:set var=prefix value=${moduleConfig.prefix}/ /c:if c:set var=modulePath value=${pageContext.request.contextPath}${prefix}/ img src=c:out value=${modulePath}/path/to/image/ Quoting dutrieux [EMAIL PROTECTED]: Maybe you can try, But I think the impacts is all pages send to apache then all virtualhosts defiend by the mod_jk. Ruth, Brice a écrit : Is this something I can do at a global level, so that it impacts all virtualhosts defined by the mod_jk auto configuration file generated by Tomcat's connector? dutrieux wrote: Hello For Apache v3.x you need to put in httpd.conf file this entry : RewriteRule ^(.*);jsessionid=.*$ $1 [L] Best regards Olivier Dutrieux * * Ruth, Brice a écrit : Ruth, Brice wrote: Hi. I'm using html:img in certain tiles that are used from very different places in my application with the page attribute to take advantage of module-relative naming for the image sources. However, when cookies aren't enabled, or on the first visit to the web application (with no session cookie having been previously detected), the ';jsessionid=X' gets added to the end of the image. Now, I'm not driving any dynamic images, nor do I intend to, so this sessionid is worthless to me. Furthermore - since I'm using Apache+Tomcat+mod_jk to serve this application, Apache seems to choke on serving up this image. I expect its because the sessionid is delimited by ';' instead of '?' as I'm used to, but maybe not. Either way - does anyone know of a way to get around this? If possible, I'd prefer not having to do anything special in the Apache conf, mainly because I'm using the auto-generated mod_jk conf file for this configuration. Thanks! Any takers on this? This is kinda hosin' up my Apache/Tomcat setup ... Tomcat standalone serves up the images fine with the jsessionid junk, but Apache doesn't! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- *Olivier Dutrieux* www.pasteur.fr Institut Pasteur Informatique de gestion Micro-Informatique 25-28 rue du Docteur Roux 75724 PARIS CEDEX 15 Tel: +33 (0) 1 40 61 31 62 Fax: +33 (0) 1 45 68 89 89 -- Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts - sometime the form is being submitted twice
Read up on Tokens in the Action class. It explains how to eliminate this ( that would have also happened even in a regular non struts servlet/jsp). hth, .V Judy Spengeman wrote: Using the following code fragment: function f_ValidateForm(later) { var newline = unescape(%0A); var leading_space = ; var ni = newline + leading_space; } // end with if (later == 1) { document.formq1.BUTTONPRESSED.value = FinishLater; document.formq1.submit(); } else if (later == 0) { document.formq1.BUTTONPRESSED.value = NextPage; } return true; } FORM ... action=/SampleApp/questionnaire.do INPUT type=button name=FinishLater value=Save and finish later onClick=return f_ValidateForm(1) INPUT type=submit name=NextPage value=Continue onClick=return f_ValidateForm(0) Prior to moving the questionnairre Servlet\JSP to implementing a Struts Action class, the form was being submitted to the servlet without any problem. Now all of a sudden (on rare instance), the form is sometimes being submitted twice - returning with a error due to a duplicate table entry. Can anyone determine the cause of this (besides the FinishLater submitting the form and then returning true to the button)? Is this something within Struts? Why has this cropped up only now as this code has been in production for quite a while with the 'submit/return true'??? Is it WebSphere 5.0? Struts? Please help!!! _ MSN Messenger with backgrounds, emoticons and more. http://www.msnmessenger-download.com/tracking/cdp_customize - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I put a field's value in a Validator message?
I would like to include a field's value in my Validator custom error message. In my validation.xml file, I have a msg tag defined with a key=someProperty.errorMessage. In my application.properties file, I have defined my someProperty.errorMessage property as follows: someProperty.errorMessage=You typed '{0}', are you stupid or what? How can I access the field's value so I can set it in the arg0 tag for the field? Thanks, Richard
Struts exception - pl. help
Hi, Our application is using Struts1.1 and running on Tomcat4.1. We got the following exception stack trace. Any clues will be appreciated to fix this problem. Thanks, Durgaprasad Exception Stack Trace: -- Nov 13, 2003 12:21:37 PM org.apache.struts.action.RequestProcessor processException WARNING: Unhandled Exception thrown: class java.lang.NullPointerException StandardWrapperValve[action]: Servlet.service() for servlet action threw exception javax.servlet.ServletException javax.servlet.ServletException at org.apache.struts.action.RequestProcessor.processException(RequestProces sor.java:541) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr ocessor.java:482) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java: 274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:502) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:263) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator Base.java:490) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts exception - pl. help
As I already has this kind of message, I think Struts didn't succed in executing your action so a) check the name and package of your class (comparing to the one declared in your struts-config file) b) check that your class extends o.a.struts.action.Action c) check the signature of the 'execute' method HTH, Thomas At 01:16 14/11/2003, you wrote: Hi, Our application is using Struts1.1 and running on Tomcat4.1. We got the following exception stack trace. Any clues will be appreciated to fix this problem. Thanks, Durgaprasad Exception Stack Trace: -- Nov 13, 2003 12:21:37 PM org.apache.struts.action.RequestProcessor processException WARNING: Unhandled Exception thrown: class java.lang.NullPointerException StandardWrapperValve[action]: Servlet.service() for servlet action threw exception javax.servlet.ServletException javax.servlet.ServletException at org.apache.struts.action.RequestProcessor.processException(RequestProces sor.java:541) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr ocessor.java:482) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java: 274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:502) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:263) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator Base.java:490) - 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] generate HTML file from XML and XSLT
to get an Html output you can use JAXP's javax.xml.transform.* Package. to mail the same out put you have to generate a String containing all the html output and use the ByteArrayDataSource.java class which u get from java mail examples from sun. i did this in one of my project.let me know if u have any trouble regards srinivas Ashish Kulkarni [EMAIL PROTECTED] wrote: Hi, I have a XML file and a XSLT file, i need to create a HTML file in a temp directory then read this file to get a String so can email this String or print the String as HTML is it possible to do it?? and how I am using jdk1.4.1 Ashish = A$HI$H __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard
RE: DynaValidationForm
You can make two action mappings say For Retrieveing details action path=/RetrieveAccDetails type=com.AccountAction scope=request name=AccountForm parameter=method validate=false forward name=success path=/message.jsp / /action For Editing action path=/EditAccDetails type=com.AccountAction scope=request name=AccountForm parameter=method validate=true forward name=success path=/message.jsp / /action Notice that the action is same , only the value of validate attribute is changed Nimish -Original Message- From: Ghanakota, Vishu [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2003 1:36 AM To: 'Struts Users Mailing List' Subject: DynaValidationForm Hi, Is there a way to make DynaValidationForm not to do the validation based on a certain attribute other than sub-classing it? That's not that difficlt to do, but I was wondering if there is a better way, here is my scenario. I have an account table and I have one form and one action for all the usecases associated with account (add/edit/update/view/list/delete). For edit scenario, I need to retrieve the row in one interaction and update in the other. I am relying on the form that gets created when edit is called and setting all the fields to that form. This worked fine until I introduced validation. With validation, during the first interaction, it tries to validate and returns the form back. I want it not to validate for the first request. thanks, Vishu MMS firstam.com made the following annotations on 11/13/2003 12:05:44 PM -- THIS E-MAIL MESSAGE AND ANY FILES TRANSMITTED HEREWITH, ARE INTENDED SOLELY FOR THE USE OF THE INDIVIDUAL(S) ADDRESSED AND MAY CONTAIN CONFIDENTIAL, PROPRIETARY OR PRIVILEGED INFORMATION. IF YOU ARE NOT THE ADDRESSEE INDICATED IN THIS MESSAGE (OR RESPONSIBLE FOR DELIVERY OF THIS MESSAGE TO SUCH PERSON) YOU MAY NOT REVIEW, USE, DISCLOSE OR DISTRIBUTE THIS MESSAGE OR ANY FILES TRANSMITTED HEREWITH. IF YOU RECEIVE THIS MESSAGE IN ERROR, PLEASE CONTACT THE SENDER BY REPLY E-MAIL AND DELETE THIS MESSAGE AND ALL COPIES OF IT FROM YOUR SYSTEM. == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multibox + iterate + design question
Dear all I have a design question: there are three columns in a database table: category_id, category_description, is_main_category I want to iterate all the records in this table in a jsp page using one check box for each record. category_id is the checkbox's value, category_description is the label. If the is_main_category is true, then I want to display the label in bold font. What's the good approach to this scenario? Thanks in advance. -bruce
No input attribute for mapping path
I am running struts in Webpshere 5.0 and I got this error: [11/14/03 0:57:40:266 EST] 391b9f1f RequestProces I org.apache.struts.action.RequestProcessor Processing a 'POST' for path '/login' [11/14/03 0:57:40:312 EST] 391b9f1f WebGroup E SRVE0026E: [Servlet Error]-[action]: com.ibm.ws.webcontainer.webapp.WebAppErrorReport: No input attribute for mapping path /login at com.ibm.ws.webcontainer.webapp.WebAppDispatcherResponse.sendError(WebAppDispatcherResponse.java:150) at org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:915) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:247) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174) at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116) at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:258) at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42) at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:872) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:491) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173) at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79) at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199) at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71) at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182) at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331) at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56) at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592) - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard
Once you forward to another Action can you return to back to the forwarding action...
I am fairly new to struts, I have implemented a lookup up action the searches for a recipe. recipeLookup.do?LOOKUP_OBJECT_KEY=RECIPE_LOOKUPLOOKUP_NEXT_URL=recipeView.doexec= This line above is what I use to call the recipeLookup which once I have clicked a recipe it forwards to the NEXT_URL. This implementation was not developed by myself I extend the classes that have this functionality. I have changed the line above to be able to set the values depending where they want to forward next. Enough of a overview. I have an action that is called once I click the production button. If I call this recipeLookup within the production and set the return URL from the recipeLookup back to the production. The recipeLookup setAttribute of with the recipe Object selected. Then with in the production Action retrieve this attribute. I am not sure if I am taking the right path or if this will work. I would like to thank anyone who helps in advance... Thanks Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]