Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
    Bookmark Topic Watch Topic
  • New Topic

<s:parameter> not being converted to querystring for<s:url>

 
Sarah Gaikwad
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi

I am unable to see the correct formation of the url(with the desired querystring).Any help is deeply appreciated. Here's the code:


<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Main Page</title>
</head>
<body>
<s:url var="addURL" action="inputnickname"/>
<s:url action="modifynickname" var="editURL">
<s:param name="senderMsisdn" value="9865236558"/>
</s:url>

<s:property value="%{editURL}" />
<s:a href="%{addURL}">Add Nickname</s:a>


<s:a href="%{editURL}">Modify Nickname</s:a>
</body>
</html>



Note: The editURL shows the path as set in struts.xml without the parameters i.e. the property tag results to
/struts/paramtest/



Regards,
Struts newbie
 
    Bookmark Topic Watch Topic
  • New Topic