You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ben Anderson <st...@hotmail.com> on 2003/07/10 17:03:40 UTC

html spaces

maybe this is a more genearl html/xml question - not really sure

            <c:set var="link">
                <bean:message key="path"/>
                <bean:message key="file">
            </c:set>

so this sets link to equal /mypath/somewhere/ myfile.htm
obviously this puts a space in there and won't work.
I know this will work:
            <c:set var="link">
                <bean:message key="path"/><bean:message key="file">
            </c:set>
but does anyone know if there's a way to continue to the next line without 
inserting a space?
Thanks,
Ben Anderson

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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


Re: html spaces

Posted by Eric Jain <Er...@isb-sib.ch>.
> but does anyone know if there's a way to continue to the next line
> without inserting a space?

You could use JSP/XML syntax, that would give you this behavior.

--
Eric Jain


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


Re: html spaces

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Thu, 10 Jul 2003, David Graham wrote:

> Date: Thu, 10 Jul 2003 08:09:09 -0700 (PDT)
> From: David Graham <gr...@yahoo.com>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>,
>      dgraham@apache.org
> To: Struts Users Mailing List <st...@jakarta.apache.org>
> Subject: Re: html spaces
>
> --- Ben Anderson <st...@hotmail.com> wrote:
> > maybe this is a more genearl html/xml question - not really sure
> >
> >             <c:set var="link">
> >                 <bean:message key="path"/>
> >                 <bean:message key="file">
> >             </c:set>
>
> Why are you using the JSTL's <c:set> tag but not the <fmt:message> tag?
> <fmt:message> is a straightforward replacement of the <bean:message> tag.
>

JSTL's <c:url> tag is also useful for dynamically building up URLs.

> David

Craig

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


Re: html spaces

Posted by David Graham <gr...@yahoo.com>.
--- Ben Anderson <st...@hotmail.com> wrote:
> maybe this is a more genearl html/xml question - not really sure
> 
>             <c:set var="link">
>                 <bean:message key="path"/>
>                 <bean:message key="file">
>             </c:set>

Why are you using the JSTL's <c:set> tag but not the <fmt:message> tag? 
<fmt:message> is a straightforward replacement of the <bean:message> tag.

David

> 
> so this sets link to equal /mypath/somewhere/ myfile.htm
> obviously this puts a space in there and won't work.
> I know this will work:
>             <c:set var="link">
>                 <bean:message key="path"/><bean:message key="file">
>             </c:set>
> but does anyone know if there's a way to continue to the next line
> without 
> inserting a space?
> Thanks,
> Ben Anderson
> 
> _________________________________________________________________
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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