This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Struts and the fly likes <s:parameter> not being converted to querystring for<s:url> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply locked New topic

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

Sarah Gaikwad
Ranch Hand

Joined: Feb 26, 2004
Posts: 35

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"%>

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

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

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

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

Struts newbie
jQuery in Action, 3rd edition
subject: <s:parameter> not being converted to querystring for<s:url>
It's not a secret anymore!