• Post Reply Bookmark Topic Watch Topic
  • New Topic

setting up welcome page in war  RSS feed

 
tan kian
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all, i cant seem to access a jsp page that i had set as the welcome page. it just keeps on showing a 404 error to me saying that it cant be found. i set the aliases to the same name as the filename(/filename.jsp) and the welcome page to the file(filename.jsp), and i dont know what i am doing wrong. can someone help? thanks!!!
 
Annie Smith
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you placed the JSP in the webapp context root?
 
Satish SN
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think u are giving absolute path in the web.xml file of the war
my suggestion would be to give the relative means say some thing like ./myfile.jsp so that it starts to look from the defaultwebapp
 
tan kian
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thks for the replies, but i solved it already. turned out that i'm supposed to put the name of war(or some other context name, cant remember cause i set everything to the same name) in the address and not the name of the jsp file.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!