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