I think I understand what you mean
you have main.jsp that contains a field as
<input type="text" name="form_name" />
You then want to use the value for the parameter "form_name" in add.jsp, the following code would work:
<form name="<%= request.getParameter("form_name") %>">