Re: Having problems moving between pages with struts

2005-06-02 Thread Martin Gainty

*Dave I think he might have posted to the wrong list*
Paul could you post this same question to velocity-user@jakarta.apache.org 
and I and the others will answer your inquiry

Many Thanks,
Martin-

- Original Message - 
From: "Dave Newton" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Thursday, June 02, 2005 1:46 PM
Subject: Re: Having problems moving between pages with struts



Paul Goepfert wrote:

Here it is,  I am developing a small program  that utilizes Struts, Java 
and Apache Velocity Templates.  I amm trying to move from one page to 
another via struts.  Every time I try to move to another page I get a 404 
Error in Tomcat.


What do you mean by "move to another page?"

The servlet-class for "action" is not the same class for where my servlet 
is located.  Anonther thing that I don't understand is the *.do 
url-mapping If anyone can explain that to me that would be great.


Have you looked at any of the Struts documentation? That might be a good 
place to start.


Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Having problems moving between pages with struts

2005-06-02 Thread Dave Newton

Paul Goepfert wrote:

Here it is,  I am developing a small program  that utilizes Struts, 
Java and Apache Velocity Templates.  I amm trying to move from one 
page to another via struts.  Every time I try to move to another page 
I get a 404 Error in Tomcat.


What do you mean by "move to another page?"

The servlet-class for "action" is not the same class for where my 
servlet is located.  Anonther thing that I don't understand is the 
*.do url-mapping If anyone can explain that to me that would be great.


Have you looked at any of the Struts documentation? That might be a good 
place to start.


Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Having problems moving between pages with struts

2005-06-02 Thread John Fitzpatrick

If I'm reading your desired config correctly, It looks like you've got one
action, InfoAction which would be reached at /action/PersonalInfo.do and
will either load info.vm or menu.vm depending on what the action returns.
(Note the placement of the ".do" -- that's what that means)

If there are other actions you want to browse to, you'll need the action
mappings.

I suspect however that your problem might also lie in the  tag
which I think belongs in a web.xml file instead.



On 20050602 12:48 PM, "Paul Goepfert" <[EMAIL PROTECTED]> wrote:

> Here it is,  I am developing a small program  that utilizes Struts, Java
> and Apache Velocity Templates.  I amm trying to move from one page to
> another via struts.  Every time I try to move to another page I get a
> 404 Error in Tomcat.  Here is my struts-conf.xml file as well as my
> web.xml file.  Could someone please tell me what is wrng with it.
> 
> 
>   
>   
>   
>   
>  type="actions.InfoAction"
>   name="infoForm">
>   
>   
>   
>   
> 
> 
> 
>   Personal Information
>   
>   action
> 
> org.apache.struts.action.ActionServlet
>   
>   config
>   /WEB-INF/conf/struts-conf.xml
>   
>   2
>   
>   
>   velocity
>   
> org.apache.velocity.tools.view.servlet.VelocityViewServlet vlet-class>
>   10
>   
>   
>   velocity
>   *.vm
>   
>   action
>   *.do
>   
> 
> 
> The servlet-class for "action" is not the same class for where my
> servlet is located.  Anonther thing that I don't understand is the *.do
> url-mapping If anyone can explain that to me that would be great.
> 
> Thanks
> 
> Paul
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]