I've a problem I can't seem to find anything about...
I have a few JSPs with forms containing an array of input:
<form name="inputform">
<b>Keywords</b><font face="Arial, Helvetica, sans-serif"
size="2"><b><br></b></font>
1) <input type="text" size="70" maxlength="1024" name="keywords"><br>
2) <input type="text" size="70" maxlength="1024" name="keywords"><br>
3) <input type="text" size="70" maxlength="1024" name="keywords"><br>
4) <input type="text" size="70" maxlength="1024" name="keywords"><br>
5) <input type="text" size="70" maxlength="1024" name="keywords"><br>
6) <input type="text" size="70" maxlength="1024" name="keywords"><br>
7) <input type="text" size="70" maxlength="1024" name="keywords"><br>
8) <input type="text" size="70" maxlength="1024" name="keywords"><br>
</form>
I submit this form to a 2nd JSP for processing...
<jsp:useBean id='aBean' scope='session' class="my.pkg.ABean'/>
<jsp:setProperty name="aBean" property="*" />
The bean has a setter method which passes the parameter array into a List...
public void setKeywords(String [] keyWords) {
keywords.clear();
for (int i=0; i<keyWords.length; i++) {
if (keyWords[i].length() > 0) {
keywords.add(keyWords[i]);
}
}
}
Everything works fine when I compile using the IBM JDK and Tomcat 3.2/4.0 on Intel
But that combination does not work on Solaris/Mac OS platforms, or on the Intel
platform when using JDK 1.3.1. The input values are simply lost. Everything else in
the application seems to work just fine. Just this problem with String [] parameters.
Does anyone know something about this issue?
thanks,
dave
==========================================================================To
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com