• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

servlets/JSP

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic