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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:33:40+00:00 2026-06-06T21:33:40+00:00

I have created a login page which authenticates a user via the atuthentication class.

  • 0

I have created a login page which authenticates a user via the atuthentication class. After authentication I am using the following statement is to redirect to a JSP page.

response.sendRedirect("welcome.page");

This should look for the tiles-defs.xml for the mapping to an actual jsp page. I have provided this as follows

<definition name="main.layout" path="/mainLayout.jsp">
<put name="header" value="/header.jsp"/>
<put name="info" value="/info.jsp"/>
<put name="menu" value="/menu.jsp"/>
<put name="body" value=""/>
<put name="footer" value="/footer.jsp" />
</definition>

<definition name="welcome.page" extends="main.layout">
<put name="title" value="Welcome"/>
<put name="body" value="/welcome.jsp"/>
</definition>

I have created the mainLayout.jsp and the welcome.jsp pages. Now when a user has been authenticated it must redirect to welcome.jsp. But I am getting a “The webpage cannot be found” error. I guess the mapping is not correct which is why it is not able to find welcome.jsp, but I cannot figure out where I went wrong.

  • 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-06-06T21:33:42+00:00Added an answer on June 6, 2026 at 9:33 pm

    You can’t redirect to a tile definition. A redirect consists in sending a response to the browser telling him: “please go to the following URL”. A tile definition is not a URL.

    You can redirect to a JSP, and the JSP will be executed. It’s bad practice though, because in a properly designed MVC application, all the requests should go through a controller. And you can redirect to the URL of an action of course, which is what you should do: redirected to the welcome.do URL (assuming welcome.do is the URL of the Struts welcome action)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a simple login page for asp.net which takes in user name
i have created one login and register view in that view after login user
I have created a login page. In this page i used div tag which
I have created a simple login page which is based on the sessions. session_start();
I have a Login Page which is created in asp.net now when i successfully
I have created a page which is a login portal to three separate websites.
I have created login page forced login in several pages. Now i need to
I've created a login page and in the db table i have a field
I have created a User called Student and Teacher that can login into the
i have created a forum using php/mysql and users login through facebook using php

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.