This is a question for the Struts USER list.

10/25/2002 1:52:24 AM, "Ng, Paul Y" <[EMAIL PROTECTED]> wrote:

>Hi,
>
>I would like to be able to write out the following URL 
>
>href="localhost:8080/testing.do?action=ADD&userid=1234
&status=A#top"
>href="localhost:8080/testing.do?action=ADD&userid=1234"
>href="localhost:8080/testing.do?action=ADD&userid=1234#top"
>
>Is it correct to say that I should do something like this
>
><app:linkUser page="/testingdo?action=ADD">
>       <bean:write name="user" property="userid" filter="true"/>
>       <bean:write name="user" property="top" filter="true"/>
></app:linkUser>
>
>where property top is actually "#top"?
>
>And in the doStartTag() method have
>
>public int doStartTag() throws JspException {
>       url.append("&");
>       url.append("userid=");
>       url.append(ResponseUtils.filter(  user.getUserid() ));
>       url.append(ResponseUtils.filter(  user.getTop() ));
>}
>
>Thanks,
>Paul Ng
>
>
>-----Original Message-----
>From: James Mitchell [mailto:jmitchtx@;telocity.com]
>Sent: Friday, October 25, 2002 11:51 AM
>To: Struts Developers List
>Subject: RE: href="/Struts/testing.do?action=ADD&userid=1234
#top"
>
>
>'#top' will only be there if you tell it to.
>
>Could you explain a bit further what you are wanting to do?
>
>
>James Mitchell
>Software Engineer/Struts Evangelist
>http://www.open-tools.org
>
>"Only two things are infinite, the universe and human 
stupidity, and I'm not
>sure about the former."
>- Albert Einstein (1879-1955)
>
>
>> -----Original Message-----
>> From: Ng, Paul Y [mailto:paul.ng@;eds.com]
>> Sent: Thursday, October 24, 2002 11:21 PM
>> To: 'Struts Developers List'
>> Subject: href="/Struts/testing.do?action=ADD&userid=1234
#top"
>>
>>
>> Hi there,
>>
>> I would like to use a custom tag and Struts bean to write 
out the
>> following
>> URL.
>>
>> href="/Struts/testing.do?action=ADD&userid=1234#top"
>>
>> My question is,
>> is it possible to make the custom tag generic so that it 
doesn't write out
>> the hash mark "#top" on some JSPs?
>>
>>
>> Thanks,
>> Paul Ng
>>
>> --
>> To unsubscribe, e-mail:
>> <mailto:struts-dev-unsubscribe@;jakarta.apache.org>
>> For additional commands, e-mail:
>> <mailto:struts-dev-help@;jakarta.apache.org>
>>
>>
>
>
>--
>To unsubscribe, e-mail:   <mailto:struts-dev-
[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:struts-dev-
[EMAIL PROTECTED]>
>
>--
>To unsubscribe, e-mail:   <mailto:struts-dev-
[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:struts-dev-
[EMAIL PROTECTED]>
>
>




--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@;jakarta.apache.org>

Reply via email to