problem s presmerovanim pri pouziti Tiles

Jiří Mareš Jiri.Mares na svt.cz
Pondělí Leden 12 10:15:49 CET 2004


Takhle se normalne provadi forward na tiles definici, takze pokud nyni 
provedete forward na /mainpage, pak to pojede.

Ivan Polak wrote:
> vdaka, ja mam knihu o`Reilly : Programmimg Jakarta Struts tam bolo napisane
> ze to ide, ale asi nie.
> 
> nepojde to ani ked doplnim do struts-config.xml toto ? :
> 
>   <action path="/mainpage" type="org.apache.struts.actions.ForwardAction"
> parameter="mainpage"/>
> 
>   <controller
>        processorClass="org.apache.struts.tiles.TilesRequestProcessor"
>   />
> 
>   <plug-in className="org.apache.struts.tiles.TilesPlugin" >
>     <set-property property="definitions-config"
>                   value="/WEB-INF/tiles-defs.xml" />
>     <set-property property="moduleAware" value="true" />
>     <set-property property="definitions-parser-validate" value="true" />
>   </plug-in>
> 
> -----Original Message-----
> From: konference-bounces na java.cz [mailto:konference-bounces na java.cz]On
> Behalf Of Pavel Kolesnikov
> Sent: Monday, January 12, 2004 10:04 AM
> To: Java
> Subject: RE: problem s presmerovanim pri pouziti Tiles
> 
> 
> 
>><logic:forward name="mainPage" />
>>
>>Mam v konfiguracnom subore v sekcii global-forwards definovane
>>
>><forward name="mainPage" path="mainpage" />
>>
>>a v subore tiles-definition.xml definovane
>>
>><definition name="mainpage" path="/layout/layout.jsp">
>>      <put name="body" value=""/>
>></definition>
>>
>>nevie najst "Could not find ActionForward for name mainpage".
>>
>>neviete pomoct kde je chyba ?
> 
> 
> Musite se kouknout jeste na dokumentaci toho tagu
> logic:forward:
> 
> http://jakarta.apache.org/struts/userGuide/struts-logic.html#forward
> 
>   Note: forwarding to Tiles definitions is not supported from
>   this tag. You should forward to them from an Action subclass.
> 
> A kdyz se nad tim zamyslite, neni se cemu divit - tiles
> definuji logicka jmena sablon, ale ne skutecna funkcni
> URL - tech docilite jen pomoci akci. A "forward" prece
> znamena presmerovani klienta na jine URL.
> 
> Pavel Kolesnikov
> http://www.jablok.cz/
> 
> 

-- 
Jiří Mareš (mailto:Jiri.Mares na svt.cz)
ČSAD SVT Praha, s.r.o. (http://www.svt.cz)
Czech Republic



Další informace o konferenci Konference