Bear Bibeault wrote:The dumb question that I gotta ask: does /WEB-INF/pages/tada.jsp exist?
-rw-r--r-- 1 pfarrell pfarrell 1191 2009-04-09 01:52 regstep1.jsp
-rw-r--r-- 1 pfarrell pfarrell 3960 2009-04-18 17:44 regstep2.jsp
-rw-r--r-- 1 pfarrell pfarrell 27 2009-04-25 15:15 tada.jsp
Bear Bibeault wrote:And, how are you transitioning from the action to the view? A forwardToView I am assuming?
Pat Farrell wrote:redirectToView("tada");
Interesting note, when the browser shows the error, it displays the raw file path, rather than the context specific one:
Bear Bibeault wrote:Ah! There's the issue.
Bear Bibeault wrote: Where I use redirect most is to utilize the PRG pattern, and redirect from a task command to the view controller/command for the view to be displayed (where a forward is used between the command and its view).
Bear Bibeault wrote:Post-Redirect-Get: it's a pattern that prevents a refresh from replaying a previous operation..
Bear Bibeault wrote:Your server-side code should always protect against some script-kiddie modifying values. But one approach is to not show client-visible values at all.
I'm not sure why you feel like you need to do it this way. In fact, my views never appear in any way in URLs. They all identify commands.
Pat Farrell wrote:I don't see how to do that if I have a simple "showview" command so I can implement the model/pattern. I need to be able to specify "what" view to show.
I merely pointed out SSL as a way to avoid session hijacking.
SSL does nothing if the user can simply change the URL/URI string, query paramters, etc.
Bear Bibeault wrote:In fact, my views never appear in any way in URLs. They all identify commands.
Pat Farrell wrote:Well, I may just not understand how you implement this. Do you use unique URLs for each view?
Twice as many as what? And what needs changing?
The idea of having twice as many "commands" is not appealing to me, at least at first look. Twice as many things to change when the PHB wants different sequences, etc.
Bear Bibeault wrote:Twice as many as what? And what needs changing?