Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

redirect not working  RSS feed

Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a post that returns back to itself and hits this bit of code. I was expecting it to redirect back to itself again but go back to the point hwere the user pressed a delete submit button. Instead, it comes back and shows an interrupted rebuild of the page. Any ideas on why or how I can do what I am trying to do?

<c:if test="${not empty param.delete}" >
<c:forEach begin="0" end="${e.counter}" varStatus="loop">
<c:set var="skip" value="false" />
<c:forEach var="checkbox" items="${paramValues.cbox}" >
<c:if test="${checkbox == loop.index}" >
<c:set var="skip" value="true" />
<c:if test="${skip == 'false'}" >
<c:set var="paramName" value="tbox_${loop.index}"/>
<c:set target="${e}" property="newelements" value="${param[paramName]}" />
<sql:update dataSource="${datasource}" var="update" >
UPDATE sudoers SET ${e.element}="${e.newelements}" WHERE Hostname="${e.hostname}"
<c:redirect url="https://localhost:8443/stuff/stuff.jsp" >
<c aram var="action" value="Modify" />
<c aram var="submit" value="Submit" />
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!