aspose file tools*
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
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: 61774
    
  67

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: 61774
    
  67

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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Including a jsp on the same page by clicking a button