I have search functionality in my jsp page.. When user types "abc" and search for that. I get the result back but is there a way to retrieve that abc back to that search textbox along with the search results? Thank you.
相关问题
- Jasper: error opening input stream from url
- is it normal for image inputs to be omitted from t
- #{facesContext} EL expression not resolved at runt
- How do I discard user input delivered during sleep
- How to make CSS input range thumb not appear at fi
相关文章
- jsp里面的画布功能,为什么会出错?求大佬找下问题
- 放在input的text下文本一直出现一个/(即使还没输入任何值)是什么情况
- JSP String formatting Truncate
- Show a different value from an input that what wil
- Forward request from servlet to jsp
- Is there a way to hide the new HTML5 spinbox contr
- Programmatically interrupting raw_input
- Comparing string and boolean in Expression languag
Just prefill the input value with the submitted value. Submitted input values are available in EL via the
${param}
request parameter map keyed by input field names.Note the importance of JSTL
fn:escapeXml()
. It's to prevent your page from XSS attacks while redisplaying user-controlled input.The above example will prefill the input value with the result of
request.getParameter("query")
. As EL is null-safe, it won't display anything if it returnsnull
.See also:
This will also work if you want something more basic, but I am not sure about the security