Geeks Talk

Prepare for your Next Interview




Use JSP implicit object with Java script

This is a discussion on Use JSP implicit object with Java script within the JSP forums, part of the Web Development category; Hello, greetings, can we use JSP implicit object with java script method like"request.getElementById("")". And if we can use this then what will be return ...


Go Back   Geeks Talk > Web Development > JSP

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 03-28-2008
Junior Member
 
Join Date: Mar 2008
Location: Bangalore
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
ranjan_ashish26 is on a distinguished road
Use JSP implicit object with Java script

Hello,
greetings,

can we use JSP implicit object with java script method like"request.getElementById("")".
And if we can use this then what will be return type of this line of codeing. And one more thing can we use this in side JSP page.
Help me please, Thanks.

Warm Regards
Ashish
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-23-2008
Junior Member
 
Join Date: Nov 2007
Posts: 13
Thanks: 2
Thanked 1 Time in 1 Post
akshatakpurohit is on a distinguished road
Smile Re: Use JSP implicit object with Java script

hi,
You can definitely use this inside jsp.

Example:
<script language="javascript">
function abc(){
var pqr= document.getElementById("firstName").value;
}
</script>


hope this will help.
Reply With Quote
  #3 (permalink)  
Old 06-09-2008
Junior Member
 
Join Date: May 2008
Location: chennai
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
sivaraj.dak is on a distinguished road
Re: Use JSP implicit object with Java script

if jsp implicit oject that ur speaking is so what like this request.getAttribute("name") then javascript u can call it as expr..
<% String name_scriplet = (String)request.getAttribute("name"); %>
<script>
var name ="<%= name_scriplet%>";
</script>
Reply With Quote
Reply

  Geeks Talk > Web Development > JSP


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
How to create an activeX object in VB Script? chennaprashanth QTP 1 03-17-2008 02:05 AM
Is null an object in java ? sudeep.batra Java 2 11-30-2007 01:31 AM
Where can we use exactly exception implicit object naggeek JSP 1 08-31-2007 01:26 AM
While testing an object what type of script is generated? Geek_Guest QTP 0 06-20-2007 02:41 AM


All times are GMT -4. The time now is 05:02 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved