How can I access my variable that is defined in JSTL from standard
JSP? How about the opposite (from JSP to JSTL)?
I tried the following
<c:set var="a" value="5" />
Here I will try to output a :: <%= a%>.
That would give me an error that 'a' is not defined.
Yes if I output it using JSTL
<c
ut value="${a}" />
That of course would work fine.
Also, is it possible for me to embed HTML tags as part of a variable so I can dynamically generate forms?
For example, what I would like to do is something like this...
<c:set var="varX" value="<option value=""" />
<!-- not sure if "" is the correct way to escape a quotation?, this is how I would do it in ASP; I'm still new to JSP though... -->
<c:set var="varY" value="${a}" />
<c:set var="varZ" value=""">" />
<c
ut value="${varX}${varY}${varZ}" />
Some Text Here
</option>
That is the basic idea of want I want to do, but the above code does not actually work...