Hello All,
Now I am trying my hands on struts. I have wriiten simple application in struts and it is yet to be complete.
Whenever I pass ajax request in struts it give me error "SEVERE: Invalid path /pages/login was requested".
I know I am making blunder somewhere please help me to figure it out.
Welcome to JavaRanch! Please UseCodeTags when posting code or configuration. Unformatted code and configuration is unnecessarily difficult to read. You can edit your post by using the button.
David Newton wrote:Welcome to JavaRanch! Please UseCodeTags when posting code or configuration. Unformatted code and configuration is unnecessarily difficult to read. You can edit your post by using the button.
This doesn't really have anything to do with Struts yet, so I'm moving it to HTML/JavaScript.
1) Why are you using the "new" keyword? You should just be setting xmlhttp to the results of calling the function.
2) Why are you doing Ajax "by hand"? Use a JavaScript framework--it will make you life *much* easier.