S
Stuart Palmer
Hi everyone,
I am using a JSP bean to pull in values from a form. For technical reason I
cannot use any other JSP code to do anything else on the page, but I can use
XSSI code.
getAdditionalFieldValue is the bean function.
----------------------
My plan was this:
<%@set var="option_1" value="<%=getAdditionalFieldValue("option_1")%>"%>
<%@set var="option_2" value="<%=getAdditionalFieldValue("option_1")%>"%>
<br />
<%@echo var="option_1"%><br />
<%@echo var="option_2"%><br />
<br />
<%@if expr="($option_1 = Yes) && ($$option_1 != null)"%>
Option 1 selected<br />
<%@endif%>
<%@if expr="($option_2 = Yes) && ($$option_2 != null)"%>
Option 2 selected<br />
<%@endif%>
----------------
However, this doens't seem to work, I can't also use standard ssi inclue
code.
How can I achieve this same solution? Perhaps I have a code error that I am
having trouble spotting?
If I do something similar with perl, this solution works fine. However, on
this server I can only use JSP to pull values from the form via the bean.
Many thx for any help.
Stu
I am using a JSP bean to pull in values from a form. For technical reason I
cannot use any other JSP code to do anything else on the page, but I can use
XSSI code.
getAdditionalFieldValue is the bean function.
----------------------
My plan was this:
<%@set var="option_1" value="<%=getAdditionalFieldValue("option_1")%>"%>
<%@set var="option_2" value="<%=getAdditionalFieldValue("option_1")%>"%>
<br />
<%@echo var="option_1"%><br />
<%@echo var="option_2"%><br />
<br />
<%@if expr="($option_1 = Yes) && ($$option_1 != null)"%>
Option 1 selected<br />
<%@endif%>
<%@if expr="($option_2 = Yes) && ($$option_2 != null)"%>
Option 2 selected<br />
<%@endif%>
----------------
However, this doens't seem to work, I can't also use standard ssi inclue
code.
How can I achieve this same solution? Perhaps I have a code error that I am
having trouble spotting?
If I do something similar with perl, this solution works fine. However, on
this server I can only use JSP to pull values from the form via the bean.
Many thx for any help.
Stu