How do you output a variable or a string from and EJB when using JSP

Hi,

I'm using JSP w/ EJB.  How do I output the contents of a variable to a console or something from the EJB?  I am currently using J2EE 1.4 and  System.out.println() doesn't send outputs to the java console.  It's too much work to have to create an extra interface to output to JSP.  Since I need to see what is happening in the EJB, the output is important.  Thanks.
skip1000Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
petmagdyConnect With a Mentor Commented:
See if system.out.print() prints to any of the *.log files in ur J2EE SDK
0
 
krishnaashuCommented:
by just writting

System.out.println("Your Comment" + Your Variable);

in your jsp/j2ee program it will write tomcat/j2ee servers console window

regds

Ashu Krishna
0
 
krishnaashuCommented:
ok this might be due to your System.out.println() is not executed due to some logical problem otherwise it will always write to java console.

you can also use output.print() in jsp page it will print output at your web browser and when your work finish remove output.println() from jsp


regds

Ashu Krishna
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
OviCommented:
Create a class with a static method which will do that for you, instead of println, if not working. That class could create your own log file and append to it, instead of the console. But basically the System.out.println should work.
0
 
MogalManicCommented:
What servlet container are you using?  What envioronment is your server?
0
 
skip1000Author Commented:
Haven't used servlets just yet.  Just beginning J2EE 1.4 using only things with J2EE 1.4 (app server 8, pointbase) on a Windows XP environment.
0
 
kiranhkConnect With a Mentor Commented:
it would be printing the System.out's in the log files!! check out those log files
0
 
skip1000Author Commented:
You are right.  System.out.println() prints to the admin console log file.  Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.