Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
Home » Development Group »» Java
  • tiles and forwards

    12 answers - 2253 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

    Where do you define the tiles? (Filename)
    How did you specify the filename to the tiles request processor/struts
    config?
    -DAvid
    Message
    From: rula2005 [mailto:rudolf_lang (AT) gmx (DOT) de]
    Sent: Friday, June 09, 2006 3:06 AM
    To: user (AT) struts (DOT) apache.org
    Subject: tiles and forwards
    Hi,
    I use struts 1.2 with tiles.
    There are a template layout.jsp, a tile locale.jsp and 2 tileDefinitions
    a.page and b.page.
    With the there are problems.
    In the locale.jsp: (language switch)
    <html:select property="language" size="1">
    <html:option key="label.de" value="de"/>
    <html:option key="label.en" value="en"/>
    </html:select>
    <html:hidden property="page" value="a.page"/>
    If the page attribute is set to a tilesDefintions it works, but if not
    occurs a exception:
    In the struts-config-xml:
    <action path="/processLanguage"
    name="languageForm"
    type="">
    <forward name="success" path="b.page"/>
    </action>
    Path does not start with a "/" character
    at
    (Application
    Context.java:377)
    at
    (Appli
    cationContextFacade.java:198)
    at
    (RequestProcessor.java:10
    56)
    at
    (TilesRequestProcesso
    r.java:263)
    at
    (RequestProces
    sor.java:386)
    at
    (TilesRequ
    estProcessor.java:318)
    at
    (RequestProcessor.java:229)
    at (ActionServlet.java:1194)
    at (ActionServlet.java:432)
    1.What is wrong? Why is the forward to the tilesDefinition b.page not valid
    ?
    I test it with it with a action and jsp as pathAttribute (witch starts with
    a "/") but the same Exception occurs.
    2.How can I get the actual tilesDefintion in the jsp (local.jsp) (Perhaps
    with jstl-core and EL)
    or in the action (LocaleAction.java) to set the pageAttribute to forward to.
    Best Regards rula
    To unsubscribe, e-mail: user-unsubscribe (AT) struts (DOT) apache.org
    For additional commands, e-mail: user-help (AT) struts (DOT) apache.org
    To unsubscribe, e-mail: user-unsubscribe (AT) struts (DOT) apache.org
    For additional commands, e-mail: user-help (AT) struts (DOT) apache.org

Re: tiles and forwards


max 4000 letters.
Your nickname that display:
In order to stop the spam: 0 + 0 =
SPONSORED
QUESTION

SPONSORED
EMSDN