Accessing post variables using Java Servlets *

Question

All I really want is the equivalent of PHP's $_POST[], and after searching the web for an hour, I'm still nowhere closer.

Answer

Your HttpServletRequest object has a getParameter(String paramName) method that can be used to get parameter values. http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletRequest.html#getParameter(java.lang.String)

< br > via < a class="StackLink" href=" http://stackoverflow.com/questions/5222/" >Accessing post variables using Java Servlets< /a>
Share on Google Plus

About Cinema Guy

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment