| Author |
problem while creating a new web project and using existing java/jsp and other classes.
|
vikky agrawal
Ranch Hand
Joined: Dec 18, 2008
Posts: 64
|
|
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.!
|
scjp 6
http://algorithmsea.blogspot.com
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56529
|
|
|
The Servlet Specification is the ultimate source for information.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Swetha Bhagavathula
Ranch Hand
Joined: Jan 04, 2011
Posts: 112
|
|
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..
|
SCJP5
|
 |
 |
|
|
subject: problem while creating a new web project and using existing java/jsp and other classes.
|
|
|