I have a small Hello World EJB application that uses Servlet, JSPs... An
HTML page takes in an input which is just a string that will get displayed
by the application later in the form of "You said: "+ string... now, when
the submit button is pressed on the HTML page, the request is sent to my
servlet which picks up the value for the string and passes it to the EJB
application. The EJB method simply stores this string in a field called
helloString in the EJB class. And its all fine upto here. Where I get
confused is how do I display it back on the browser using a JSP??? I have
part of the JSP output file as below...

 <BODY>
<H1>IBM Hello World EJB Sample Result</H1>
<BEAN NAME="aHelloWorldEJB" TYPE="helloworld_sample.HelloWorld" CREATE="NO"
INTROSPECT="NO" SCOPE="request"></BEAN>

 <TABLE border="0">

 <TR>
<TD>You Said:</TD>
<TD>
 <!--METADATA type="DynamicData" startspan <WSPX:PROPERTY
property="aHelloWorldEJB.helloString">--><%=aHelloWorldEJB.gethelloString()
%><!--METADATA type="DynamicData" endspan-->
 </TD>
</TR>

i am getting confused in that am I allowed to access the gethelloString()
method like this for an EJB? It works for a non-EJB application. Is this
expected to work? If not, then what is the correct way to get a value of a
property from the EJB into JSP for displaying into the browser!?? This is
just a test application for me that models another complex application that
I have and I am getting problems loading JSPs, which I believe is because
of the above issue.. any ideas anyone? Thanx a lot in advance!


Saurabh Khare

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to