JSP and XSSI Logic

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top