This discussion is archived
3 Replies Latest reply: Oct 24, 2012 7:48 AM by gimbal2 RSS

ADF and servlets

milant Newbie
Currently Being Moderated
Hi,
I created a jsf page inside my ADF project. Inside I have a button and a text field. If i press button my servlet is activated. It returns a jasper report in pdf format. Now I would like to display my text field value as a jasper report parameter. So this is a part I don't know how to do. How do I get a value of my text field inside servlet?
After this I know how to pass it to report.
Many thx.
  • 1. Re: ADF and servlets
    gimbal2 Guru
    Currently Being Moderated
    Wow, that's really basic and answered in just about any article you can find that deals in some way or another with servlets.

    Well you're looking for request parameters which you can get through the HttpServletRequest object. I suggest giving this free book a quick read through:

    http://pdf.coreservlets.com/
  • 2. Re: ADF and servlets
    milant Newbie
    Currently Being Moderated
    Do you sugest I use
    request.getParameter("it1");
    if my input text id is "ït1"? I am beginer in web development. Could you help me with this.
    Thx
  • 3. Re: ADF and servlets
    gimbal2 Guru
    Currently Being Moderated
    Beginner, yet you are working with ADF. Quite a contradiction.

    The NAME of the input field is submitted, not the ID. I gave you all the help you need: read the book I linked to. It explains the basics very well indeed. This is a tough subject that fills entire books; don't expect to get any answers in a forum post, you're going to have to spend time learning this stuff. Not hours, weeks.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points