开发者

how to add two variables to URL in JSP?

I want to add two variables to URL in JSP

<a href="开发者_运维百科buyOrSell.do?symbol=<%=trade.getSymbol()%>&mktPrice="<%=trade.getCurrentMktPrice()%>>Buy</a>

ex - http://loclhost:8080/myProj/buyOrSell.do?symbol=anySymbol&mktPrice=price

but I am not able to get second variable.


Seems like you had a quote mark placed wrong in your code. Test the line below instead

<a href="buyOrSell.do?symbol=<%=trade.getSymbol()%>&mktPrice=<%=trade.getCurrentMktPrice()%>">Buy</a>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜