• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

How to pass multiple params

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Leverager of our synergies
Posts: 10065
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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])"/>
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic