Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Applets
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Eclipse Collections Categorically: Level up your programming game
this week in the
Open Source Projects
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Ron McLeod
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Applets
passing bean object to applet as input parameter
nuthan kumar
Ranch Hand
Posts: 47
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
Is there any way to pass a bean object (instantiated in a
JSP
) to
applet
..? My requirement is to display dynamic progress messages in between bean method calls.
Swastik Dey
Bartender
Posts: 2270
20
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Probably you can't pass an object to applet, so may you can wrap it as a
string
to pass to applet
package p1; public class Emp{ private String empId; private String empName; public void setEmpId(String empId){ this.empId=empId; } public void setEmpName(String empName){ this.empName=empName; } public String getEmpId(){ return this.empId; } public String getEmpName(){ return this.empName; } public String toString(){ return getEmpId()+"-"+getEmpName(); } }
<%@page import="p1.Emp"%> <jsp:useBean id="e" class="p1.Emp"> <jsp:setProperty name="e" property="empId" value="E001"/> <jsp:setProperty name="e" property="empName" value="aaa"/> <applet code="MyApplet" height=200 width=200"> <params> <param name="p1" value="<%=e.toString()%>"/> </params> </applet> </jsp:useBean>
Swastik
So you made a portal in time and started grabbing people. This tiny ad thinks that's rude:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How do I triggers object and add them to the collection?
acces denied
Applet question - .class vs .java
<c:url> not working properly
Handleing multiple rows from an EJB
More...