Doh...stupid mistake. My redirect servlet doesn't have a doPost() method. However, this only dawned on me after writing all the stuff below, so I'll send it anyway in case somebody can spot any other bits of lunacy in the scheme below:
On 10/24/07, Brian Silberbauer <[EMAIL PROTECTED]> wrote: > > > It sounds like a security setting on your container, are you using tomcat? I am...version five-point-oh-something...5.0.28 Come to think of it, that would create a nightmare if you want to > distribute the plugin elsewhere. Maybe you could put everything in a > jar file and put the jar in the WEB-INF/lib directory? How would I refer to JSP/GSP view pages that were sitting in that jar? I'd appreciate advice on a better way to package the "modules" I describe below... Here's what I'm trying to do...I'm writing a captive portal type thing around squid proxy redirection. The webapp has a thread that listens for squid redirector requests over a UDP socket. The redirect requests get processed by something that implements the urlRedirector interface which either allows the request or returns a url that is sent back to the user as a redirect, e.g. a login page (or a "you're out of money/time page" or a "here's an important message from our sponsor" page, or...). I want to package each of these "redirection activities" as a module, which will consist of - a class that implements urlRedirector - the various view pages...login form, successful login, display current balance, etc. - any support classes ...and each module is supposed to live in a directory like WEB-INF/classes/q3/redir/$MODULENAME (then there's a urlRedirManager that all the urlRedirectors are registered with that passes each redirect request down the chain of redirectors). At the moment I'm just using a servlet mapping for *.redir so that something like /QUORUM3/login/userDetails.gsp.redir gets forwarded to /WEB-INF/classes/q3/login/userDetails.gsp. But, when I try and post from there to checkLogin.gsp.redir, I get told that I can't POST to that URL. ...oh, for @#%$^#$ sake. Thanks, I see my idiot mistake -- the redirector servlet doesn't have a doPost() method. Doh. Well, it obviously helped just writing this all out. I suppose it's a forgivable oversight normally...but I have been down and out with a bronchial bug that seems to already be wise to the ways of some antibiotics and am a bit fuzzy...unfortunately I only get to do this kind of coding when I stay home sick. Brian > > > On 10/24/07, Soren Aalto <[EMAIL PROTECTED]> wrote: > > I have a servlet & mapping that does a request dispatcher forward > > to pages sitting under my WEB-INF/classes directory. > > > > The idea is that I want to have some logic classes and views > > bundled together in the same directory as "plugin module" > > for the webapp in question. > > > > However, when I do a POST to any of these pages, I get > > a > > > > HTTP Status 405 - HTTP method POST is not supported by this URL. > > > > Doing a POST to a JSP/GSP page sitting "above" WEB-INF is > > fine. > > > > Is there some trick here -- it seems to me the issue must > > be the requestDispatcher.forward(...)? > > > > -- > > Soren Aalto > > Director: ICT > > University of Zululand > > > > -- > > Soren Aalto > > Director: ICT > > University of Zululand > > > > > > > > -- > Brian Silberbauer > Consultant > > +27 (0)83 566 2705 > skype: brian.silberbauer > http://www.linkedin.com/in/briansilberbauer > > > > -- Soren Aalto Director: ICT University of Zululand -- Soren Aalto Director: ICT University of Zululand --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CTJUG Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/CTJUG-Forum For the ctjug home page see http://www.ctjug.org.za -~----------~----~----~----~------~----~------~--~---
