Isak,
You can also just import a Java class and invoke methods on it.  Depending
on your application, the JavaBean solution just might be easier.

-Richard

At 08:49 PM 9/19/01 +0700, you wrote:
>Thank's for your input , I will try it..
>
>but ... is there another way?
>or the solution only with java bean?
>
>----- Original Message -----
>From: "Richard Yee" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Friday, September 21, 2001 1:19 AM
>Subject: Re: Include JSP file to show form
>
>
> > Isak,
> > You need to use a JavaBean to store the contents of the form.  You can use
> > the setProperties directive to automatically populate the member variables
> > in the bean and also use the bean accessor methods in scriptlets in you
> > form input tags.
> >
> > ie.
> > Instead of:
> >          <input type="text" name="nama" value="<%=nama%>">
> > you  would use
> >          <input type="text" name="nama" value="<%= myBean.getNama() %>">
> >
> > Check the archives too.  Its been described many times there.
> >
> > -Richard
> >
> > At 10:15 PM 9/18/01 +0700, you wrote:
> > >Hello all
> > >
> > >I have edit.jsp code to EDIT AND VIEW member DATA...
> > >In this code there are links to EDIT and VIEW member DATA
> > >I use jsp:forward to VIEW member data and it is run well
> > >
> > >but i use the same file(edit.jsp)  to view the form with <jsp:include> to
> > >include FORM to EDIT DATA...
> > >and I want to use  edit.jsp to be the action file to process the form...
> > >
> > >My code (edit.jsp) is running well.. but there is a problem..
> > >
> > >If I submit the form, the code like this (this code is in included file)
> > ><%
> > >String nama="";
> > >String pass="";
> > >String email="";
> > >String alamat="";
> > >String kota="";
> > >String kodepos="";
> > >String propinsi="";
> > >String telepon="";
> > >%>
> > ><form method="post" action="edit.jsp?aksi=edit">
> > ><table width="100%" border="1">
> > >     <tr>
> > >       <td colspan="3">Form Edit Anggota</td>
> > >     </tr>
> > >     <tr>
> > >       <td width="8%">1</td>
> > >       <td width="22%">Nama</td>
> > >       <td width="70%">
> > >         <input type="text" name="nama" value="<%=nama%>">
> > >       </td>
> > >     </tr> .. bla..bla..
> > >
> > >When I submit... my edit.jsp process this form well...
> > >but I want to show the form again... filled with the value which has been
> > >submitted...
> > >so the user do not need to fill all of the form again......
> > >but my program always show the blank form .......
> > >I had found that if i include the form... I must declare the variable
> > >first...
> > >so I declare it in the included file because if I declare it on edit.jsp
>it
> > >is useless...
> > >because it show error
> > >
> > >Anyone can help me?
> > >
> > >Than'ks for your attention
> > >
> >
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
>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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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