用于在inputbox中显示默认值的jsp [英] jsp for showing default value in inputbox
本文介绍了用于在inputbox中显示默认值的jsp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在jsp遇到一个问题
<%
字符串 str = xyz abc;
out.println( < input type = + text + value = + str + >);
%>
使用此命令后它只能显示xyz所以请告诉我任何人我怎么能看到所有字符串xyz abc默认情况下在输入框中使用jsp
谢谢
解决方案
使用
out.println( < input type ='text'value =' + str + '>);< / input>
I am facing one problem in jsp
<%
String str="xyz abc";
out.println("<input type="+"text"+"value="+str+">");
%>
after using this command it can only show xyz so please tell me anyone that how i can see all string xyz abc by default in input box using jsp
Thank you
解决方案
use
out.println("<input type='text' value='"+str+"'>");</input>
这篇关于用于在inputbox中显示默认值的jsp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文