For Programmers: Free Programming Magazines  


Home > Archive > Java Beans > December 2004 > JSP Bean and XSSI Logic









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author JSP Bean and XSSI Logic
Stuart Palmer

2004-12-16, 8:57 am

Hi everyone, hope someone can help.

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


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com