• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to use servlets/JSP/EJB ???  RSS feed

 
Yell Srik
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
consider the XML file given below:
<?xml version="1.0" encoding="ISO-8859-1"?>
<userselection>
<map id="1">C:\My Documents\usa.jpg</map>
<map id="1">C:\My Documents\euro.jpg</map>
<data id="1">C:\My Documents\dat1.txt</data>
<data id="2">C:\My Documents\dat2.txt</data>
</userselection>
using HTML/Javascript, i have created a form from which user can select any one of the two jpg images and any one of the two text files.
i want to know whether it is possible to use a server-side program like JSP/Servlet/EJB that creates another XML file that contains only the selections made by the user.
ie say for eg, the user has selected "usa.jpg" and "dat1.txt".
now can a servlet/JSP/EJB be used to generate a XML file that contains only these selections
also how can create a JSP/Servlet page that interprets the above XML file and extracts only the selections made by the user
since i am new to JSP/Servlets, i am finding it difficult to proceed.
thanks in advance
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!