how can i transfer variable name from .html page to .java page without request.getParameter , session or cookies in Seam framework.
i mean exactly some thing like maplet Framework in shine Enterprise Pattern
you can see my code bellow or google for shine to see more samples.
<%@ taglib uri="/WEB-INF/maplet.tld" prefix="maplet"%> <html> <body> <form name="myform" action="Core.exec"> <!-- the action transfer you to maplet --> <maplet:Resource show="msg1"/> <input type="text" name="name"/> <!-- catch name variable in maplet easyer--> <input type="text" name="famil"/> <!-- catch famil variable in maplet easyer--> <input type="submit" value="ClassicSendQuery"/> </form> </body> </html>
package controller;
import model.database.dao.T1DAO;
import org.j2os.shine.maplet.Maplet;
public class Core extends Maplet {
public String name; // catch name variable in maplet easyer no need for request.getParameter
public String famil; // catch famil variable in maplet easyer no need for request.getParameter
public void startup() throws Exception // startup method execute only once -something like init method in servlet which will speed up the execution speed
{
System.out.println("startup");
System.out.println(name);
System.out.println(famil);
}
public void initialize() throws Exception // initialize method first execution method in maplet
{
System.out.print("initialize");
}
public void request() // pageName method- this will execute only if you come from request page
{
System.out.println("rater method or pageName method");
}
public void rater() throws Exception //arter method last execution method in maplet
{
System.out.print("rater method");
secureForward("Response.jsp", "insert");
}
}