[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Is it p;ossible to call a javabean method from a javascript function?

Posted on 2006-06-22
2
Medium Priority
?
278 Views
Last Modified: 2008-02-01
I have a JSP in which I have defined a javabean

<jsp:useBean id="myUtility" scope="request" class="utilities.MyUtilities"/>
 this bean has a method String [] getValues().

Then I have a java script piece like this

<script type="text/javascript">
function update()
{
 
 //Is it possible to call the myUtility.getValues() from here? if so how am
 //I to define the return String array?
}

Please someone throw some light here.

0
Comment
Question by:prain
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 28

Expert Comment

by:rrz
ID: 16963766
If you use AJAX, then yes.  There are a million hits on google. Here are a few.
http://developers.sun.com/ajax/ 
http://java.sun.com/developer/technicalArticles/J2EE/AJAX/ 
http://getahead.ltd.uk/dwr/
0
 
LVL 28

Accepted Solution

by:
rrz earned 400 total points
ID: 16963781
But you would have to change the bean's scope to session.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
Tech spooks aren't just for those who are tech savvy, it also happens to those of us running a business. Check out the top tech spooks for business owners.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question