开发者

how to add two variables to URL in JSP?

开发者 https://www.devze.com 2023-04-10 06:09 出处:网络
I want to add two variables to URL in JSP <a href=\"开发者_运维百科buyOrSell.do?symbol=<%=trade.getSymbol()%>&mktPrice=\"<%=trade.getCurrentMktPrice()%>>Buy</a>

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

精彩评论

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