Hi,
    I have a doubt related to this and the html-img tag.

<a href="javascript:window.location.reload(true)">
  <img name="img1" src="images/img1.gif" width="38" height="34" border="0"
alt="">
</a>

I am refreshing some data in the session scope when the user hits the
"reload" button.
I am planning to use html-img tag if it really helps. The "href" shown above
already reloads the current page.
I am using a simple "NoDataForm" as advised.

 How can I both reload the current page throught javascript and refresh the
session variable throught an action?
Will html-img help here?

bye,
Mohan

-----Original Message-----
From: David Graham [mailto:dgraham1980@;hotmail.com]
Sent: Thursday, October 31, 2002 7:29 AM
To: [EMAIL PROTECTED]
Subject: RE: href to perform an action


you have to add an input attribute to your action definition that points to 
the jsp that has your form on it.  Struts needs to know where to forward to 
when there are errors.  Validation is done in the ActionForm.validate() 
method.  See the users guide for details.

David






>From: Cindy Horn   at SF   x4874 <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Subject: RE: href to perform an action
>Date: Wed, 30 Oct 2002 15:25:23 -0800
>
>This is the error I have in the log:
>
><[WebAppServletContext(852414,vcsc,/vcsc)] action:   No input form, but
>validation returned errors>
>
>Where is this validation taking place?
>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to