I can't explain what you're seeing with the content switched around like
that. (What container are you using?)
However, regarding the use of jsp:param, you just need to use single
quotes around the value of the attribute. This should work:
jsp:param name=num value='%=request.getParameter(ID)%'/
--
Martin Cooper
At 07:33 AM 5/7/2002, Andrea Grittini wrote:
I have some problem using c:import together with jsp:include.
In fact when a page like this is compiled :
c:import url=include/boxEpNewsData.jsp
c:param name=ID%=request.getParameter(ID)%/c:param
c:param name=myDay value=${myDay} /
/c:import
p
jsp:include page=include/boxUltimeEpNews.jsp flush=false
jsp:param name=num value=20/
/jsp:include
I have the first part displayed after the second part, and it seems to
me impossible :-)
Looking in the generated java code of the page I have this:
_jspTagHandler4 = new
org.apache.taglibs.standard.tag.el.core.ImportTag();
_jspTagHandler4.setPageContext( pageContext );
_jspTagHandler4.setParent( null );
setProperty( _jspTagHandler4, url, include/boxEpNewsData.jsp,
java.lang.String );
try
{
_jspTagHandlerAction = _jspTagHandler4.doStartTag();
.import something
}
catch( Throwable t )
{
_jspTagHandler4.doCatch( t );
}
finally
{
_jspTagHandler4.doFinally();
}
if( _jspTagHandlerAction == Tag.SKIP_PAGE )
{
return;
}
_jspTagHandler4.release();
out.write( \r\n\t\t\t\t\tp\r\n\t\t\t\t\t );
pageContext.include( include/boxUltimeEpNews.jsp );
So my consideration is that the import tag works different from the
jsp:include and is displayed after the completion of the rest of the
page.
Unfortunately I cannot use only jsp:include because I got errors when
using
jsp:param name=num value=%=request.getParameter(ID)%/
Thank you
Andrea Grittini
Andrea Grittini ( mailto:[EMAIL PROTECTED])
Tel: +39-2-97482.1- Fax: +39-2-97482?
Computer Design S.r.l., Via Piave 46 - 20010 S.Stefano Ticino - ITALY
http://www.cdesign.it/
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]