he could at least had written it in the subject... ;-)
-----Oprindelig meddelelse-----
Fra: Jeff Trent [mailto:[EMAIL PROTECTED]]
Sendt: 16 July 2001 20:51
Til: [EMAIL PROTECTED]
Emne: Re: quick question : form

Test message ... please ignore.
----- Original Message -----
From: Jeff Trent
Sent: Monday, July 16, 2001 2:46 PM
Subject: Re: quick question : form

This is a test message, please ignore.
----- Original Message -----
Sent: Monday, July 16, 2001 2:34 PM
Subject: Re: quicK question : form

Thanks much Melissa. But, i want to know why it does like this, when i call the reset manually.
 
rama.
----- Original Message -----
Sent: Monday, July 16, 2001 11:19 AM
Subject: RE: quicK question : form

Hi Rama.  One quick & dirty way to solve your problem is to add "success" as a string to the request object in the perform method of your action class, and add a "<forward-name="success" path=/originalJsp"> line in your struts-config file (which will return you to the page you posted the initial request).  Add some jsp code to check if the request attribute is null, which it will be when you first load the page. After the request is posted and your action class adds the string to the request (if all goes well), it should finish up by returning you to your original jsp where you will now see your "success" status message (e.g. <%= request.getAttribute("status")%>
 
I hope this helps
 
Melissa
Web Engineer
-----Original Message-----
From: Rama KrishnA [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 2:07 PM
To: [EMAIL PROTECTED]
Subject: quick questioN : form

hi all,
 
i have a form and when i submit it i perform some action and i forward it to the same form, but with a message "success". now
 
- i want to reset all the fields (set to default value)
- the url after submission is still xxx.yy?action="save", where as i want the action to be"create"
 
 
i tried calling reset method before forwarding, it clears all the fields but doesn't show message "success" and the url is still ?action="save"
 
 
can anyone help me??
 
thanks,
rama.
 
 

Reply via email to