• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet mapping naming

 
John Schretz
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like my url pattern to show up in the address bar as a .jsp extension. Is it bad to define the url patten as i have below ConfirmOrder.jsp
Everything works fine, i just wasnt sure if there are any adverse effects. Or is there a better way to accomplish what i am trying to do?

Thanks
John

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64964
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why?
 
John Schretz
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
lol

why not?

it just seems that most of the jsp sites i go to have extensions on all of their url's
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64964
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's because they are using an old-fashioned Model 1 app structure as opposed to a best-practice Model 2/MVC architecture. It's not something to be proud of.
 
John Schretz
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
got it.

btw i read your Scriptless JSP Pages article. Probably one of the most informative things i read on the internet. It cleard up alot of things in my learning of jsp/servlets, and definatly made my application better.

Thanks,
John
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64964
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Very cool. Thanks for the feedback!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic