aspose file tools*
The moose likes XML and Related Technologies and the fly likes How to pass multiple params Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to pass multiple params" Watch "How to pass multiple params" New topic
Author

How to pass multiple params

Rama moorthy
Greenhorn

Joined: May 18, 2001
Posts: 8
Dear Gurus,
Can anyone guide me on how to send multiple parameters ?.
I give below my coding and please go through the same and give your feedback.
This is the program i hv developed to forward parameters to other jsp pages.
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<%@ taglib uri="http://jakarta.apache.org/taglibs/xtags-1.0" prefix="xtags" %>
<%@ page language="java"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Match</title>
</head>
<body>
<%
String a = request.getParameter("sex");
String b = request.getParameter("age");
String c = request.getParameter("study");
String d = request.getParameter("region");
String e = request.getParameter("religion");
String g = request.getParameter("prefer");

%>
<xtags:style xml="http://localhost:8080/xmlshop/match_maker.xml" xsl="http://localhost:8080/xmlshop/search1.jsp">
<xtags aram name="sex"><%=a%></xtags aram>
<xtags aram name="age"><%=b%></xtags aram>
<xtags aram name="study"><%=c%></xtags aram>
<xtags aram name="region"><%=d%></xtags aram>
<xtags aram name="religion"><%=e%/></xtags aram>
<xtags aram name="prefer"><%=g%/></xtags aram>
</xtags:style>
</body>
</html>
I have used xtags to forward multiple parameters.
If you have any other method of passing more than one parameters please guide me.
Regards,
Ramamoorthy
ravi bask
Ranch Hand

Joined: Jul 05, 2001
Posts: 58
yeh ram,
Thanks, i was trying for this one?(how to use xml,xsl in Jsp)
i got the jarkata, i tried it out but it din't work out,
but anyway thanks for showing me how to use this one,
San
Rama moorthy
Greenhorn

Joined: May 18, 2001
Posts: 8
Dear friends,
Can anyone explain me how to solve the following problem?
I am getting one input as age -- 25-30.
My requirement is after seperating the age as 25 and 30,i should compare these values with the xml.
My xml looks like this,
<age>25</age>.
<age>31</age>.
<age>36</age>.
<age>27</age>.
<age>29</age>
I should get the result of users who are in the age group of between 25 to 30.
How to approach this problem?
Advanced Tks,
Ramamoorthy
Mapraputa Is
Leverager of our synergies
Sheriff

Joined: Aug 26, 2000
Posts: 10065
If you want the number of user, then it will be like
<xsl:value-of select="count(root/age[number (text())>=25 and number(text())<=30])"/>


Uncontrolled vocabularies
"I try my best to make *all* my posts nice, even when I feel upset" -- Philippe Maquet
Ramamoorthy
Greenhorn

Joined: Mar 13, 2001
Posts: 19
Dear friends,
I give below my requirement and would request you to give your suggestion.
I'm sorry for not giving my clear requirement initially.

I am getting one input as age -- 25-30.
My requirement is after seperating the age as 25 and 30,i should compare these values with the xml.

My xml looks like this,

<customer>
<name>Sasi</name>
<age>25</age>
</customer>
<customer>
<name>James</name>
<age>27</age>
</customer>
<customer>
<name>ram</name>
<age>32</age>
</customer>
<customer>
<name>guru</name>
<age>26</age>
</customer>

I should get the result of users who are in the age group of between 25 to 30.

How to approach this problem?

Advanced Tks,

Ramamoorthy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to pass multiple params