You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mikkel Bruun <mi...@valtech.dk> on 2001/07/17 08:46:43 UTC

TEST Message WAS: re: quick question : form

he could at least had written it in the subject... ;-)

-----Oprindelig meddelelse-----
Fra: Jeff Trent [mailto:jtrent@structsoft.com]
Sendt: 16 July 2001 20:51
Til: struts-user@jakarta.apache.org
Emne: Re: quick question : form


Test message ... please ignore.

----- Original Message ----- 
From: Jeff  <ma...@structsoft.com> Trent 
To: struts-user@jakarta.apache.org <ma...@jakarta.apache.org>  
Sent: Monday, July 16, 2001 2:46 PM
Subject: Re: quick question : form

This is a test message, please ignore.

----- Original Message ----- 
From: Rama  <ma...@hotmail.com> KrishnA 
To: struts-user@jakarta.apache.org <ma...@jakarta.apache.org>
; edeN@jamethial.ath.cx <ma...@jamethial.ath.cx>  
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 ----- 
From: MelissA Rabin <ma...@jamethial.ath.cx>  
To: struts-user@jakarta.apache.org <ma...@jakarta.apache.org>  
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:krishkolli@hotmail.com]
Sent: Monday, July 16, 2001 2:07 PM
To: struts-user@jakarta.apache.org
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.