You didn't explicitly mention it,, but I'll assume you're using mod_webkit
as the adapter.
Are you using the webkit-handler method with a separate WebKit context, with
lines like this in your httpd.conf:
<Location /WK>
WKServer localhost 8086
SetHandler webkit-handler
</Location>
or are you using the psp-handler method to have WebKit process psp files in
your document tree:
AddType text/psp .psp
AddHandler psp-handler .psp
The webkit-handler method should work. The psp-handler method is known to
NOT work with .forward(), .includeURL(), and .callMethodOfServlet().
- Geoff
> -----Original Message-----
> From: Brett Funderburg [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 12, 2002 4:35 PM
> To: [EMAIL PROTECTED]
> Subject: [Webware-discuss] Application.forward from PSP pages
>
>
> When I call Application.forward from a PSP file I get a 404 error from
> Apache that the redirected page cannot be found. This is
> because the forward
> method's url rewriting code appears to be geared toward use
> of a .cgi module
> with servlets.
>
> So, for example in source.psp, the statement app.forward(trans,
> 'target.psp') results in '404
> source.psp/var/www/html/target.psp not found.'
> I understand how this would be correct if I was using a
> cgi-bin/WebKit.cgi/Context/Servlet uri.
>
> I'm trying to implement the SecureCountVisit example (from
> WebKit/Examples)
> but using PSP instead of servlets.
> It seems like in the example code, that the forward method is
> able to cause
> the login form to be displayed without setting an action
> parameter on the
> form and without actually changing the servlet from
> SecureCountVisits to
> LoginPage. This has the effect of having the form's action
> parameter refer
> to itself (which causes the SecureCountVisit servlet to be
> called to handle
> the login)
>
> How do you make Application.forward write the correct url
> when using PSP
> instead of directly calling servlets? I think I can see how
> sendRedirect
> could be used to work around this but I'd like to avoid this
> if possible
> since it seems like I'd have to write more code to pass
> variables around in
> the request object so that the state stays correct.
>
> brett
>
>
>
> _______________________________________________________________
>
> Sponsored by:
> ThinkGeek at http://www.ThinkGeek.com/
> _______________________________________________
> Webware-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
>
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss