
February 19th, 2002, 12:44 PM
|
|
Contributing User
|
|
Join Date: Feb 2001
Posts: 68
Time spent in forums: < 1 sec
Reputation Power: 8
|
|
|
Java tag inside JSP include action???
not sure how to explain my problem...
i have some tags that retrieve file path's to pages that need to be included inside a JSP page... the tags return a path that needs to go inside of a JSP action... for example
<jsp:include page="<MyTag pageNumber=4/>" flush="true" />
the MyTag is returning the proper path, but the include page is not seeing the path.. i have tried every way possible with quotes (i think) to wrap the 4 in (because attributes are supposed to have quotes) but i couldnt get it to recognize the variable...
i also tried making my tag that loads the pages into a hashmap load the same set of path's into the session... from there i would try this
<jsp:include page="<%(String)session.getAttribute("4"); %>" flush="true" />
or whatever.. anyhow... none of this worked.. the only way i could get it to work was to declare strings in my JSP page and set them to the session attributes and then throw the string variables in my jsp includes...
i want to know if anyone has ever been able to use a TAG inside of the <jsp:include page="TAG"> before?
|