Hans Bergsten wrote:
>
> Tomas Lindehell wrote:
> >
> > I use a shtml page to separate the html layout from the
> > servlet code.
> > The servlet takes an htmlentryfield and makes an query
> > in a database.
> > The result is then presentated in a html table.
> > (I use JRUN on NT IIS and the code is done in VAJ20
> > ent.)
> >
> > The problem:
> > When i push the submit button (invoked by the servlet
> > in the shtml
> > page with a servlet tag) i just get a blank browser
> > page.
>
> I assume you mean that the ACTION in the FORM contains the
> URL for an shtml file with a <SERVLET> tag that invokes your
> servlet, right?
>
> > If i access the servlet direct (not through a shtml
> > page)
> > it works perfect and the search result table is
> > displayed.
> >
> > What are i doing wrong? Is there some example that you
> > know about
> > that could lead me on to the right track again?
> >
> > Thank's in advance. All responses are welcome in this
> > matter!
>
> What version of JRun are you using? There was a bug in 2.2.1 and
> the 2.3 Beta so POST data was not passed to an shtml file. Try with
> METHOD=GET in the FORM instead and see if it works. If so you're
> using a buggy version of JRun. I believe this problem is fixed in
> the released version of JRun 2.3
>
> --
> Hans Bergsten           [EMAIL PROTECTED]
> Gefion Software         http://www.gefionsoftware.com
>
> ___________________________________________________________________________
> 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

The problem is solved!

The solution:
1. Changed the FORM ACTION to point back to the same
shtml page as the servlet was invoked by.
2. Changed from POST to GET method. (We had the old
2.2.1 JRUN which i now have verified that it doesn't
support POST).

Many thank's Hans and other's that have mailed me
directly!
Best Regards Tomas Lindehell

___________________________________________________________________________
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