File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Problem generating html from servlet tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem generating html from servlet tags" Watch "Problem generating html from servlet tags" New topic

Problem generating html from servlet tags

Mark Modaressi

Joined: May 05, 2001
Posts: 6
I'm trying to call a java servlet from within a form in a html webpage using servlet tags (<servlet></sevlet> ). Each tag performs a different action so it's like servlet?action=firstname, etc.
The servlet pulls up all the customer information like name, address, etc, puts them in text boxes and allows them to update anything they need. It pulls the customer info based on the cookie, but even when a customer is logged in the page says that he/she is not logged in. The thing is if you cut and paste the servlet address to the browser it'll pull up the info just fine. The problem must be with the cookie, but I can't figure out what it is.
For reference, the cookie appears to work otherwise. We made a test page to see if the cookie works and it has. Maybe the problem is how the servlet is called?
Does anyone know how to get around this. I don't want to have to generate the whole page from the servlet if I don't have to.
Here's the page w/ problems so you can see what I mean:
Mark Modaressi
K2K Motorsports

Mark Modaressi<BR><A HREF="" TARGET=_blank rel="nofollow"></A><BR><A HREF="" TARGET=_blank rel="nofollow">K2K Motorsports</A>
I agree. Here's the link:
subject: Problem generating html from servlet tags
It's not a secret anymore!