页面判断条件跳转的问题
通过这个链接跳到searchdetail.jsp并传入参数
<a href=\"searchdetail.jsp?lx=<%=type%>&val=<%=zdm%> target=topFrame>xxx</a>
在searchdetail.jsp页面中,通过对传入的lx参数判断跳转的页面,并向跳转的页面传入val值。
但是<%%>不能嵌套,不可以这样写
<%if (lx1.equals("N"))
{response.sendRedirect("searchdetail_n.jsp?val=<%=val%>");}%>
所以想问怎么用JS实现这样的做法?