You are correct about the file location...  I'm assuming you meant struts-config.xml 
and not slide-config.xml .. I'm not sure if it matters, but be sure the directory is 
WEB-INF, not web-inf.

My suggestion to you would be to try and get the struts-example.war running ...

Just put the war file in your webapps directory (or unjar it there), then try to run 
the example.  If that works, you can slowly integrate your code into that webapp.  
Surely you will find the point at which it starts failing.

Good luck!

---
- Nayan Hajratwala
- Chikli Consulting LLC
- http://www.chikli.com


-----Original Message-----
From: Dan Tarkenton [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 27, 2003 4:06 PM
To: Struts Users Mailing List
Subject: Re: how to invoke the action servlet?


Ah, I am sorry.  I forgot to mention that I had tried
different combinations of URLs.  I did try
http://localhost:8080/ginsu/ginsu.do and I get the
same tomcat error as when I enter
http://localhost:8080/ginsu .

I also realize how vague I was.  I'll try to be more
specific:  I am using Tomcat 4.1.18, and I get a 404
with a description of "The requested resource is not
available" when I try these different URLs. 

I went back to my %CATALINA_HOME%/webapp/ginsu
directory and discovered that my struts-config.xml
file was there.  I think this is incorrect.

The web.xml file and the struts-config.xml file both
need to reside in my
%CATALINA_HOME%/webapps/ginsu/WEB-INF directory,
correct?

So I moved the slide-config.xml to the web-inf
directory and restarted tomcat and received the same
results.

Any further thought?

Thanks again, and I appreciate the fast responses.
--- "Craig R. McClanahan" <[EMAIL PROTECTED]> wrote:
> 
> 
> On Thu, 27 Mar 2003, Dan Tarkenton wrote:
> 
> > Date: Thu, 27 Mar 2003 12:32:09 -0800 (PST)
> > From: Dan Tarkenton <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List
> <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: how to invoke the action servlet?
> >
> >
> > I have been referencing the book Struts in Action
> by Ted Husted as well
> > as the struts site. I cannot figure out what to
> point my browser to in
> > order to invoke struts. I have zero JSPs in my
> struts application -- I
> > have no need for them because I am utilizing Model
> X where I have one
> > XSLT servlet that represents my entire view layer.
> I thought I could
> > just point my browser to
> http://localhost:8080/ginsu (ginsu being the
> > name of my web app). I realize I have no
> index.html or index.jsp, but
> > I'm just trying to go directly to the action
> servlet from the browser.
> >
> > Is this not possible in struts?
> >
> 
> The URL of an action is composed like this:
> 
>  
>
http://${hostname}:${portnumber}${contextpath}${actionpath}
> 
> So, if you install your webapp at context path
> "/ginsu", and you want to
> invoke the action with a path of "/ginsu" (which
> appears to be the only
> one you've defined), the URL would be:
> 
>   http://localhost:8080/ginsu/ginsu.do
> 
> since you are using extension mapping.  The first
> part ("/ginsu") selects
> which web application, while the rest ("/ginsu.do")
> selects the action.
> 
> Craig
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

---------------------------------------------------------------------
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]

Reply via email to