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
1 answer

Struts action not rendering correct path after change in controller

I'm working on a very old J2EE/struts site and, because of PayPal's recent discontinuation of support for the SSL 3 protocol, am trying to implement a new hosted checkout process whereby a payment gateway accepts a POST with order details, handles…
Thom
  • 73
  • 7
0
votes
1 answer

Struts2 - Can an action name be repeated in the struts.xml using the same action class but for different methods?

My idea is to perform actions using Struts2 the below way using a single Action class and multiple methods in it: View roles action: manage/roles.action?method%3Aview=View Add role action: manage/roles.action?method%3Aadd=Add The URLs are called…
Faisal
  • 645
  • 3
  • 11
  • 24
0
votes
1 answer

how to show form data in struts 1

I need to show data from a form object when a page loads. I call the action execute method which loads and set the data in form object. That action execute method sets "success" in mapping.findForward("success"); and then it goes to the…
romil gaurav
  • 1,121
  • 11
  • 23
  • 43
0
votes
0 answers

How to store resource file in struts in UTF-8 format

Is there any way to store resource file(.properties) in struts 1.x in UTF-8 format. Whenever i save the file it is saved in ISO-8859 format. Also, can i create a text file in resources folder of struts directory which will act as properties file…
vermaraj
  • 634
  • 3
  • 10
  • 34
0
votes
2 answers

Need understanding about struts-config.xml file

Let's say i have a struts-config.xml file, putting action tag only :
vermaraj
  • 634
  • 3
  • 10
  • 34
0
votes
1 answer

Struts DynaValidatorActionForm is not populating sting variables with single quote(')

I have a jsp page which has drop down list, so that user can select one of the value from the drop down list. I am using DynaValidatorActionForm. Some values contain single quote like (Java's). when i receive the value from server side the single…
Naidu
  • 95
  • 1
  • 10
0
votes
1 answer

Attribute "type" must be declared for element "forward" exception.. What it is about..?? what changes do we have to make..?

whenever i launch the webapplication, i get the following exception.. what changes do we have to make..?? do we have to add type attribute to the forward tag of struts-config.xml.. ?? if so, what values the type attribute possibly take ? SEVERE:…
surendhar_s
  • 824
  • 2
  • 12
  • 20
0
votes
1 answer

Struts1 error-Error in Action class and Struts-config.xml files

I am a novice in struts and I have been trying to build a simple struts application. I have errors which I have been trying to resolve for the past couple of days but unable to solve it. The following are the files that I have used- web.xml …
Karthikeyan
  • 25
  • 6
  • 13
0
votes
1 answer

Multiple url-patterns each with its own struts-config file

I am working on a struts 1.3 web application that has 2 interfaces one for regular staff and another for probationary staff. These can be looked at as 2 modules having some interfaces in common and some others that are different. Instead of putting…
Anurag Joshi
  • 235
  • 1
  • 4
  • 17
0
votes
1 answer

Can we automate struts2.x validations framework?

Is there a way to automate the validation framework usage in struts2.x. i mean automatically generate the validation xmls by looking at the form???
tarun
  • 1
0
votes
1 answer

Get list of Message Resource defined in struts config

I am trying to create am method to reload all the message resource defined in struts config. There are more than one message resource defined. I need a way to get all the defined in struts config. I am using Struts 1.2. Thanks…
Jafar Ali
  • 1,084
  • 3
  • 16
  • 39
0
votes
1 answer

Struts unable to find action class

Been banging my head for quiet sometime now as I don't seem to understand why struts is unable to find my action class. This is my struts.xml
tawheed
  • 5,565
  • 9
  • 36
  • 63
0
votes
1 answer

How to Limit Number of Users Logging into the application?

I have made an application in Java(Struts Framework). Is there a direct way or web.xml mapping or something else from where i can restrict the number of users logged in my application. At present, I want only 2 users to login in my web application.…
Vishu Singhvi
  • 417
  • 2
  • 7
  • 24
0
votes
1 answer

Impact of setting BasicDataSource.maxActive to -1

As the description of the property maxAcive of org.apache.commons.dbcp.BasicDataSource says that it sets the maximum number of active connections that can be allocated from this pool at the same time, or negative for no limit. Will there be any…
IMJS
  • 863
  • 2
  • 13
  • 25
0
votes
0 answers

call action class in case of error result in struts2

I have two actions one is for customer search and another is customer update. In customer search customer action is invoked and lands in CustomerEdit.jsp with pre populated values. After changing the existing values i submit the form. If…
Adiant
  • 859
  • 4
  • 16
  • 34