including java programs or code in jsp

Reply

Join Date: May 2007
Posts: 30
Reputation: akash_msrit is an unknown quantity at this point 
Solved Threads: 0
akash_msrit akash_msrit is offline Offline
Light Poster

including java programs or code in jsp

 
0
  #1
May 29th, 2007
hi
this is Akash , i need help in adding java code to jsp. i have a class called JTree , which displays a tree structure menu. now i want to include this code in jsp. i am using websphere to design my GUI. i trying this but i am not able to run this code.

this is what i did
<%@ import ="java.io.*"
...
...

<html>
.......

<%
public class JTree extends JInternalFrame {


code......



%>

</html>

if this is not correct please give me an alternate.please help me. i am new to this environment. it is very very urgent.


Regards
akash
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 30
Reputation: akash_msrit is an unknown quantity at this point 
Solved Threads: 0
akash_msrit akash_msrit is offline Offline
Light Poster

Re: including java programs or code in jsp

 
0
  #2
May 29th, 2007
hi this is akash, i need an sample jsp code which contains an java class or java program.
please help me na, i am u r friend.

Regards
akash
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: including java programs or code in jsp

 
0
  #3
May 29th, 2007
you don't need anything like that. You need either a good book on JSP to tell you what you do need or a good spanking if you have that good book and choose to ignore its teachings.

You do NOT use scriptlets in JSP.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,626
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 468
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: including java programs or code in jsp

 
0
  #4
May 29th, 2007
Writing a whole class is JSP file is a total nightmare...
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: including java programs or code in jsp

 
0
  #5
May 30th, 2007
and using Swing GUI components in that class is even worse...
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 30
Reputation: akash_msrit is an unknown quantity at this point 
Solved Threads: 0
akash_msrit akash_msrit is offline Offline
Light Poster

Re: including java programs or code in jsp

 
0
  #6
May 31st, 2007
hi,
can any one tell me , how to import packages in to websphere.
is it posiible to import an applet in to jsp.
Last edited by akash_msrit; May 31st, 2007 at 2:21 am.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,210
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 489
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: including java programs or code in jsp

 
0
  #7
May 31st, 2007
>import an applet in to jsp
Applet is just object inserted into HTML, jsp is just enhanced HTML(with some little coding related to JAVA). So what the link between this two?
H T M L
Last edited by peter_budo; May 31st, 2007 at 5:51 am.
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JSP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC