From: "Ivan Jouikov" <[EMAIL PROTECTED]>
> What is that you talking about not allowing direct access to JSP?  Can
> you be more clear please?

Just that every request must go through a Struts Action, there are no URLs
that end in ".jsp".  This gives you the chance to do whatever setup you need
to do (such as check that cookie and possibly change the value in the form
bean) before you forward to the view.

Many of us put all of our JSPs under WEB-INF where the container is
forbidden to serve them directly.  Others put a security constraint in
web.xml to keep users away from the JSPs.

Briefly, you would
    - use reset to set the checkbox to false
    - let the framework populate the form from the request
    - in the Action, look at the request, the form and the cookie to decide
whether to check the box
    - forward to the JSP where the framework will correctly render the
checkbox

-- 
Wendy Smoak


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

Reply via email to