Greeting All,

 

I am new to Struts and developing my first web application. I have stuck
into a decisive loop where-in I'm confused as to how should I create an
object of a class in my standalone JSP page.

 

What I want to do:

 

1.       I have a registerUser.jsp page which will accept userId,
Password, email and other relevant attributes to create an account.

2.       On the same page I am having a drop down (<html:select>) as
"Stream Name" which requests user to specify which Stream does he comes
from.

3.       The Values for this drop down has to come from the database;
for which I have create a standalone Java Class StreamList with a
function getStreamNames() which would return an ArrayList

4.       I want to create an object of the StreamList class and call the
function getStreamNames to populate the values for <html: select> drop
down.

 

Can anyone assist me with a better approach to achieve this; my only
intention is to avoid writing snippets.

 

Regards

 

Amit Oberoi


============================================================================================================================Disclaimer:
  This message and the information contained herein is proprietary and 
confidential and subject to the Tech Mahindra policy statement, you may review 
the policy at <a 
href="http://www.techmahindra.com/Disclaimer.html";>http://www.techmahindra.com/Disclaimer.html</a>
 externally and <a 
href="http://tim.techmahindra.com/Disclaimer.html";>http://tim.techmahindra.com/Disclaimer.html</a>
 internally within Tech 
Mahindra.============================================================================================================================

Reply via email to