I need a servlet that during initialization reads a txt file into an ArrayList The file format is like below elementA1|elementB1 elementA2|elementB2 ......... .......... and then display the content of of the first element in a drop down list in order for a user to choose from. Then, when the user has chosen I want to forward him/her to another JSP page where these 2 values are written as a parameters in a jsp plugin like below <jsp:plugin type=applet ..... .... <jsp:param name=param1 value="${elemenA}"/> <jsp:param name=param2 value="${elementB}"/> ....... ........ (Marilyn fixed smileys to no-smileys) [ February 27, 2006: Message edited by: Marilyn de Queiroz ]
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 32769
posted
0
Hello "jjk jjk"-
Welcome to JavaRanch.
On your way in you may have missed that JavaRanch has a policy on display names, and yours does not comply with it - please adjust it accordingly, which you can do right here. Thanks for your prompt attention to this matter.
I'm not quite sure what your question is about specifically - the reading of a file, the generating of an HTML form containing the parameters, the processing of those parameters in a servlet, or the forwarding to a JSP page that generates the plugin tag? We have separate forums for each of these areas, while the Teacher's Lounge -the forum you posted the question to- is not about answering programming questions. Please clarify what you need help with, and we'll move the question to a more appropriate forum.