Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-06-2008, 07:28 AM
Member
 
Join Date: Jun 2008
Posts: 1
Vikrant Pawar is on a distinguished road
Calling Java Function through JSP
HI ,
this could be trivial but i don't know anything abt JSP ,

Here is my java code
public class NameHandler {
private String name;
public NameHandler() {
name = null;
}
public String getName() {
return name;
}

public void toUpper (){
name = name.toUpperCase();
}
public void setName(String name) {
this.name = name;
}
}

now from what i understood i could use java beans to access the getter and setter
so the code in JSP is as follow
<jsp:useBean id="mybean" scope="session" class="org.mypackage.hello.NameHandler" />

<jsp:setProperty name="mybean" property="name" />
<h2>Hello, <jsp:getProperty name="mybean" property="name" />!</h2>

now i want to call "toUpper" function from my java class
how to do that , using beans or any other method
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
calling a java application from another kratoras New To Java 1 06-14-2008 03:54 AM
How to use a function in java olikhvar New To Java 2 02-16-2008 03:57 AM
Use Perl function with java lenny Advanced Java 1 08-07-2007 07:25 AM
Help with recursive function in java cachi Advanced Java 2 07-31-2007 07:51 PM
Php explode function, equivalent java fernando Advanced Java 1 07-31-2007 06:44 AM


All times are GMT +3. The time now is 01:56 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org