C
Colin Northway
I'm using jsp as a front end to a java application
In the application I have several instances of the same class.
I want to be able to present the user with an html menu of these objects and
have them choose a distinct instance.
How do I represent a particular instance of a class in my html form?
Simple eg:
I have instance A and B wich are both of the same class.
I have a jsp file create an html menu wich looks something like this:
<form action="this.jsp">
<select name="selectInstance">
<option>A</option>
<option>B</option>
</select>
</form>
I then want to proccess this form and discover wich one of the two instances
the user is refering to.
I would rather avoid giving each instance a unique ID. I'm dealing with a
large number of objects and the table of all objects would be large and hard
to maintain.
I'm open to creative suggestions.
Thanks
Colin Northway
In the application I have several instances of the same class.
I want to be able to present the user with an html menu of these objects and
have them choose a distinct instance.
How do I represent a particular instance of a class in my html form?
Simple eg:
I have instance A and B wich are both of the same class.
I have a jsp file create an html menu wich looks something like this:
<form action="this.jsp">
<select name="selectInstance">
<option>A</option>
<option>B</option>
</select>
</form>
I then want to proccess this form and discover wich one of the two instances
the user is refering to.
I would rather avoid giving each instance a unique ID. I'm dealing with a
large number of objects and the table of all objects would be large and hard
to maintain.
I'm open to creative suggestions.
Thanks
Colin Northway