-
How to invoke jsp from javascript
I have a jsp say display.jsp which contains a check box. On click on checkbox i need to set a session variable by invoking another jsp.
With "self.document.location.href" the problem is when checkbxo is clicked, i can see setvarible.jsp loading. But i want the view to be on the same jsp(ie display.jsp) but just call setvariable.jsp in the background to set the value.
Can it be done?
//display.jsp
...
function set() {
if (if(document.forms[0].apply.checked = true)
self.document.location.href = 'setvariable.jsp';
}
....
in setvariable.jsp i just need to set a session variable like session.setAttrib(..); and nothing else.
the problem with is "self.document.location.href" is that it loads another page.
Similar Threads
-
By Maria Modeste in forum Java
Replies: 7
Last Post: 11-23-2010, 09:13 AM
-
Replies: 1
Last Post: 11-13-2005, 08:10 PM
-
Replies: 6
Last Post: 03-02-2001, 02:42 PM
-
By Murray Foxcroft in forum Web
Replies: 5
Last Post: 11-02-2000, 02:42 AM
-
Replies: 2
Last Post: 09-04-2000, 04:24 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks