开发者

storing a value from EL in jsp

开发者 https://www.devze.com 2023-01-04 18:31 出处:网络
I have been using EL(expression Langugage) in JSP, where I need to store the value from EL. Ex: $(param.name.value)

I have been using EL(expression Langugage) in JSP, where I need to store the value from EL.

Ex: $(param.name.value)

where na开发者_Python百科me is a textbox I need to stored the name value in a string in JSP, how to do it.


You need to use ${param.name} instead of $(param.name.value). Note the braces instead of parentheses as well as leaving off .value.

Your question is vague about where you want to store the value. If you simply need to use it on a JSP, this works. If you need to store it in a database or something, that takes more work.

0

精彩评论

暂无评论...
验证码 换一张
取 消