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
