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 7528373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:21:43+00:00 2026-05-30T04:21:43+00:00

I have problem, how to create uri in action attribute. I have to use

  • 0

I have problem, how to create uri in action attribute. I have to use subfolders as “user”, “admin” because I use Spring Security.

<form:form action="/user/reservationTour.html" method="post" commandName="bookTourForm">

Result, no project name http://localhost:8080/user/reservationTour.html

<form:form action="user/reservationTour.html" method="post" commandName="bookTourForm">

Result, 2x user in link http://localhost:8080/ProjectContextTitle/user/user/reservationTour.html

<form:form action="<c:url value="/user/reservationTour.html" />" method="post" commandName="bookTourForm">

Result, exception

org.apache.jasper.JasperException: /jsp/user/reservationTourPage.jsp(7,33) Unterminated &lt;form:form tag

This works fine, but sure not good solution

<form:form action="/ProjectContextName/user/reservationTour.html" method="post" commandName="bookTourForm">
  • 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-30T04:21:44+00:00Added an answer on May 30, 2026 at 4:21 am

    If you’re already in the user directory, you just need to use a relative URL:

    <form:form action="reservationTour.html" method="post" commandName="bookTourForm">
    

    If you want to use an absolute URL, use <c:url>, but don’t include it in the attribute of another JSP tag: that’s illegal.

    <c:url value="/user/reservationTour.html" var="theAction"/>
    <form:form action="${theAction}" ...>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with the Create View in the SimpleRepository example in Subsonic
I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE
I have problem with Qt::Tool flag. When I create new widget with Qt::Tool flag
I have a problem... I create a MFMailComposeViewController and it shows up. However, neither
I have a problem with my WPF program. I'm trying to create an object
i have very simple problem. I need to create model, that represent element of
Here's my problem: I have do create a menu/list of actions (which would be
I'm using Rational Application Developer to create some web services. The problem I have
i have a big Joomla 1.5 Problem. I'll create my own Gallery Component/PlugIn and
I need to use something like get_or_create() but the problem is that I have

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.