Hi all
I am getting data from R/3 i am extending my class file with abstract portal component
I has to display that data in jsp
I am redirecting to jsp page by writing this code
IResource jspResource = request.getResource("jsp", "jsp/ghrisindex.jsp");
response.include(request, jspResource);
now i am not getting my data in jsp page
i tried two methods for getting data
bean and session
no method gives result in jsp page
its giving null
the codes for setting data in bean and session are
mybean.setEmpno(empno) ;
request.getLogger().info("Entering into CheckBox component");
//response.write("calling pagelet checkresult.jsp");
String pqrs = mybean.getEmpno() ;
//response.write("calling pagelet checkresult.jsp" + pqrs );
IPortalComponentSession session = request.getComponentSession() ;
session.putValue("empno",empno) ;
please help me how to proceed further
this is very urgent
Hi
Are you using the standard request and session variables in the JSP? Then the data must be stored using HttpServletRequest methods.
iPortalComponentRequest.getServletRequest().setAttribute( "myData", myData );
When using the IPortalComponentRequest to store data you cannot use the <jsp:useBean etc. (as far as I know at least), but you have to use the implicit object componentRequest
Add a comment