DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5292>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5292

page attribute in LinkTag does not compute a full server relative URI

           Summary: page attribute in LinkTag does not compute a full server
                    relative URI
           Product: Struts
           Version: 1.0 Final
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Custom Tags
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


-----Original Message-----
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 4:05 PM
To: Ragunathan, Ragu
Subject: Re: Defect related to computeURL


I would say that everyone should be returning 

/serv/one/two/three/doSomething 

just as they would return 

/serv/one/doSomething 

if the servlet-mapping were 

/one/*

There is talk of doing some refactoring on the tags, and I would ask
that you post this to bugzilla, since we can probably do both at once.

> "Ragunathan, Ragu" wrote:
> 
> Ted,
> 
> I am using Struts 1.0 and I have noted that there are few defects in
> computeURL used by FormTag. I saw your replies to them, so I thought
> you are more familiar with that code. So, here's a question!
> 
> In LinkTag, the page attribute is expanded to include the context
> path, but not the complete servlet mapping as is done in computeURL.
> Is this a defect?
> 
> E.g.,
> 
> 1. Assume that the servlet is installed under /webapps/serv (i.e,. the
> root context is /serv)
> 
> 2. <servlet-mapping>
>       <url-pattern>/one/two/three/*</url-pattern>
>     </servlet-mapping>
> 
> 3. <html:link page="/doSomething">...</html:link>
> 
> In the above case, the URL is expanded to /serv/doSomething
> 
> 4. <html:form action="/doSomething">
> 
>  In the above case, the URL is expanded to
> /serv/one/two/three/doSomething
> 
> Shouldn't LinkTag (and other link dependent tags) also use computeURL?
> 
> 
> Thanks
> Ragu

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

Reply via email to