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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:23:44+00:00 2026-06-11T00:23:44+00:00

I have a struts application, and I am trying to call the Action class

  • 0

I have a struts application, and I am trying to call the Action class with an URL. When I try to pass the request parameters, none of them get appended.

Here is the code I have :

    document.myform.action = "mydetails_${firmID}_${empID}.action?id=56";
    document.myform.submit();

But this is what I see in chrome console :

mydetails_123_04.action?

For some resaon, the stuff after the question mark is not appended. Am I missing something ?

  • 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-11T00:23:45+00:00Added an answer on June 11, 2026 at 12:23 am

    Don’t think you can set params like that in the action. You need to add them as parameters in the form, which involves creating a hidden input node:

    var input = document.createElement( 'input' ); 
    input.type = 'hidden';
    input.name = 'id';
    input.value = 56;
    document.forms.myform.appendChild( input );​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Struts application and I build by form <html:form action=companyProvAdd> ....</html:form> which
I am trying to create a PDF file using struts 2.Action class location is
I'm trying to convert a struts 1 application to Spring MVC 3.0. We have
I have a JSP struts application that uses Spring to integrate with the services/dao/database.
Setup : I have a Struts web application where I use displaytag elements to
We have a Struts 2 web application that's used by pretty much every employee
I am working in a struts-hibernate application. I have seen a error on 3rd
I have a struts2 web application which accepts both POST and GET requests in
I am trying to learn the Apache Struts framework and I have written a
I have written a struts application. When i open the application in my IE7

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.