I think the same thing is not working in both WEBLOGIC
and Resin?? Any one tried??
But property=* will make this work.. I tried it in
WEBLOGIC.
Some one help me out..
Cheers,
Venu
--- vivek tiwari <[EMAIL PROTECTED]> wrote:
> Try this . it should work :
>
> <jsp:setProperty name="Smart" property="name"
> value="<%=request.getParamter('name') %>" />
>
>
>
> Vivek
>
>
> --- J S Gaidu <[EMAIL PROTECTED]> wrote:
> > I have this problem . Unable to find any documents
> > to solve , so please help
> > I have one html page , one jsp page with a bean .
> It
> > is very simple
> > HTML PAGE does nothing except getting the value of
> > field name as follows
> > and calling jsp page smart.jsp In this jsp page
> > there is bean Smart Bean ,
> > having one getter & setter method.
> > When I use this statement <jsp:setProperty
> > name="Smart" property="*" />
> > the bean gets initialised correctly but when I try
> > <jsp:setProperty name="Smart" property="name"
> > value="<%request.getParamter("name") %>" /> I get
> > Error saying Attrivute
> > name has no value. Can somebody give me the syntax
> >
> >
> > <HTML>
> > <FORM METHOD=POST
> > ACTION="http://abc:8080/smart.jsp">
> >
> > <TD ALIGN="top">First Name:</TD>
> > <TD ALIGN="left"><INPUT TYPE="text" NAME="name"
> > VALUE=""
> > SIZE="20"></INPUT></TD>
> > </TR>
> > <TR BGCOLOR=#FF99FF>
> > <TD ALIGN="center" COLSPAN=2>
> > <INPUT TYPE="Submit" VALUE="Submit">
> > <INPUT TYPE="Reset" VALUE="Reset">
> > </TD>
> > </HTML>
> >
> > JSP PAGE
> >
> > <BODY BGCOLOR="#FFFFFF">
> > <%@ page language="java" import="Smart.*" %>
> >
> > <BR>
> > <jsp:useBean id ="Smart" class="Smart"
> > scope="request" />
> > <jsp:setProperty name="Smart" property="*" />
> > </BODY>
> > </HTML>
> >
> >
> > SimpleBean.java
> >
> >
> >
> > import java.io.*;
> > import java.lang.*;
> >
> > public class Smart {
> >
> > String name = "";
> >
> > public String getName () {
> > return name;
> > }
> >
> > public void setName (String name) {
> > this.name = name;
> > }
> > }
> >
> >
> >
> > J S GAIDU
> > email: [EMAIL PROTECTED]
> >
> >
>
===========================================================================
> > 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
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Messenger - Talk while you surf! It's FREE.
> http://im.yahoo.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
__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf! It's FREE.
http://im.yahoo.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