For the first question, think of it like this ... when writing a java app,
you either have to import the packages you want to use or you have to
specify the full name of the class in your code.  Example:
import java.io.*;

FileInputStream fis = new FileInputStream(...

or

// Don't import anything
java.io.FileInputStream fis = new FileInputStream(...

You may be used to importing packages and so have forgotten that you don't
HAVE to import anything so long as you specify the full classname.

The second question might have something to do with the placement of quotes
in your tag.  It might be getting confused and think that value="<%=
request.getParameter("
Make sense?

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Shweta Mathur
Sent: Tuesday, March 14, 2000 2:38 PM
To: [EMAIL PROTECTED]
Subject: JSP doubts


Hello,
   I have some jsp doubts. I would appreciate if you could help me with
that. I am using JSP1.0 on IBM's WebSphere.

Here are the problems:
Question 1: Suppose we are using a bean, the way we use it is
<jsp:useBean id="some_name" class="class_file_name" scope="session/.." />
My question is if i am not using a package name then do i need to import the
class file explicitly, like:
<%@ page import="class_file_name" %>
<jsp:useBean id="some_name" class="class_file_name" scope="session/.." />

If i have package name, then it easily found the class file otherwise only
if i import the class file, it could find it.

Question 2: In case when we use setProperty, can we use the
request.getParameter("xx") directly in the value, like:

<jsp:setProperty name="some_name" property="property_name"
value="<%= request.getParameter("param_name") %>" />
If i am using it this way, it always says: "Attrribute param_name has no
value"

BUT if i replace the above line with the following one then it is working
fine:

<% String dir=request.getParameter("param_name"); %>
<jsp:setProperty name="some_name" property="property_name"
value="<%= dir >" />

Thanks in advance.
Shweta

______________________________________________________
Get Your Private, Free Email 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

===========================================================================
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