mardi 3 mars 2015

Converting ASP pages to JSP

I wish to convert legacy ASP pages to JSP. They are fairly standard ASP pages that do a FORM post to another ASP page, however even the most standard things are trivial for this guy.


what would be the JSP equivalent of these ASP syntaxes?



<INPUT type=text name="cat" value="<%=Request.Form ("cat")%>">&nbsp;
<INPUT type=text name="catId" value='<%=Request.form("catId").item%>'>


would it be something as such?



<INPUT type=text name="cat" value="<%=request.getParameter("cat")%>">&nbsp;


or how would i use JSP form syntax similar to how the ASP gets the values from the forms?


Aucun commentaire:

Enregistrer un commentaire