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
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956123#3956123
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956123
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user