How to get user input in a portlet?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Akino877
    New Member
    • Nov 2007
    • 37

    How to get user input in a portlet?

    Hello,

    I have a simple Hello World portlet, which looks like the following :

    import java.io.*;
    import javax.portlet.* ;

    public class HelloWorldPortl et extends GenericPortlet {
    public void doView(RenderRe quest request, RenderResponse response) throws IOException, PortletExceptio n {
    response.setCon tentType("text/html");
    response.getWri ter().print("He llo World!");
    }
    }

    It works fine. Now, I'd like to add a text box and be able to get the value of the text box into a Java string
    variable. I wonder if someone could please tell me how to do this?

    Thank you,

    Akino
Working...