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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:32:12+00:00 2026-06-06T15:32:12+00:00

You will suppose this is a big question.but there might be a simple problem

  • 0

You will suppose this is a big question.but there might be a simple problem which I can’t find the reason.

There is a form( a simple login) whose action name is ‘loginAction’ in a jsp page called ‘index.jsp’ . In the action class, the execute() method checks whether the username,password are valid. If it is a valid login, execute() method returns SUCCESS which forward to another jsp page called ‘account.jsp’ in a folder called ‘jsp’ inside WEB-INF.

The problem is that, struts.xml forwards all valid logins to the relavant url , but the page(account.jsp) cannot be retrieved.Browser gives 404 error.But the url which the browser says ‘not available’ was just copied and pasted to the browser’s address bar manually. Then the page is displayed !!!
Here is the struts.xml file

<struts>

<include file="/struts_auth.xml" />
<package name="default" extends="struts-default" >

    <action name="login" >
        <result>index.jsp</result>
    </action>        
    <action name="loginAction" class="com.app.action.LoginAction">
        <result name="success">/auth/acc</result>    
        <result name="input">index.jsp</result>
    </action>

</package>

Here is the struts_auth.xml file which is included in above struts.xml

<struts>

<package name="author" extends="default" namespace="/auth" >

    <action name="acc">
        <result name="success">/WEB-INF/jsp/account.jsp</result>  
        <result name="input">index.jsp</result>
    </action>   

</package>

and this is what browser says as the reason
description: The requested resource (/app/auth/acc) is not available. But if this url (http://localhost:8084/app/auth/acc)just copied into the browser’s address bar, it just shows the real page . Please let me know where my problem is.

  • 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-06T15:32:14+00:00Added an answer on June 6, 2026 at 3:32 pm

    For better understanding refer the following link. How to redirect to another action

      <!-- Redirect to another namespace -->
        <result name="success" type="redirectAction">
            <param name="actionName">acc</param>
            <param name="namespace">/auth</param>
        </result>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This might be a silly question, but: Suppose an expression depends only on literals,
This will be implemented in Javascript (jQuery) but I suppose the method could be
Suppose we want to find out what will be the color property of particular
yes, this is a homework-type question but could you please help me out? In
I am facing problem in big decimal no. Following code snippet will explain my
From this question, I know you can use SecKeychainFindGenericPassword without a username value. It
I have a challenging question for you big experts. This has not yet a
How is the scoping of variables handled during exceptions? I suppose this will be
Suppose I have any image(say passport type images where the background will be same
Suppose that both FirstModule and SecondModule handle the Application_BeginRequest event. Will it execute in

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.