RE: servlet-mapping and url-pattern

2002-05-10 Thread Galpin, Charles


> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Actually, there is a standard action that would let you simulate this:
> 
>  type="org.apache.struts.actions.ForwardAction"
> parameters="/path/to/tiles/servlet"/>
> 
> Now, a request to "/tiles.do" (if you're using extension mapping for the
> controller servlet) will get forwarded to your servlet.
> 
> > Cheers,
> > Laird
> >
> 
> Craig

Maybe I don't understand, but this isn't any better than just having a
servlet mapping to my current servlet (with no involvement from struts). The
servlet method works fine. What I want to do is convert the servlet to an
action to take advantage of other features we have built into our
ActionServlet and Action class heirarchies.

Thanks
charles



RE: servlet-mapping and url-pattern

2002-05-10 Thread Craig R. McClanahan



On Fri, 10 May 2002, Nelson, Laird wrote:

>
> You can't use the servlet path ("/tiles") in an action mapping.  Action
> mappings out of the box only use path info.
>

Actually, there is a standard action that would let you simulate this:

  

Now, a request to "/tiles.do" (if you're using extension mapping for the
controller servlet) will get forwarded to your servlet.

> Cheers,
> Laird
>

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: servlet-mapping and url-pattern

2002-05-10 Thread Galpin, Charles



> -Original Message-
> From: Mark Nichols [mailto:[EMAIL PROTECTED]]
>   
> action
> tiles/*
>   
> 
> 
> Maybe you need the url-pattern to look like:
> 
> 
>
> 
> 
> Note the extra slash at the beginning of the value
> 
> Mark

Nope, no better. I'm beginning to believe this cannot be done. I believe the
servlet mapping is occurring fine, but the action mapping is failing. 

If I enter the URL http://localhost:7001/tiles/foo/bar

I see the following in the logs

[INFO] RequestProcessor - -Processing a 'GET' for path '/foo/bar'
[ERROR] RequestProcessor - -Invalid path /foo/bar was requested

So it appears the /tiles servlet mapping worked, and the action mapping is
failing.

Thanks anyway

charles
(I am not a lawyer, but often play one in bed)



Re: servlet-mapping and url-pattern

2002-05-10 Thread Mark Nichols


  
action
tiles/*
  


Maybe you need the url-pattern to look like:


   


Note the extra slash at the beginning of the value

Mark


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: servlet-mapping and url-pattern

2002-05-10 Thread Nelson, Laird

> -Original Message-
> From: Galpin, Charles [mailto:[EMAIL PROTECTED]]
> Web.xml:
> 
>   
> action
> tiles/*
>   
> 
> Struts-config.xml:
> 
>
>
>   
> 
> Any ideas?

You can't use the servlet path ("/tiles") in an action mapping.  Action
mappings out of the box only use path info.

Cheers,
Laird

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




servlet-mapping and url-pattern

2002-05-10 Thread Galpin, Charles

Hi all

I want to convert an existing servlet to an Action, but I'm having trouble
getting a servlet mapping to work (using weblogic 7.0).

Currently, I can use an URL like /tiles/with/these/parameters

And the servlet mapped to /tiles/* then parses the req.getRequestURI()
output to access the parameters. FYI, this is to get the browser to cache
dynamic image requests - if you can suggest a better way, please do so.

Anyway, I can't get a servlet action mapping to do the same thing. I've
tried a number of things, but it seems I can't do the same thing. The
general ide would be to have

Web.xml:

  
action
tiles/*
  

Struts-config.xml:

  
  

Any ideas?

tia
charles