• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help with application context  RSS feed

 
Nick Andrews
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am new to the JEE world so please bear with my questions.

I am developing an enterprise web app in RAD. I have created EAR project and a dynamic web project. Then I created jsp pages inside web project. But when I am launching the jsp page through websphere server the browser is showing the whole address with all the folders in the address bar like <web project>/folder1/folder2/test.jsp.

Is there a way I can avoid showing folder1/folder2 and just show <web project>/test.jsp.

Thanks for your help.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's just the URL to the JSP. What's the issue?

In case you do want to hide it, you can use deployment descriptor mappings.

And if you are directly submitting to JSPs a la Model 1, you should consider moving into the modern era and adopt the use of Model 2 with its servlet controllers.
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,

Of course you can.

You give can configure URL pattern your own using DD(Deployment Descriptor) Web.xml.

you have to map your servlet and servlet mapping tag at web.xml.

like




using this you can give it your own.


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!