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
0
votes
0 answers

Unable to upload any file exceeding the size of 250 MB in struts 1.1

I have encountered an unusual behavior with respect to file upload capability in Struts 1.1 application. I have configured the max upload file size limit using the tag in struts configuration file as follows. Struts uses common fileupload…
0
votes
2 answers

What is the meaning of method = "{1}" in action configuration?

There is a project download from network, in its structs.xml, there is action configuration: /WEB-INF/page/menu/home.jsp I don't…
three-blocks
  • 353
  • 1
  • 4
  • 20
0
votes
0 answers

I want to Unable and disable multi level menu item based on condition in struts2

What i Have Basically Struts2 Multilevel menu Parent item |-sub item |-sub item parent item |-sub item |-sub item likewise, So Here i want to unable and disable sub item(menu) based on condition(flag). for this repository is set…
sachi
  • 1
0
votes
1 answer

How can I map the root path of my web application using struts2?

When I run my strust2 web application, I want to execute an action for the root path [/]. It would be something like an action with no name or just "/", something like:
0
votes
1 answer

Two request parameter in struts2 "redirect-action" result type

In the Below code, loadManagePrdtprty{1}?prtycrnid=${prtCrnId}&exitWindow=${exitWindow} …
Jothi
  • 14,720
  • 22
  • 68
  • 93
0
votes
1 answer

is there way to put condition on an actionForward in struts config xml file

I'm newbie, so please forgive bad terminology, etc... I want to only follow through on my forward when a condition is met, but I don't know how to incorporate that into my struts config xml. For example, I have this:
nessaboo
  • 3
  • 2
0
votes
0 answers

Cannot instantiate JnlpDownloadServlet

I have a JnlpDownloadServlet which needs to be called to generate JNLP dynamically. The web application is in Struts 1.1 framework. This servlet needs to be called after a Struts Action Servlet returns a specific forward mapping name. How to…
deepankardixit90
  • 351
  • 4
  • 19
0
votes
0 answers

I am getting a "Http status 500" when I am running the following struts 1x application in MyEclipse

here are my files in struts application project for uploading a file. Im getting the "status 500" when i am running the code web.xml
0
votes
0 answers

Tomcat session created for every request

When I am trying to access httprequest.getSession() inside struts DispatchAction, it return new session. Any one know the reason for this problem? The same problem does not occur when extending the Action struct.
0
votes
1 answer

Import functionality is working fine on live server but not on localhost in Java

I am getting this stack trace while clicking on import button on web-page, It is working fine on live server but not on localhost in Java, Is it any configuration issue in localhost? Dec 21, 2015 12:46:32 PM…
0
votes
1 answer

How to set the title on text box using List in struts1.x?

I need to set the tooltip(title) on the html components. Here is my code: In Action class: MyForm myForm = (MyForm) form; List listOfTitle = new ArrayList(); listOfTitle.add("AAA"); listOfTitle.add("BBB"); …
Anand Kumar
  • 145
  • 1
  • 3
  • 16
0
votes
0 answers

struts2 - struts.action.extension not working

I am trying to change default url in my application using below code, struts.xml :
MMMMS
  • 2,179
  • 9
  • 43
  • 83
0
votes
1 answer

Session in struts2 application not working

I have tried many examples and referred many questions on Stack Overflow but still not succeeded in setting up logout action for user. I am getting null pointer exception while setting logout action. I also I want that when back button is pressed it…
user4966321
0
votes
1 answer

Struts 2 add exception mapping for certain actions

Consider a project with lots of annotated actions. public class TransferMoney(){ @Action("transfer-money-show-form") public String showForm(); @Action("transfer-money-confirm") public String confirmForm(); …
Alireza Fattahi
  • 42,517
  • 14
  • 123
  • 173
0
votes
0 answers

How does the key picks up correct resource from tiles-def.xml

I have the following code snippet where the key is defined in tiles-def.xml. I want to know how the key correctly maps to tiles-def.xml rather than picking up the resources for the key from application-resources.properties struts-config.xml
vysh
  • 166
  • 1
  • 3
  • 14