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

  • Home
  • SEARCH
  • 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 4051654
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:13:17+00:00 2026-05-20T14:13:17+00:00

I am using tiles2 and spring in my project. When i am redirecting from

  • 0

I am using tiles2 and spring in my project. When i am redirecting from spring controller to a jsp(the jsp page is mapped in tiles.xml file) page using query string like:

return "showRes.jsp?subSucc=ok";

it shows me:

javax.servlet.ServletException: Could not resolve view with name 'showRes.jsp?subSucc=ok'

I think this is wrong way to passing data using query string.
Please tell me how can i do this.

Thanks
Shams

  • 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-20T14:13:18+00:00Added an answer on May 20, 2026 at 2:13 pm

    The Problem is that return "showRes.jsp?subSucc=ok"; statment should return the name of a jsp and it is NOT a URL.

    The normal Spring way to pass values is a jsp is to use a Model Map (of course there are some other ways, but this is the easysest to describe one).

    Have a look at the ModelAndView and Model class. Create an instance of it, set the view name and add your parameter, and then return it instead of the String.

    Model model = new Model();
    model.addAttribute("subSucc","ok");
    ModelAndView modelAndView = new ModelAndView("showRes.jsp", model);
    //may without ".jsp" postfix - this depends on your configuration
    return modelAndView;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I like to pass values from a spring controller to a filter without using
I am using Tiles within my web-application. I have a standard-layout (standard.jsp) within the
In Spring MVC I can access my beans in JSP using JstlView's exposedContextBeanNames (or
I am using Apache Tiles 2.1.4 with Spring MVC 3. I have managed to
I have a Spring MVC/3.0 app using tiles as it's view, this is working
I am attempting to pull some information from my tnsnames file using regex. I
I am using Tiles 2 in my Spring 3 MVC application i defines a
Using Spring Security 3 along with Struts 2 and Tiles 2, I have a
Is there a way to get struts 2 (using tiles) to build the whole
I'm using MSVE, and I have my own tiles I'm displaying in layers on

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.