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

Calling .do directly

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi folks
Hi have a small problem while calling the .do
iam calling .do direcrtly, instead of calling jsp,and i can able to call
Action class perfectly but my concern is iam calling like
" http://localhost:8080/Test/Login.do"
but here instead of specifying the /Login.do can i use <welcome-file-list>
tag in web.xml then i can able to call like
" http://localhost:8080/Test/Login.do"...
can you please suggest me....
let me know if any ideas...

Thanks
Naresh
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, but you can't include a URL such as "Login.do" as part of your welcome file list. Entries in the welcome file list must be actual files.

One way to accomplish the same thing is to create an index.jsp file and put that in your welcome file list. Then in index.jsp use the logic:redirect tag to redirect to the Login action. Example:
<logic:redirect action="/Login" />
 
Naresh Talluri
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Merrill Higginson:
Sorry, but you can't include a URL such as "Login.do" as part of your welcome file list. Entries in the welcome file list must be actual files.

One way to accomplish the same thing is to create an index.jsp file and put that in your welcome file list. Then in index.jsp use the logic:redirect tag to redirect to the Login action. Example:
<logic:redirect action="/Login" />



Ok Thank you alot....!
 
No holds barred. And no bars holed. Except this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic