You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Natalie D Rassmann <na...@lmco.com> on 2003/04/21 12:54:39 UTC

extracting a link forward cmd using bean:write

Can anyone help???

I am trying to extract a link forward command from a bean:write tag;
below is my code.  When I try to do it, I get the following error:

[ServletException in:/jsp/common/index-loggedIn-body.jsp]
/jsp/common/index-loggedIn-body.jsp(49,55) equal symbol expected'

<html:link forward="<bean:write name="tool"
property="toolForwardCmd"/>">
                <bean:write name="tool" property="toolLabel"/>
</html:link>

I am using STRUTs 1.1RC with Tomcat 4.1.18.

Thanks in advance,

Natalie


Re: extracting a link forward cmd using bean:write

Posted by Jeff Kyser <kt...@comcast.net>.
Dunno, since I've not looked at the sourcecode for the tags,
but seen lots of 'can't do that' posts. Sorry for the bum steer
on the single quotes. Don't copy my exact syntax, since I'm
not sure of your page details and you
may need a <bean:define id="region">, but I think you
can use the <%= %> syntax:

	<html:checkbox property="region" value="<%= region.getValue() %>" />

I'm crawling back in my little hole now...

:)

-jeff

On Monday, April 21, 2003, at 06:08  AM, Natalie D Rassmann wrote:

> Jeff -
>
> Single quotes didn't work, but thanks for the suggestion...  I know  
> you can
> do the following so why can't you do a nested <html:link>
>
> Natalie
>
> <html:checkbox property="region" value="<bean:write name="region"
> property="value"/>"/>
>
>
> Jeff Kyser wrote:
>
>> oh, wait, coffee not working here yet. I don't think you can nest
>> tags like that (bean:write inside of html:link)
>>
>> -jeff
>>
>> On Monday, April 21, 2003, at 05:59  AM, Jeff Kyser wrote:
>>
>>> Try single quotes around the forward:
>>>
>>>> <html:link forward='<bean:write name="tool"
>>>> property="toolForwardCmd"/>' >
>>>
>>> -jeff
>>>
>>> On Monday, April 21, 2003, at 05:54  AM, Natalie D Rassmann wrote:
>>>
>>>> Can anyone help???
>>>>
>>>> I am trying to extract a link forward command from a bean:write tag;
>>>> below is my code.  When I try to do it, I get the following error:
>>>>
>>>> [ServletException in:/jsp/common/index-loggedIn-body.jsp]
>>>> /jsp/common/index-loggedIn-body.jsp(49,55) equal symbol expected'
>>>>
>>>> <html:link forward="<bean:write name="tool"
>>>> property="toolForwardCmd"/>">
>>>>                 <bean:write name="tool" property="toolLabel"/>
>>>> </html:link>
>>>>
>>>> I am using STRUTs 1.1RC with Tomcat 4.1.18.
>>>>
>>>> Thanks in advance,
>>>>
>>>> Natalie
>>>>
>>>> -------------------------------------------------------------------- 
>>>> -
>>>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: extracting a link forward cmd using bean:write

Posted by Natalie D Rassmann <na...@lmco.com>.
Jeff -

Single quotes didn't work, but thanks for the suggestion...  I know you can
do the following so why can't you do a nested <html:link>

Natalie

<html:checkbox property="region" value="<bean:write name="region"
property="value"/>"/>


Jeff Kyser wrote:

> oh, wait, coffee not working here yet. I don't think you can nest
> tags like that (bean:write inside of html:link)
>
> -jeff
>
> On Monday, April 21, 2003, at 05:59  AM, Jeff Kyser wrote:
>
> > Try single quotes around the forward:
> >
> >> <html:link forward='<bean:write name="tool"
> >> property="toolForwardCmd"/>' >
> >
> > -jeff
> >
> > On Monday, April 21, 2003, at 05:54  AM, Natalie D Rassmann wrote:
> >
> >> Can anyone help???
> >>
> >> I am trying to extract a link forward command from a bean:write tag;
> >> below is my code.  When I try to do it, I get the following error:
> >>
> >> [ServletException in:/jsp/common/index-loggedIn-body.jsp]
> >> /jsp/common/index-loggedIn-body.jsp(49,55) equal symbol expected'
> >>
> >> <html:link forward="<bean:write name="tool"
> >> property="toolForwardCmd"/>">
> >>                 <bean:write name="tool" property="toolLabel"/>
> >> </html:link>
> >>
> >> I am using STRUTs 1.1RC with Tomcat 4.1.18.
> >>
> >> Thanks in advance,
> >>
> >> Natalie
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: extracting a link forward cmd using bean:write

Posted by Jeff Kyser <kt...@comcast.net>.
oh, wait, coffee not working here yet. I don't think you can nest
tags like that (bean:write inside of html:link)

-jeff

On Monday, April 21, 2003, at 05:59  AM, Jeff Kyser wrote:

> Try single quotes around the forward:
>
>> <html:link forward='<bean:write name="tool" 
>> property="toolForwardCmd"/>' >
>
> -jeff
>
> On Monday, April 21, 2003, at 05:54  AM, Natalie D Rassmann wrote:
>
>> Can anyone help???
>>
>> I am trying to extract a link forward command from a bean:write tag;
>> below is my code.  When I try to do it, I get the following error:
>>
>> [ServletException in:/jsp/common/index-loggedIn-body.jsp]
>> /jsp/common/index-loggedIn-body.jsp(49,55) equal symbol expected'
>>
>> <html:link forward="<bean:write name="tool"
>> property="toolForwardCmd"/>">
>>                 <bean:write name="tool" property="toolLabel"/>
>> </html:link>
>>
>> I am using STRUTs 1.1RC with Tomcat 4.1.18.
>>
>> Thanks in advance,
>>
>> Natalie
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: extracting a link forward cmd using bean:write

Posted by Jeff Kyser <kt...@comcast.net>.
Try single quotes around the forward:

> <html:link forward='<bean:write name="tool" 
> property="toolForwardCmd"/>' >

-jeff

On Monday, April 21, 2003, at 05:54  AM, Natalie D Rassmann wrote:

> Can anyone help???
>
> I am trying to extract a link forward command from a bean:write tag;
> below is my code.  When I try to do it, I get the following error:
>
> [ServletException in:/jsp/common/index-loggedIn-body.jsp]
> /jsp/common/index-loggedIn-body.jsp(49,55) equal symbol expected'
>
> <html:link forward="<bean:write name="tool"
> property="toolForwardCmd"/>">
>                 <bean:write name="tool" property="toolLabel"/>
> </html:link>
>
> I am using STRUTs 1.1RC with Tomcat 4.1.18.
>
> Thanks in advance,
>
> Natalie
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org