I have a html page with a radiobuttonlist.Based on the user's input on that I need to provide various input options..I have created JSP pages for the various options and was trying to use javascript.I am able to pass the input checked to the js script but couldnt proceed furthur.I am using struts2 framework.Can someone suggest some way of doing it
The basics are that, in the event handler for the user event that will trigger the change, you call the .load() method with the URL of the JSP for the fragment you wish to insert.
If you are unfamiliar with JavaScript, you have a long learning curve ahead of you.
jQuery is pure awesome.
An alternative is the Struts approach: it would be simple to have an action take the radio button input and forward to the appropriate JSP.
There are plenty of links to tutorials and documentation on our Struts FAQ page. If you are new to programming, your first step should be to familiarize yourself with the resources available and the basics of working with an API (be it Struts or jQuery or something else). You will save yourself a lot of grief in the long run if you build a strong foundation.