D
DaFoot
Probably not a very good subject, but best I could come up with!
I have some JSTL in a (struts backed) JSP that creates a statement on
the page like this:
So I would get something like this in the page:
Some text <form.CLI.value> more text [at least<var>|between<var> and 8|
up to <var>]
I need to find a way to save that entire output string to another
action form property. Simple assignments should be an issue, but I
have no idea how to concat strings into a property using JSTL
(alternatively could use a java scriptlet in the page, but trying to
move away from that approach).
Any suggestions gratefully received.
I have some JSTL in a (struts backed) JSP that creates a statement on
the page like this:
Code:
Some text
${registrationForm.map.CLI} more text
<c:choose>
<c:when test="${registrationForm.map.responseCode eq 'Lin-2a'}">
at least ${registrationForm.map.displayableMax}.
</c:when>
<c:when test="${registrationForm.map.responseCode eq 'Lin-2b'}">
between ${registrationForm.map.displayableMax} and 8.
</c:when>
<c:otherwise>
up to ${registrationForm.map.displayableMax}.
</c:otherwise>
</c:choose>
So I would get something like this in the page:
Some text <form.CLI.value> more text [at least<var>|between<var> and 8|
up to <var>]
I need to find a way to save that entire output string to another
action form property. Simple assignments should be an issue, but I
have no idea how to concat strings into a property using JSTL
(alternatively could use a java scriptlet in the page, but trying to
move away from that approach).
Any suggestions gratefully received.