my dog learned polymorphism*
The moose likes Struts and the fly likes Calling .do directly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Calling .do directly" Watch "Calling .do directly" New topic
Author

Calling .do directly

Naresh Talluri
Ranch Hand

Joined: Oct 12, 2007
Posts: 115
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
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
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" />


Merrill
Consultant, Sima Solutions
Naresh Talluri
Ranch Hand

Joined: Oct 12, 2007
Posts: 115
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....!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling .do directly
 
Similar Threads
how to create a alias for my package
alias for jsp file with weblogc workshop
struts & Jdeveloper
alias name for package
alias name for package