Skip to Content
author's profile photo Former Member
Former Member

please help very urgent

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Mar 31, 2004 at 07:35 AM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.