This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes Including a jsp on the same page by clicking a button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Including a jsp on the same page by clicking a button" Watch "Including a jsp on the same page by clicking a button" New topic
Author

Including a jsp on the same page by clicking a button

R Laksh
Greenhorn

Joined: Aug 27, 2003
Posts: 25
Hi,

I have a jsp page where there are many controls and some buttons. If I click a buton called "Edit" I need to include a jsp page below the existing controls.

Can someone please tell me how to do that?

<tr>
<td>
<a><img name="View" src="view.gif" border="0"/></a>
<a><img name="Edit" src="edit.gif" border="0"/></a>
</td>
</tr>

this is thecode which I have for buttons in my page

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

There is no JSP mechanism that can help you with this. However, there are HTML and Javascript solutions. So.... moved to the HTML/Javascript forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

You can use an iframe to load the new page, or use Ajax to grab the page and include it at the appropriate point in the DOM.
[ December 28, 2005: Message edited by: Bear Bibeault ]
 
wood burning stoves
 
subject: Including a jsp on the same page by clicking a button