• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP navigation rules

 
Dusan Mancic
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


I'm analysing some JSP source code. I don't know how JSP pages are connected.

For example: the first page is login.jsp (with log in form). When user clicks on Log in button,
what is the next jsp page that will be shown to him?

Where can I define navigation rules?

In JSF there is a file faces-config.xml where navigation rules are defined (start JSP page, servlet which checks username and password, and the next JSP page).

I imported the source code in Eclipse as General/Existing Project into Workspace.



Thank you very much!

Dusan
 
Pongsakorn Semsuwan
Ranch Hand
Posts: 34
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe jsp does not have that kind of flow control. (correct me if I am wrong)

You can see which page you are going if you click the log in button by looking at the form's action attribute :)
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read this article for information on how to properly structure web applications.
 
Dusan Mancic
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, I will take a look at that.





Dusan
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer, of course, is that there aren't any rules. The form will be submitted wherever it's action dictates. The servlet implementing the action decides where to go next.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!