Foren
REG: Web Content
Pon marimuthu, geändert vor 12 Jahren.
REG: Web Content
New Member Beiträge: 6 Beitrittsdatum: 16.09.11 Neueste Beiträge
Hi
I am Muthu, I have an urgent requirement.
My question is
I am creating a form in liferay using Web Content Display. I want to submit the form, I don't know how to do this. Is it possible?
I am not using struts.
I just using this code
public class LoginAction extends Action {
//private static final String DEFAULT_COMMUNITY_NAME = "Guest";
public static final long DEFAULT_PARENT_FOLDER_ID = 0L;
@Override
public void run(HttpServletRequest request, HttpServletResponse response)
throws ActionException {
String userName = request.getParameter("username");
System.out.println("User Name is"+ userName);
}
In webcontent I wrote this code
<p>
<form action="http://localhost:8080/..." method="POST" name="<portlet:namespace/>fm">
Name: <input name="<portlet:namespace/>bookTitle" type="text" /><br />
<input type="submit" value="Save" /></form>
</p>
but it is not call the action class.
how to calll the action class?
Please help me
Regards
Muthu. N
I am Muthu, I have an urgent requirement.
My question is
I am creating a form in liferay using Web Content Display. I want to submit the form, I don't know how to do this. Is it possible?
I am not using struts.
I just using this code
public class LoginAction extends Action {
//private static final String DEFAULT_COMMUNITY_NAME = "Guest";
public static final long DEFAULT_PARENT_FOLDER_ID = 0L;
@Override
public void run(HttpServletRequest request, HttpServletResponse response)
throws ActionException {
String userName = request.getParameter("username");
System.out.println("User Name is"+ userName);
}
In webcontent I wrote this code
<p>
<form action="http://localhost:8080/..." method="POST" name="<portlet:namespace/>fm">
Name: <input name="<portlet:namespace/>bookTitle" type="text" /><br />
<input type="submit" value="Save" /></form>
</p>
but it is not call the action class.
how to calll the action class?
Please help me
Regards
Muthu. N
Pon marimuthu, geändert vor 12 Jahren.
RE: REG: Web Content
New Member Beiträge: 6 Beitrittsdatum: 16.09.11 Neueste Beiträge
Hi Guys,
Please help me to solve this issues, or give some ideas.
Regards
Muthu
Please help me to solve this issues, or give some ideas.
Regards
Muthu