Hello;
Ans of First Question is.
You can also Use To Other methods that are in RequestDispatcher Class in
servlets 2.3.
the methods are include(req,res) and forward(req,res) u can forward the
request to some other page with same request and response object. for more
detail please see the following link
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets9.html

For your 2nd question
You can use any client side script to submit a form without having any
button in that form. u simple have to invoke that javascrip function on
specified action and in that script u can submit that form

Bye

Mazhar Saeed
Software Engineer
Advanced Communication (Pvt.) Limited
http://advcomm.net
http://advancedispbilling.com
----- Original Message -----
From: "Miroslav Šimko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 28, 2002 3:35 AM
Subject: servlets communication


> Hello,
> I'd like to communicate among servlets.
> I tried to use parameters, like
> res.sendRedirect("servlet1?par1="+val1+"&par2="+val2). This worked quite
> good, but it is a little bit uncomfortable. Isn't there another( and
> standard) way how to communicate?
> I have also another problem, which I cannot solve. I'd like to have a form
> with no input types just one button( type=submit). I tried add to the
forms
> action the text "servlet1?par=val1", but it didn't work. After hitting the
> button, it worked just like the action was "servlet1". I heared about
hidden
> editboxes, but there should be better solution.
> Also, I'd like to share information among servlets - one servlet will
store
> data and other servlets will read and write to this data. I don't know,
what
> is standard way, I did it this way - servlet1 has static member data and
> another servlets from the same package can access this member by
> servlet1.data. While testing, I just have to load the servlet1 into
servlets
> container before accessing data from another servlets, and then it worked.
> Is it good or bad?
> Thanks for any input.
> Miro
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to