Hi azeem,

  You said you are using Jswdk 1.0.Two files are attached below,one is the html
file from which you call the jsp and the other is the jsp file.In the action
element of the html file you should specify the path of the jsp file relative to
the docbase which you have set.For eg.i have set the docbase to c:\dheepa.I have my
jsp file in c:\dheepa.So in the action element i have to give it this way..
 http://localhost:8080/color.jsp

If the jsp file is in some other dir, give the path relative to the docbase.For
eg.if my jsp file is in c:\dheepa\test then, i would call the jsp  this way.
http://localhost:8080/test/color.jsp.
You need not create a dir called jsp.Hope this helps.

Regards,
Dheepa


Color.jsp

<html>
<jsp:useBean id="cc" scope="page" class="dheepa.ColorBean">
<jsp:setProperty name="cc" property="color" param="bg" />
</jsp:useBean>
<body bgcolor=<%=cc.getColor()%> >
<form action="http://localhost:5555/Color.jsp">
<input type="text" name="bg">
<input type="submit">
</form>

</body>
</html

ColorForm.html

<html>
<head>
<title>COLORFORM</title>
</head>
<body>
<FORM METHOD=GET ACTION="http://localhost:5555/Color.jsp">
  Background color
<INPUT TYPE=TEXT NAME="bg"><p>
  Foreground color
<INPUT TYPE=TEXT NAME="fg"<p>
<INPUT TYPE=SUBMIT>
</FORM>
</body>
</html

















AZEEM SALIM A wrote:

> Hi,
>
>         I have installed JSWDK 1.0. My Servlets are running fine. I have
> written an HTML page in which there is a post action to a JSP Page. What I
> want to know is where should I put (in which folder) the HTML and JSP.
> Should I need to create a folder JSP under the web-inf directory ??? or
> shall I put the HTML and JSP file in the servlet directory ????
>
> Thanks and regards,
> -------------------------------------------------------------------
> Azeem Salim, A
> Project Engineer
> Network Systems and Technologies (P) Ltd.
> Technopark Campus
> Trivandrum
> INDIA
>
> Phone: 91-471-417441                  Fax: 91-471-417442
> Email: [EMAIL PROTECTED]      WWW site : www.nestindia.com
> -------------------------------------------------------------------
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to