Showing results 1 to 5 of 5
Search took 0.01 seconds.
Posts Made By: Melzy
Forum: JSP Oct 23rd, 2007
Replies: 2
Views: 1,178
Posted By Melzy
Re: How do I pass a value for an array element to a bean from a form?

please help me. :'(

I tried:
NAME="textFields["+i+"]"
NAME="textFields["+<%=i%>+"]"
NAME="textFields[i]"
NAME="textFields[<%=i%>]"

I'm running out of ideas. Could this approach be impossible? but...
Forum: JSP Oct 23rd, 2007
Replies: 2
Views: 1,178
Posted By Melzy
Question How do I pass a value for an array element to a bean from a form?

The class that my bean uses has an array textFields[407]. I have 407 textfields in my jsp file. I used a loop to make the textfields. So, it looks something like this:


<%for ( int i = 0; i <...
Forum: JSP Oct 23rd, 2007
Replies: 4
Views: 1,047
Posted By Melzy
Re: Can I pass data from forms w/o using a button?

Thanks for the suggestion. I found a JSP counterpart of that Javascript command. it's onchange=submit();

Thanks a lot. ^^
Forum: JSP Oct 23rd, 2007
Replies: 4
Views: 1,047
Posted By Melzy
Re: Can I pass data from forms w/o using a button?

I tried working on the onchange but the problem is what do I put in the Jsmethod since I don't know how to access the data in the dropbox. The "request.getParameter()" doesn't work.
Forum: JSP Oct 22nd, 2007
Replies: 4
Views: 1,047
Posted By Melzy
Question Can I pass data from forms w/o using a button?

I want to do a very simple task. I want to have a drop box and display (in the same page) the user input as soon as the user makes his choice. There must be no button involved. I dunno how to pass...
Showing results 1 to 5 of 5

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 10:26 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC