Hi Siong, 

You should use action mapping and type the action url instead of the jsp
url. Something like this : https://www.theserver.com/ActionName.do. Then in
your struts-config.xml you can specify the form associated with the action
and have validate = true. Something like this: 

<action path="/ActionName.do"
               type="com.class.ActionName"
               className="com.class.ActionName "  
               name="ActionFormName"
               validate="true"
               scope="yourscope"
               input="/jsp/pageName.jsp">
    </action>


Regards, 

        Dimitar


-----Original Message-----
From: Siong Chan [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 19, 2002 2:59 PM
To: [EMAIL PROTECTED]
Subject: Help on Struts's handling of initial pg request.

Hi all..

I was wondering if anyone of you might know the answer to this question:

Does the ActionForm's (Form Bean) validate method get invoked if it is an 
initial request for the page? For example, I'm currently in www.yahoo.com. 
However, I would like to hit a site in secured server to perform some 
transactions. I type in https://www.testserver.com/dl.jsp. Upon pressing 
the return button, the testserver will receive a request for the dl.jsp 
page. Is there anyway to invoke the validate method in the form bean 
associated to the dl.jsp?

If not, I was wondering if there are any suggestions on how can I validate 
username and id that was previously stored in a cookie during this initial 
page request.   In other words, how can I make sure that the user 
requesting for the page has the privilege to view it?

Thanks in advance for any help rendered.

Cheers!
Siong



Siong H. Chan
Systems Engineer, eBusiness Division
MacDonald Dettwiler
Add: 13800 Commerce Parkway, Richmond, BC, Canada V6V 2J3
Email: [EMAIL PROTECTED]
Voice: (604)231-2150
Fax: (604)278-2533
URL: http://www.mda.ca/


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to