File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes including page with a non-string object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "including page with a non-string object" Watch "including page with a non-string object" New topic
Author

including page with a non-string object

jonathan Greens
Ranch Hand

Joined: Apr 07, 2004
Posts: 139
Hi folks,
I am trying to do something similary to jsp:include but also want to include an attribute into the page. I tried the following:



where currentTest is a valid bean.

so on testLayout.jsp
I tried printing out all the request.getParameters() and all the attributes in the request and page scope. but neither test nor currentTest was there.
What am I missing?
thanks!
jonathan Greens
Ranch Hand

Joined: Apr 07, 2004
Posts: 139
I have also tried using tiles, unfortunately it seems like I can't use tiles inside other tags as the following:
[code]
<logic:iterate id ="currentTest" name="currentReport" property="tests">
<table>
<tr>
<tiles efinition id="testPage" page="layout/testLayout.jsp" >
<tiles:insert name="test" beanName="currentTest" ></tiles:insert>

</tiles efinition>
</tr>
</table>
</logic:iterate>
[/code
struts complained:
Can't insert page 'Test@22d09856' : Illegal to flush within a custom tag
any idea?
thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: including page with a non-string object