F
freshAtThis via JavaKB.com
Please help.
I wrote a servelet that is to display a word document from data directory.
----------------------
public void doPost(HttpServletRequest reqst,
HttpServletResponse respns)
throws ServletException, IOException {}
-----------------------
here is my piece from the jsp that needs to call the servlet
I have a link, by selecting that link, I should be able to call the
servelet.
-------------------------
<a href="doPost('<%=fileName%>')"> File to View: <%= fileList%> </a> <br>
------------------------
Am i doing it correctly?
How would I launch the servelet to open, read and display the file?
Will doPost get called?
Please help - I need all the help I can get.
Thanks in advance.
I wrote a servelet that is to display a word document from data directory.
----------------------
public void doPost(HttpServletRequest reqst,
HttpServletResponse respns)
throws ServletException, IOException {}
-----------------------
here is my piece from the jsp that needs to call the servlet
I have a link, by selecting that link, I should be able to call the
servelet.
-------------------------
<a href="doPost('<%=fileName%>')"> File to View: <%= fileList%> </a> <br>
------------------------
Am i doing it correctly?
How would I launch the servelet to open, read and display the file?
Will doPost get called?
Please help - I need all the help I can get.
Thanks in advance.