*
The moose likes JSP and the fly likes Is it possible to get the actions of all jquery functions in JSP page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Is it possible to get the actions of all jquery functions in JSP page" Watch "Is it possible to get the actions of all jquery functions in JSP page" New topic
Author

Is it possible to get the actions of all jquery functions in JSP page

sudheer yathagiri kumar
Ranch Hand

Joined: Mar 22, 2011
Posts: 35
Hi to all,
I am new to Jquery and Jsp,
in the program i want drop down menu having onmouseover functinality which is very easily done in jquery.
Is it possible to get that action on JSP .
Can please send support links appreaciate.

Thanks for your replay in advance
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61106
    
  66

JSP has nothing to do with jQuery at all. JSP is just a templating mechanism to create HTML pages. So once it's at the browser, it's just an HTML page like any other, and jQuery can be used.

Read this article to understand how JSP operates.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
sudheer yathagiri kumar
Ranch Hand

Joined: Mar 22, 2011
Posts: 35
Bear Bibeault wrote:JSP has nothing to do with jQuery at all.


Dear Bear Bibeault,

Sorry for my innocent question,

If i am using javascript,jquery,html the web page should be neat and look and feel is good.

i am trying to use the same in jsp.(According to your post not possible).

Can you please tell me the way how to solve this issue.

What is JSP EL and JSP JSTL ???

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61106
    
  66

sudheer yathagiri kumar wrote:Sorry for my innocent question

No need to apologize. We all have to start somewhere!

i am trying to use the same in jsp.(According to your post not possible).

Then you did not understand my post. Did you read the article I linked to?

JSP is merely a server-side engine that generates an HTML page to send to the browser. jQuery and any other JavaScript run on the client. So as far as jQuery and JavaScript are concerned, the fact that the page was generated by a JSP is completely irrelevant. The client-side script has no idea that the page came from a JSP, so it's no problem to use JavaScript and jQuery in a JSP.

Just be aware that JSP is server-side (see article in link) and JavaScript is client-side, so they cannot directly interact.

What is JSP EL and JSP JSTL ???

I leave that as a Google/Wikipedia exercise for you. I will tell you that EL is the Expression Language, and JSTL is the JSP Standard Tag Library. You will lots of information on them online.
 
wood burning stoves
 
subject: Is it possible to get the actions of all jquery functions in JSP page