Questions tagged [struts-config]

Use this question for struts-config related questions.

The struts-config.xml configuration file is a link between the View and Model components in the Web Client. It plays an important role in building both Controller components and Application-specific configurations.

This file is created to every application in the format as <module>-struts-config.xml, where can be topo, fault, perf and so on. For example, a struts-config.xml file of the fault module is represented as fault-struts-config.xml and is present in /webclient/fault/conf directory.

Attribution : http://www.webnms.com/webnms/help/developer_guide/web_client/web_struts_config.html

171 questions
1
vote
2 answers

Struts.xml package namespace in eclipse

I'm trying to setup an apache tomcat server with a struts application. Problem was the project's directory structure was poorly mapped out. I've updated it and running into a problem when I try to start my server. My folder structure is as…
B.Z.B
  • 471
  • 2
  • 10
  • 24
1
vote
1 answer

Can't fix "There is no Action mapped for namespace [/build/result] ". What is the correct way of adding action to bamboo namespace?

I am developing a bamboo plugin using the Atlassian-SDK. This plugin would add a new tab to the Bamboo Jobs page that would display an HTML report (present in artifact) in the same tab. My Atlassian-plugin.xml looks like
1
vote
1 answer

Is there a different way to configuring actions in Struts 2?

I have requirement to migrate legacy (Struts 1) code to Struts2. If there are multiple methods in same action class, can we configure them in single tag? struts.xml
AbhiN
  • 642
  • 4
  • 18
1
vote
1 answer

How to use a global forward (struts-config.xml) in Struts2 JSP?

I am migrating a Struts1 web app to Struts2. I have the following in my struts-config.xml file: In my JSP today (Struts 1), I have this call:
CoachJon
  • 77
  • 1
  • 8
1
vote
1 answer

Struts 2 - Cannot display value from Action in JSP Page

I'm newbie and work with Struts 2. I waste some days but cannot fix it. eclipse 4.4.2 luna struts 2.3.20 tomcat 8 action class: public class UserAction extends ActionSupport implements Action{ private static final long serialVersionUID =…
ducpm121
  • 11
  • 3
1
vote
1 answer

How to hide the "action" extension

When user makes login then on success browser redirect to http://appname.com/main.action How can I make so that adress line will looks like http://appname.com/main
user4591549
1
vote
2 answers

how to implement global redirect page in struts2

We're using Struts 2 in our web application. There are bunch of action mappings defined already, I want to implement a feature where any Urls starting with /buy and not mapped to any of the existing action mappings e.g. /buy/new or buy/old should be…
Sameer Malhotra
  • 424
  • 3
  • 12
  • 29
1
vote
0 answers

Struts 2 - Deleting temp files created for file upload

Struts create temp files as part of file upload . I have specified my own location (struts.multipart.saveDir) for creating the temp files. My problem is that the temp files that are getting created are not getting deleted. I was under the impression…
IS_EV
  • 988
  • 2
  • 15
  • 29
1
vote
1 answer

Why my first "Hello World" LifeRay portlet result to be "temporarily unavailable."?

I am absolutly new in LifeRay portlet development and I have some problem to create an "Hello World" test portlet into a project on which I am working on. In this project it is used Structs 2 to do the dispatchment. So I have done the following…
user4353372
1
vote
1 answer

struts-config and message-resources : one Generic or one foreach langage

I supposed it is a quite easy question but I never receive any clear answer. I'am currently handling the internationalization of a struts application. After a long research, i found out that I was missing something int the struts-config.xml : the…
Alexandre SIRKO
  • 816
  • 11
  • 22
1
vote
1 answer

JSON response in struts

I have defined the result type for my action as follows.
Abhijith Madhav
  • 2,748
  • 5
  • 33
  • 44
1
vote
1 answer

How to validate the url action mapping of Struts 1 in Filter

Please can somebody help me out,I need to verify the url action mapping of struts 1 on Filter level.If the provided url action mapping exist in Struts1 then it is ok otherwise show 404 error. This code show 404 page but i need to validate url…
asad khan
  • 65
  • 1
  • 3
  • 9
1
vote
2 answers

multiple struts actions on single form not working

I am trying to call an action on submit button but it is not working. index.jsp
Govinda Sakhare
  • 5,009
  • 6
  • 33
  • 74
1
vote
1 answer

How to access path attribute of action tag (struts-config.xml) in Action or dispatch action class?

I am using unspecified method of DispatchAction and there is a situation where I need to know the contents of the path attribute of action tag in struts-config.xml, because this Action class is being used for two action paths. eg:
harshal gad
  • 43
  • 1
  • 7
1
vote
0 answers

JSP Timeout Issue in Struts2

I am using struts framework in which a JSP page submits form data. In Action we have a REST call to other application whose timeout is set to -1 (infinite). The request is processed at the other application smoothly. But while the processing the…
Sunil Gulabani
  • 878
  • 1
  • 8
  • 21