Struts error - "Cannot get dispatcher"


Hi all,

Im getting this error when I try and load a page :

2006-11-22 09:13:23 - Ctx(/wmk) : Status code:500 request:R( /HOME + /MYPAGE.do + null) msg:Cannot get request dispatcher for path addNewValue


Here is my corresponding struts-config.xml entry:

    <action path="/myAction"
            type="com.addNewValue"
            name="addValueForm"
            scope="request"
            validate="false"
            >                       
      <forward name="addValue" path="gdAddNewSimpleValue" />
    </action>


Thanks for any help
monitorscreenAsked:
Who is Participating?
 
deeppraConnect With a Mentor Commented:
change like this
<forward name="addValue" path="/gdAddNewSimpleValue" />
0
 
monitorscreenAuthor Commented:

Ya i did that and its working now. none of my other paths need the / . Why is it so in this case?
0
 
monitorscreenAuthor Commented:

its not actually working, I can put in any value into the path as long as a slash is the prefix and the correspond .do file page is displayed.

Any ideas?

THANKS
0
[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

 
deeppraCommented:
explain clearly
0
 
monitorscreenAuthor Commented:

ok, apologies if I was vague.


When I use this :
<forward name="addValue" path="/gdAddNewSimpleValue" />
The .do page is gettign loaded but the contents of the jsp (which is just some text) is not being displayed.


I can have any value in the path like :
  <forward name="addValue" path="/thisJspDoesNotExist" />

and /myAction.do will still get loaded.

thanks again

0
 
deeppraCommented:
the path attribute is used to locate a particular HTML,JSP or Action
so it should end with HTML or JSP or .do
0
 
monitorscreenAuthor Commented:

Ive tried:
<forward name="addValue" path="/myPage.jsp" />

But im getting this error:
2006-11-22 11:57:48 - Ctx(/dld) : Status code:404 request:R( /wmk + /myPage.jsp + null) msg:null
0
 
deeppraCommented:
404 means u dont have that mypage.jsp file in the current directory...check where u have that file in the current directory
0
 
monitorscreenAuthor Commented:


Yes the file is there alright. Sorry but I previously did not post the full error which is:

2006-11-22 12:10:00 - Ctx(/wmk) : Class not found: TOMCAT/JSP/myPage.jsp
2006-11-22 11:57:48 - Ctx(/dld) : Status code:404 request:R( /wmk + /myPage.jsp + null) msg:null

I checked and the class file is not being created.
What could be wrong?
0
 
deeppraCommented:
directly from the explore open that JSP file and see whether its comming or not
0
 
monitorscreenAuthor Commented:

No its not comming??
0
 
deeppraCommented:
i think this should be started in a new thread so that experts can see this question and answer to this
0
All Courses

From novice to tech pro — start learning today.