on 09-24-2009 3:29 AM
Hello all,
I want to call the java class in JSP page and retrieve some values from java class and display in JSP page.I need to display the single field value and Internal table values. Can any one give me some sample code for this?.
Thanks
1. first you need to import the java class into your jsp page by using this sample code
<%@ page import = "java.util.ResourceBundle" %>
2. then instanciate the java class, suppose ResourceBundle is your java cal
<% ResourceBundle a = new ResourceBundle ();
%>
3. Now you can call any method from your java class using this
<% String temp= a.method(); %>
4. To store it in table, create a table
<
TABLE width="100%" height= "100%" border="0" >
<TR>
<TD> <%=temp%></TD>
</TR>
</TABLE>
Hope it will help u
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anup,
Thanks for your reply. I am working on B2C application. I need to import the value from Jsp page to Java class. How to import parameter from JSP page to java class in B2c? and need to export value from java class to JSP page. How to export paramert from java class to JSP page in B2C?
I am very new to this. please give your suggestion...
Thanks
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.