如何审视&作为查询字符串的值 [英] how to retreive a & as a value from query string
本文介绍了如何审视&作为查询字符串的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我传递一个名字sun& amp;月亮"在我的查询字符串中作为参数。
但是当我通过request.getParameter收到它时,我只得到了太阳。
休息因为&而被忽略符号。
如何获得通过查询字符串输入的值。
编码与另一个符号不建议。所以任何人都可以给出一个好的解决方案
请尽快帮助我
。
iam passing a name "sun & moon" in my query string as a parameter.
but when i receive it through request.getParameter iam getting only sun.
rest are getting ignored due to & symbol.
how to get the value as wat i entered through query string.
encoding with another symbol is not adviced. so can any one give a good solution
please help me
soon as possible .
推荐答案
我通过一个名字sun& amp;月亮"在我的查询字符串中作为参数。
但是当我通过request.getParameter收到它时,我只得到了太阳。
休息因为&而被忽略符号。
如何获得通过查询字符串输入的值。
编码与另一个符号不建议。所以任何一个人都可以提供一个好的解决方案
请尽快帮助我
。
iam passing a name "sun & moon" in my query string as a parameter.
but when i receive it through request.getParameter iam getting only sun.
rest are getting ignored due to & symbol.
how to get the value as wat i entered through query string.
encoding with another symbol is not adviced. so can any one give a good solution
please help me
soon as possible .
发布传递参数的代码。
Post the code where you are passing the parameter.
谢谢,
但我通过request.getparameter在一个动作类中获取名称,并使用查询字符串附加其他值并传递给第二个动作类。当我进入第二个动作类时,我没有得到整个字符串。
thanks,
but iam fetching the name in one action class through request.getparameter and appending with other values with querystring and passing to second action class. when i get in second action class iam not getting the whole string.
谢谢,
但我通过request.getparameter在一个动作类中获取名称,并使用查询字符串附加其他值并传递给第二个动作类。当我进入第二个动作类时,我没有得到整个字符串。
thanks,
but iam fetching the name in one action class through request.getparameter and appending with other values with querystring and passing to second action class. when i get in second action class iam not getting the whole string.
再次阅读上面的回复。
Read my reply above again.
这篇关于如何审视&作为查询字符串的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文