Hi all:
Can anyone please tell me that how I can invoke a Jsp file within the body
of a JavaScript function AND pass an argument to the Jsp file? such as

function(file_obj) {
Window.location="MyFile.jsp";
}

I would like the MyFile.jsp to see the variable file_obj, and use it. But I
don't know how to make this happen.

Actually, I have two other related questions
Firstly, can I execute a Jsp statement within the body of a JavaScript
function? such as

function(file_obj) {
<% cb.setFile(file_obj); %>
}

I tried it. The compiler doesn't like it. Is there a way to do it? I really
need that functionality in my programming.

Secondly, oftentimes I need to invoke a Jsp page and pass an argument to it,
such as in the following HTML statement

<A HREF="MyFile.jsp">Click Me</A>
When I invoke that MyFile.jsp, I would like it to have an argument file_obj,
which is a Jsp variable <% File file_obj; %> defined and initialized earlier
in the same Jsp page.
Your help is appreciated. Thanks!

Tom



________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to