[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - problem with portlet:renderURL
raffaele.letizia
do-not-reply at jboss.com
Tue May 5 13:15:09 EDT 2009
Hi,
i have a problem with <portlet:renderURL/>. I use a form for send a parameter in a doView() but doesn't pass any param
my form in jsp is:
form action="<portlet:renderURL/>" method="POST"
input type="text" name="lalla"/
input type="submit" name="op" value="Ricerca"/
/form
while in the doView i have:
try
{
if((request.getUserPrincipal() != null) && (request.getUserPrincipal().getName() != null))
{
String userName = request.getUserPrincipal().getName();
String jspName = null;
/*verifica per l'admin che ha il controllo totale */
System.out.println(userName);
if((request.getParameter("op") != null) && (request.getParameter("op").equalsIgnoreCase("Ricerca")))
{
if (userName.equals("admin"))
{
request.setAttribute("contacts", getUsersContacts(userName,request.getParameter("lalla")));
jspName ="/WEB-INF/jsp/listuser.jsp";
}
else
{
request.setAttribute("contacts", getUsersContacts(userName,request.getParameter("lalla")));
jspName ="/WEB-INF/jsp/listuser.jsp";
}
}
please help me
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228724#4228724
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228724
More information about the jboss-user
mailing list