Hello,

I got a bit lost while using sitemesh
(http://www.opensymphony.com/sitemesh/)
and webwork together. If you are using these two marvellous products then
please help me on the track again.

I have action called MyAction and it returns view named myaction.jsp.
MyAction has a property 'String myProperty' with getter and setter methods.
In myaction.jsp I can use <webwork:property value="myProperty" /> tag to get
value of myProperty in MyAction. Nothing fancy this far (ie. it has nothing
to do
with sitemesh).

Now I define a sitemesh decorator page that should decorate all of my
requests.
Decorator page adds some look and feel to the page and calls
<decorator:body /> to include actual requested content.

And here comes my problem. I would like to use <webwork:property /> tag
from within my decorator page to get properties of MyAction. Where in the
valuestack are they?

My decorator page looks like this:

<%@ taglib uri="sitemesh-decorator" prefix="decorator" %>
<%@ taglib uri="webwork" prefix="webwork" %>

<html>
<head>
    <decorator:head />
</head>
<body>

    <!-- here I would like to use properties of MyAction. How? The following
returns nothing -->
    <webwork:property value="myProperty" />

    <decorator:body />
</body>
</html>


with best wishes,
Taavi



_______________________________________________
Webwork-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webwork-user

Reply via email to