Hi all,
translating portion of old code which was using S1 and Tiles and 
ran into problem.

There is one tile representing form which is being used on almost all screens.
One doesn't want to write same tile over and over again since only name
of the action differs.

Existing code used this:

// define name of the action to be a passed from parent tile
<tiles:useAttribute name="formAction" />

then it was used like this:

<html:form action="<%= formAction.toString() %>" ......


I've changed this to use S2 tags:

<s:form action="<%= formAction.toString() %>"  .........

and jsp compilers complains:


JSPG0227E: Exception caught while translating /layout/formLayout.jsp:  
/layout/formLayout.jsp(11,1) --> JSPG0124E: Custom tag attribute action 
cannot be runtime expression. value: "[%= formAction.toString() %]"

Any ideas how to solve it?

Thanks,

Peter.

Reply via email to