Hi all.

I've been struck all of a sudden with this. servletRequest.getRequestURL() returns null.

Now, thinking about it, I can give some facts that might shed some light on it and I'm pretty sure I know why it is happening, just want to confirm with you guys. And just wandering if anyone can tell *what* is happening. I repeat, I think I know the cause.

I'm building a Struts based application and I had a Struts Action that was, at one point, extracting the URL and playing with it. "All of a sudden" it stopped working, belching with NullPointerException. Same method, no change.

One thing that I DID change was Struts chaining. I have created another action that is in front of it and chains in on that one, without redirects. This effectively means that I have one active component, like a Servlet (OK, Struts Action is not *exactly* a Servlet, but it is very close), which forwards to another. It would appear, that the second component in the chain of request handling is either loosing or is never getting some request properties.

So, my questions are:

1. (obviously) Has anyone else seen this in Struts?
2. What would have happened in the case of real Servlets?

Suppose I create 2 Servlets, have one forward to another, will the second Servlet be able to get request.getRequestURL()? It could be that this is Struts' mucking around, but it could be that it is a feature of JSP/Servlet specification.

Nix.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to