Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Passing parameters from a Tiles-tag attribute to JSP java scriptlets

843836Dec 23 2004 — edited Feb 16 2005
I have a page made of Tiles. I would like to pass the name of the root page to a
component page. One way I could do this is to create an attribute at
the root page bear that bears the name. An example would be :
<tiles:useAttribute name="mainPage" value="MainPage"/>.

At the component page, I would like to call a singleton with the name
of the root page as an input parameter:

<tiles:importAttribute/>
<%
Exec ex = ExecFactory.getExec([name of mainPage]);
....
%>

My problem is, I don't know how to put the value of mainPage from the
Tiles tag "domain", to JSP java code "domain".

Your help in whatever way would be more than appreciated.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 16 2005
Added on Dec 23 2004
2 comments
283 views