• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help with application context

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
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
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.
 
Ranch Hand
Posts: 689
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
reply
    Bookmark Topic Watch Topic
  • New Topic