Re: Struts question <html:text>
- From: "Wendy Smoak" <wsmoak@xxxxxxxxx>
- Date: Thu, 30 Jun 2005 14:45:49 -0700
"Scott Phelps" <root@xxxxxxx> wrote
>
> Actually the first time the page is loaded it is not submited. Just the
jsp
> page is called. right?
>
Obviously, that's possible, but it is not The Struts Way in which every
request goes through an Action. Many (most?) of us go to great lengths to
prevent a user from ever navigating directly to a JSP.
(Either with a security constraint in web.xml, or else just putting the JSP
files under WEB-INF where the container is forbidden to serve them
directly.)
You are correct in that the first time the page loads, the form will not
have been submitted. So you might be able to look for POST in
request.getMethod() to decide whether to use the cookie or not.
--
Wendy Smoak
.
- Follow-Ups:
- Re: Struts question <html:text>
- From: Scott Phelps
- Re: Struts question <html:text>
- Prev by Date: Re: Html download challenge
- Next by Date: Fast array I/O
- Previous by thread: Re: Html download challenge
- Next by thread: Re: Struts question <html:text>
- Index(es):
Relevant Pages
|