This content has been marked as final.
Show 2 replies
-
1. Re: How cab i submite and save the content of the html in po
louise_za Jul 7, 2006 5:27 AM (in response to leonardpaul)Here is a rough answer:
You need to change your html page into a jsp. It should look something like this:<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %> <portlet:defineObjects/> <% String name = (String)request.getAttribute("name"); if(name==null) { %> <form action="<portlet:actionURL></portlet:actionURL>" method=post> <table cellspacing=2 cellpadding=2 border=0> //some form tags in here - remember to make the input class //portlet-form-input-field <input class ="portlet-form-input-field" type=text name="name" value="Type your name"> <input class ="portlet-form-input-field" type=submit name="submit" value="Submit"> </table> </form> <% else { %> Hello <%=name%>! <% } %>
In your servelet:public void processAction(ActionRequest aRequest, ActionResponse aResponse) throws PortletException, PortletSecurityException, IOException { String name = aRequest.getParameter("name"); aResponse.setRenderParameter("name", name); }
Louise -
2. Re: How cab i submite and save the content of the html in po
leonardpaul Jul 10, 2006 12:12 AM (in response to leonardpaul)Hi Louise,
Thanks a lot