JSP Form Tab

The JSP Form Process code takes what is submitted by the form and returns the session variable with its new value.

The JSP Form Code is Java code that takes in the field identifier, HttpServletRequest, and HttpServletResponse as arguments and returns a new value for the session variable. This is an example of code that might be entered in the JSP Form tab.

String CFTFP_My_New_Type(String field_identifier, HttpServletRequest request, HttpServletResponse response)

{

return request.getParameter(field_identifier + "val1") + getProp(field_identifier, "add_to_end", request, response) ;

}

This function takes the form value and adds the value of the add_to_end property to the end of the session variable.

Properties defined in the Properties tab can be referenced in the JSP Form Processing code. To do this, the property is referenced by the getProp() function call, as seen by the add_to_end property above in the example code.