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 04-21-2008, 04:37 PM
Member
 
Join Date: Apr 2008
Posts: 4
priyanka sharma is on a distinguished road
how to use JFrame in JSP ??
please anyone tell me how can I call java frame in JSP.
Actually I have made a program in frame displaying bar charts for records that are present in database. I want that a user enters an id from a JSP page and the bar chart of only those records will display having that id????
please help me
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-21-2008, 04:46 PM
Moderator
 
Join Date: Nov 2007
Posts: 1,102
Java Tip will become famous soon enoughJava Tip will become famous soon enough
You can not call jframe from jsp. You need to port your application to jsp or from jsp you will call an applet to show your charts. You can pass the chart parameter to the applet via a file on the server.
__________________
Want to make your IDE the best? Vote Now
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 04-21-2008, 05:03 PM
sanjeevtarar's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Delhi(India)
Posts: 237
sanjeevtarar is on a distinguished road

Ya priyanka you can only use applets in JSP/HTML.JFrame can not be included into Jsp.

If you want to show charts in JFrame then just simply call then and show the output as popup window.


sanjeev
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 04-22-2008, 08:35 AM
Member
 
Join Date: Apr 2008
Posts: 4
priyanka sharma is on a distinguished road
can u please tell me how can I do that? I do not have any idea about this. how can i show the output of my JFrame through applet?
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 04-22-2008, 08:47 AM
Member
 
Join Date: Apr 2008
Posts: 4
priyanka sharma is on a distinguished road
I can show the output as popup window but how can i pass value from my JSP/HTML form eg. user id to my JFrame so that the bars of only those records will be displayed having that id?? i think we can not we use getParameter etc. in JFrame.so what can be the alternative for this??
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 04-22-2008, 09:10 AM
sanjeevtarar's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Delhi(India)
Posts: 237
sanjeevtarar is on a distinguished road
hello,


Why do not you show your charts in Applet, in applet you can send and receive parameters from JSP/HTML.

Is there any specific requirements to show charts in JFrame only..??


sanjeev
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 04-27-2008, 08:08 AM
Member
 
Join Date: Apr 2008
Posts: 4
priyanka sharma is on a distinguished road
i have converted it into applet but now i m facing a new problem. my database connection is not getting open in applet while in jframe it was opening. i have used MS access as the database and when i m giving -
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
it is not proceeding and not executing any thing after it.
after that i changed my dataabse to sql server 2005 and in this the connection is getting open but there is also a new problem occuring. i have used multiple result set . the updation is not taking place in the database due to multiple resulsets.
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
Add an image to JFrame Eranga AWT / Swing 2 03-14-2008 09:24 AM
JFrame problem saytri New To Java 6 01-11-2008 06:12 PM
JFrame Question ? Mindhunter74 New To Java 2 12-21-2007 11:45 PM
help me with JFrame and JLabel michcio New To Java 5 11-20-2007 08:44 AM
Help with JFrame Albert AWT / Swing 2 07-04-2007 05:44 AM


All times are GMT +3. The time now is 02:36 AM.


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