RE: Error Handling in Struts

2004-09-29 Thread Gupta, Sahil
Turn the validation off on the second dropdown. -Original Message- From: Kranti Parisa [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 29, 2004 9:39 AM To: Struts Users Mailing List Subject: Re: Error Handling in Struts How u r getting the error message.. urself has done something

RE: XML Parse Error in Validation.xml

2004-09-29 Thread Gupta, Sahil
but I'm not using the validation.xml Remove the loading of the validation xml from the struts-config.xml or the web.xml whereever you set it to load from. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 29, 2004 9:51 AM To: Struts Users

RE: Multiple button with same value using same Action class

2004-09-15 Thread Gupta, Sahil
The way i have done it is to pass a parameter to the same action. The parameter value changes based on what button was clicked before the form is submitted. It is impossible to have 2 methods with the same signature to be invoked. -Original Message- From: struts lover [mailto:[EMAIL

RE: Action Mapping From a JSP to Another JSP

2004-09-07 Thread Gupta, Sahil
just add a mapping.findForward(secondpage); to the action corresponding to the register button form submission. the action mapping would be action path=/register type=FirstRegisterAction input=/firstpage.jsp name=registerform scope=request validate=false forward name=secondpage

Returning xml stream from struts

2004-08-19 Thread Gupta, Sahil
Hi, I have an application written in struts and i want to return xml in the response to the request. The request is being made from a client which makes http connection to my servlet and posts the request to it. I was wondering whats the best way to send the response back. Option: Setting the

RE: HttpSessionListener vs. HttpSessionBindingListener

2004-07-30 Thread Gupta, Sahil
Yup. You should be using your session object as implementing the sessionbindinglistener...and from the session binding event, you can find out the session information and for an unbound event, implement your business logic. sahil -Original Message- From: Geeta Ramani [mailto:[EMAIL

RE: redirect to login page with error message on the jsp page

2004-07-30 Thread Gupta, Sahil
because i have tried this already. Asim Gupta, Sahil [EMAIL PROTECTED] wrote: If the session object is invalidated(timed out), add the action errors in the request and call the saverequest(errors, req) in the action servlet and do a mapping.findForward to the login page. The login page should display

tomcat 5 logging problem

2004-07-21 Thread Gupta, Sahil
I cant seem to get logging working on my apache+tomcat5 set up. I have the log4j.properties file in the tomcat_install/conf directory and the environment variable CATALINA_OPTS set to -Dlog4j.configuration=file:/c:/webmd/Tomcat4.1/conf/log4j.properties EXPORT CATALINA_OPTS I am attaching the

Multiple Values In Form Hidden Parameter

2004-07-20 Thread Gupta, Sahil
Hi, I'd like to pass multiple values in my form hidden parameter. Is there any way i can do this? html:hidden property=svalues value=abc,def/ Bean: private String []svalues; private String []getSvalues(){ return svalues; } private void setSvalues(String []vals){ svalues = vals; } TIA S

RE: form focus

2004-07-20 Thread Gupta, Sahil
You could use the focus attribute of the form tag in the html api html:form action=/xyz focus=abc where abc is your property. sahil -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 11:47 AM To: Struts Users Mailing List Subject: Re: form

RE: Multiple Values In Form Hidden Parameter

2004-07-20 Thread Gupta, Sahil
] = val; } private String getSvalues(int index) { return svalues[index]; } HTH, --Rob On Tue, 20 Jul 2004 11:40:48 -0400, Gupta, Sahil [EMAIL PROTECTED] wrote: Hi, I'd like to pass multiple values in my form hidden parameter. Is there any way i can do this? html:hidden property