have two dropdowns in my search page one at up and one at down
and both have the values of states.
When I select the value from dropdown at top of page it gives the result and
updates the down dropdown by states what i have selected.
This is what I want.
But Now when I select any location from down dropdown it shows the result
from what i have selected in down dropdown but dosent update the up one.
Now if I again goes to up dropdown selection it display the old values and
dosent update any of those.
I have named my dropdown as
<stripes:select name="updropdown" onchange="document.eventForm.submit();">
<%if(services.location!="" &&
services.location!=null)
{System.out.println("inLocation"+services.location);%>
<stripes:option value=""
selected="true"><%=services.location%></stripes:option>
<%}
else{%>
<stripes:option value="">---- View All
----</stripes:option>
<%} %>
<stripes:options-collection collection="${actionBean.locations}"/>
</stripes:select>
&
<stripes:select name="doenDropdown" onchange="document.eventForm.submit();">
<%if(services.location!="" &&
services.location!=null)
{System.out.println("inLocationDown"+services.location);%>
<stripes:option value=""
selected="true"><%=services.location%></stripes:option>
<%}
else{%>
<stripes:option value="">---- View All
----</stripes:option>
<%} %>
<stripes:options-collection collection="${actionBean.locations}"/>
</stripes:select>
and in my java class
i take it as
code:
--------------------------------------------------------------------------------
uplocation=request.getParameter("updropdown");
locationDown=request.getParameter("downdropdown"); if(uplocation!="") {
location=uplocation; } }if(locationDown!="") {
location=locationDown;
}
--------------------------------------------------------------------------------
and with "location " variable i am doing the search.
Please help me how to handle 2 dropdowns with the same values for the
search.
--
View this message in context:
http://www.nabble.com/problem-with-search-using-2-dropdowns-with-same-values-tp19225391p19225391.html
Sent from the stripes-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users