dcsimg
Can anyone send sample jsp code for my problem. Client side code using jsp
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   arulraj_arulvraj
Posted On:   Tuesday, October 19, 2004 10:40 PM

I would like to test simple J2EE application using JavaBean for serverside coding and Jsp for client side coding. The problem is add two numbers. i am going to receive and display result of the two numbers through UI page using JSP. what are codes i have to wirte in the jsp pages. sample is : <%! private AddRemote remote = null; public void jspInit() { try { InitialContext ic = new InitialContext(); Object objRef = ic.lookup("AddRemote"); AddHome home = (AddHome) PortableRemoteObject.narrow (objRef, AddHome.class); remote = home.create(); } catch (RemoteException ex) { Syst   More>>




I would like to test simple J2EE application using JavaBean for serverside coding and Jsp for client side coding.

The problem is add two numbers. i am going to receive and display result of the two numbers through UI page using JSP.
what are codes i have to wirte in the jsp pages.

sample is :

<%!
private AddRemote remote = null;

public void jspInit() {
try {
InitialContext ic = new InitialContext();

Object objRef = ic.lookup("AddRemote");

AddHome home = (AddHome)

PortableRemoteObject.narrow
(objRef, AddHome.class);
remote = home.create();

} catch (RemoteException ex) {

System.out.println("Remote connecting Exception");

}
}

%>

   <<Less
About | Sitemap | Contact