Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3322156
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:08:54+00:00 2026-05-17T23:08:54+00:00

I have a controller bound the URL: /ruleManagement. Inside my JSP, I have a

  • 0

I have a controller bound the URL: “/ruleManagement”.

Inside my JSP, I have a form that forwards (on submit) to “ruleManagement/save” url. When there are errors with the input fields, I want it to return back the original form View. This is where the problem starts…

Problem 1) Now that the URL is “/ruleManagement/save”, my form submit now points to “/ruleManagement/ruleManagement/save”.

Problem 2) I tried using spring:url tag to generate the absolute paths for me, which usually works great. But when I put a spring:url tag inside of a tag, the spring:url tag does not get parsed correctly.

<form:form action="<spring:url value='/ruleManagement/save' ...>" method="post">

When I analyze the DOM after the page loads, my form tag looks something like:

<form action='<spring:url value="/ruleManagement/save" />' ... >

If I don’t use the spring:url tag, and instead use just “/ruleManagement/save”, the url generated excludes my application name in the url, which is also wrong.

How do I generate a consistent URL pattern across all Views regardless of path? If the answer is “using spring:url”, how do I get that content inside a form:form tag?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T23:08:55+00:00Added an answer on May 17, 2026 at 11:08 pm

    Custom tags in JSP can’t be used in attributes of other custom tags, so you need to store intermediate result in a request attribute (using var to redirect output of the tag to the request attribute is a common idiom supported by many tags):

    <spring:url var = "action" value='/ruleManagement/save' ... />
    <form:form action="${action}" method="post"> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an HttpPost controller action that takes in a simple form DTO object.
I have a Model that has several properties. When I submit a form, I
I have controller PlayerController and actions inside: View , Info , List . So
I have an array controller which is bound to an nstableview. I also have
I have a controller that handles file uploads. Ultimately I would like to be
I have a texfield bound to an ArrayController. The controller key is selection because
I have a controller POST action that redirects to a GET method using RedirectToAction.
I have an NSTextField label whose value is bound to controller.status When I call
I have a view controller which includes a MPMoviePlayer inside. I hide the navigation
I have a tableview whose columns are bound to an array controller. I'm programmatically

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.