You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Ragy Eleish <re...@comergent.com> on 2002/05/31 21:08:06 UTC

JSP Document Support in Tomcat 4.x

Hi,

I wrote a JSP document that mixes JSP XML tags with XHTML tags as follows,
where I used a JSP expression to calculate the XHTML tag's attribute value
(src="%=url2%"). Jasper wasn't able to convert it correctly, it didn't
recognize that this is a JSP expression but took the value as is. Meaning
the final HTML was (src="%=url2%") and not (src="http://www.lycos.com").

The main purpose of mixing XHML and JSP tags is to get a well formed
document.

I understand that the Spec is a little vague, but is there a plan to support
that?


Regards

--Ragy

<jsp:root  xmlns:jsp="http://java.sun.com/JSP/Page"
            version="1.2">

<jsp:scriptlet>
	String url1="http://www.yahoo.com";
	String url2="http://www.lycos.com";
</jsp:scriptlet>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
            <title> Test  </title>
        </head>
        <frameset rows="*,*" border="0" framespacing="0" frameborder="NO">
            <frame src='%=url1%' name="url1"  marginwidth='0'
marginheight='0' scrolling='no' />
            <frame src="%=url2%" name='url2' marginwidth='10'
marginheight='0' scrolling='no' />
        </frameset>
    </html>
</jsp:root>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: JSP Document Support in Tomcat 4.x

Posted by Conor MacNeill <co...@cortexebusiness.com.au>.
Ragy Eleish wrote:
> Hi,
> 
> I wrote a JSP document that mixes JSP XML tags with XHTML tags as follows,
> where I used a JSP expression to calculate the XHTML tag's attribute value
> (src="%=url2%"). Jasper wasn't able to convert it correctly, it didn't
> recognize that this is a JSP expression but took the value as is. Meaning
> the final HTML was (src="%=url2%") and not (src="http://www.lycos.com").
> 
> The main purpose of mixing XHML and JSP tags is to get a well formed
> document.
> 
> I understand that the Spec is a little vague, but is there a plan to support
> that?
> 

I couldn't tell you - try asking this question on a tomcat list.

Conor




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>