aspose file tools
The moose likes Teachers' Lounge and the fly likes servlets/JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Books and Education » Teachers' Lounge
Reply Bookmark "servlets/JSP" Watch "servlets/JSP" New topic
Author

servlets/JSP

jjk jjk
Greenhorn

Joined: Feb 27, 2006
Posts: 1
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
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.


Android appsImageJ pluginsJava web charts
 
IntelliJ Java IDE
 
subject: servlets/JSP
 
Threads others viewed
how to get object of this below chart and write in to pdf here strXMl is string of xml
can any body tell how to store check box value in session
Applet not loaded in jsp
Whats wrong with this code?
jsp:plugin using applet & mayscript
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture