Passing parameters from a tiles-tag attribute to JSP java scriptlets.

Discussion in 'Java' started by Ken Loh, Dec 22, 2004.

  1. Ken Loh

    Ken Loh Guest

    I would like to pass the name of the root page of a tiles 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(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.
     
    Ken Loh, Dec 22, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. VisionSet
    Replies:
    0
    Views:
    3,813
    VisionSet
    Aug 16, 2003
  2. Rich M
    Replies:
    0
    Views:
    2,056
    Rich M
    Mar 5, 2004
  3. Replies:
    6
    Views:
    904
    Tim B
    Nov 15, 2005
  4. anisha
    Replies:
    0
    Views:
    365
    anisha
    Nov 10, 2008
  5. Replies:
    2
    Views:
    2,271
Loading...

Share This Page