simple error due to use of double quotes in a jsp file

前端 未结 7 1695
清酒与你
清酒与你 2020-12-14 00:36

I have the following line of code in a JSP File in my web app that is giving an error:



        
7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-14 00:59

    if you use a " as scriplet delimeter, you can't use the some as a property delimiter in getParameter. So change the delimeter of scriptlet by '.As it tag parameter, I think there 'll be no problem. Otherwise replace :

    value="<%=request.getParameter("userName")%>"/>

    by :

    value='<%=request.getParameter("userName")%>'/>

提交回复
热议问题