This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Path index.jsp  RSS feed

 
Isaac Ferguson
Ranch Hand
Posts: 1063
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a project called "sonneStatsWeb1":

<welcome-file>/sonneStatsWeb1/WebContent/web/index.jsp</welcome-file>

I get the error 404

Any idea?

Regards
Isaac
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That path does not look right. I'm assuming by the "WebContent" part that you used an IDE to generate this? ( ) If so, the path should likely¹ just be the part after WebContent.



¹ Though not sure because I don't use an IDE to generate code.
 
Paul Ngom
Ranch Hand
Posts: 355
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Isaac,
You can call index.jsp from your browser so as to know the correct url. Welcome files are usually placed at the root of applications in the same directory as the WEB-INF directory.That way you just need to declare the welcome file without the path:

Then if your call the url http://.../sonneStatsWeb
your welcome file will be displayed.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!