Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Keeping url short and relative  RSS feed

 
Ramakanta Sahoo
Ranch Hand
Posts: 256
Fedora Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

First I would like to tell that I am a part time programmer so please gimme answers in little detailed manner may b with example. please bear with this.

I am developing a new application(opensource) using only Jsp and HTML, where i have many tabs for diff purposes.
What I want is all the individual jsp files(jsp\*.jsp) should comes with a nice url when I click on any tab like http://www.abc.com/?query=dba.jsp like this

I dont know how to achive this. all individual jsp's are one one complete program which performs different tasks like db query,file management, system usage etc, so no 2 files are linked each other.

In the screenshot you can see its going for the file on folder name jsp i dont want this i want a formatted url where it shows some structure urls

Please do let me know how shall I will be able to achive this or better if you have some other idea.
app.jpg
[Thumbnail for app.jpg]
application test
 
Sai Hegde
security forum advocate
Ranch Hand
Posts: 214
1
Android Flex Google App Engine
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put this in your web.xml
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66144
143
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Putting in an entry for every JSP is not the best approach. What happens when there are hundreds? You really want to look into the Front Controller pattern.

And using JSP without servlets is like frosting with no cake. Please read this article for more info.
 
Ramakanta Sahoo
Ranch Hand
Posts: 256
Fedora Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Putting in an entry for every JSP is not the best approach. What happens when there are hundreds? You really want to look into the Front Controller pattern.

And using JSP without servlets is like frosting with no cake. Please read this article for more info.



Thanks Bear and Sai for the pointer

Lemme check and revert back.!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!