This week's book giveaway is in the Design and Architecture forum.
We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Keeping url short and relative

 
Ranch Hand
Posts: 256
Netbeans IDE Firefox Browser Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
security forum advocate
Posts: 236
1
Android Flex Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Put this in your web.xml
 
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Netbeans IDE Firefox Browser Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.!
 
Grow a forest with seedballs and this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic