13. december 2012 - 15:42
Der er
6 kommentarer og 1 løsning
Why is my queryString preserved?
Hello! I got a link in a struts 2 app: <a href="productview.action?productid=<s:property value="id" />" class="a_blue" target="_top" >More info / Order now</a> the output looks like: <a href="productview.action?productid=2" class="a_blue" target="_top" >More info / Order now</a> After entering it the output of all my other links got the param productid as well even dough I did not add it my self like: <a href="/mysite/welcomeLink.action?productid=2" class="a_white">home/about</a> The code for the above link is just: <a href="<s:url action="welcomeLink"/>" class="a_white">home/about</a> So if any one got the answer why the queryString is preserved just let me know. Best regards Fredrik
Annonceindlæg fra Deloitte
13. december 2012 - 15:46
#1
Skal du ikke have " før 2 i stedet for før /mysite... <a href="/mysite/welcomeLink.action?productid=2" class="a_white">home/about</a> Skal være: <a href=/mysite/welcomeLink.action?productid="2" class="a_white">home/about</a> <a href=productview.action?productid="<s:property value="id" />" class="a_blue" target="_top" >More info / Order now</a>
13. december 2012 - 15:50
#2
Glem min kommentar, det er jo helt ved siden af det jeg siger, ser jeg nu når man ser det skrevet. Sorry.
17. december 2012 - 11:59
#5
Hello Arne! You were right: includeParams="none" ...did not include the params. I guess this feature is usefull in some way. How ever thanks alot, and give a svar! Best regards¨ Fredrik