aspose file tools*
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
Author

Problem generating html from servlet tags

Mark Modaressi
Greenhorn

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:
http://129.2.210.250/cust_update.shtml
Thanks,
------------------
Mark Modaressi
TypeR673.com
K2K Motorsports


Mark Modaressi<BR><A HREF="http://www.typer673.com" TARGET=_blank rel="nofollow">TypeR673.com</A><BR><A HREF="http://www.k2kmotorsports.com" TARGET=_blank rel="nofollow">K2K Motorsports</A>
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Problem generating html from servlet tags
 
Similar Threads
What's main diff between HTML and XML
Problem in configuring struts application
Strange problem in retrieving the table data in a jsp
Help !! Problem with Model -2 Framework
Browser Path Not Refreshing