Users should not have any idea what those URLs are. Users should only know about the View (HTML/JSP pages).
You can write code in the joinstep2 Action class that will check to see if joinstep1 Action has executed. If not, send the browser an error page or some other page that states they nees to do whatever joinstep1 requires.
Also, the first word in English sentences is capitalized. And the word 'I' is always capitalized. [ September 22, 2008: Message edited by: James Clark ]
tapeshwar sharma
Ranch Hand
Joined: Mar 10, 2006
Posts: 245
posted
0
if user enters any url like above it shuld redirect to login page
If you mean any url, then probably you would like to write a filter in web.xml. However, since the 2 URLs that you gave look like they are step 1 and then step 2 towards a particular goal (and therefore not a generic requirement for all the action mappings in you application), you can implement a more localized solution in step 2 : like checking for some value in the session that is set by step 1.If it is there, then go ahead, otherwise present the login page.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.