This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
If you look at the url that the s:url tag generated, are those parameters in it, and do they have values? Also, are you running the modelDriven interceptor?
Joined: Sep 15, 2010
Thanks for reply.
I created one anchor button to check the url.
Generated HTML code is
Not able to know how to check generated url.
I implemented ModelDriven to my action.
Joined: Aug 29, 2008
I don't have experience with the ajax tags so I don't know what the easiest way to display that URL is, but I think its pushed onto the stack, so I think you can use an <s:property value="student"/> to write it out.
Using the interface isn't enough to make model driven work. You need to use the modelDriven Interceptor as well (its what calls getModel on your action class to put the model on the stack). If you don't have this interceptor in your stack I don't think your model will get populated. To test you can put a println in your getModel method to see if it ever gets called (unless you wrote some code to call it).