JSP not compiling correctly [message #63318] |
Fri, 20 June 2003 13:22 |
Eclipse User |
|
|
|
Originally posted by: russ.sdsusa.com
I'm not sure if this is the right place for this, or if it should be
posted elsewhere, but thought I'd start here. I'm running Eclipse 2.1
with the sysdeo tomcat plugin. I'm also trialing MyEclipse, so it's got
the solareclipse plugin.
I'm having problems with a JSP not compiling correctly. The offending
code in the JSP is:
<select name="<%= dataBean.formTag_defaultVipAgent %>"
id="defaultVipAgent"
onchange="submitForm1('<%=dataBean.getVipCodeBase()%>SDSM0145?c= <%=dataBean.getJavaTickTime()%> &Panel=DefaultAgentSwitch&Action=DefaultAgentSwitch' ,'NoConfirmationNeeded'); ">
<% int nbrLines = dataBean.getVipNames().length;
for(int i = 0; i<nbrLines; i++) { %>
<option value="<%= dataBean.getVipNames(i) %>"
<%
if(dataBean.getVipNames(i).equalsIgnoreCase(dataBean.getDefa ultVipName()))
{ %>
selected <% } // end if%>
> <%= dataBean.getVipNames(i) %> </option>
<% } // end for %>
</select>
It's translating into the following HTML:
<select name="SdsFormData_defaultVipAgent"
id="defaultVipAgent"
onchange=" submitForm1('/sdsvip/servlets/SDSM0145?c=1056129285696&P anel=DefaultAgentSwitch&Action=DefaultAgentSwitch','NoCo nfirmationNeeded'); ">
<option value="O14"
O14 </option>
<option value="O14JEK"
O14JEK </option>
</select>
The closing '>' for the <option> tag does exist in the JSP but notice
the lack of the closing '>' in the HTML. The JSP got compiled into a
servlet that was missing the closing '>'.
Anybody have any idea why it's not working?
TIA
Russ
|
|
|
Powered by
FUDForum. Page generated in 0.06412 seconds