• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem while creating a new web project and using existing java/jsp and other classes.

 
vikky agrawal
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to create a new web project with the existing code and I created a new netbeans project for that, when I tried to run the project, index.jsp is invoked and clicking on any link got following error : "The requested resource (/Test/manage.ctrl) is not available."
I think the problem is with web.xml as my servlets are mapped to different url and thus it is not able to find them.

In my existing web.xml entries are made like :


I am not good with web.xml mappings, so any suggestions or link to any tutorial for that are welcome.

Thanks.!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Servlet Specification is the ultimate source for information.
 
Swetha Bhagavathula
Ranch Hand
Posts: 112
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vikky agrawal wrote:Hi,

I want to create a new web project with the existing code and I created a new netbeans project for that, when I tried to run the project, index.jsp is invoked and clicking on any link got following error : "The requested resource (/Test/manage.ctrl) is not available."
I think the problem is with web.xml as my servlets are mapped to different url and thus it is not able to find them.

In my existing web.xml entries are made like :


I am not good with web.xml mappings, so any suggestions or link to any tutorial for that are welcome.

Thanks.!

hi..
yes the problem is ..what ever web resource program you open it is mapping to different url.like by default it will be index.jsp.
So..
in your web.xml:add the below code:
<welcome-file-list>
<welcome-file>Myhtml.html<welcome-file>
<welcome-file-list>

this is usefull to open your home page html file.where Myhtml is your html file suppose.If you more interlinked web pages go for

<load-on-startup>prirityofexecution<load-on-startup>

//here priority should be interg value except 0 as '0'(zero) may not supported by some web server /Appserver versions
you can use 1 or 2 etc based on your requirement..try this..

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!