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

Do we need to extend struts-default package always?

Do we always need to extend the struts-default package? I am seeing following exception on server startup: Caused by: Error building results for action loginScreen in namespace /User - action -…
2
votes
1 answer

File uploading in struts

I am using Struts in my j2ee project. I have to upload a file my jsp in simple form is this
Waqas Ali
  • 1,642
  • 4
  • 32
  • 55
2
votes
1 answer

The requested resource is not available in struts2

I have been developing my first simple application. I have included all the necessary libraries into the WEB_CONTENT/WEB_INF/lib in order to run a basic struts application. But when i open the url it shows: The requested resource…
R9J
  • 6,605
  • 4
  • 19
  • 25
2
votes
1 answer

Avoid Return "input" Automatically in Struts

There is no problem when the action configuration in struts.xml is like this: /customer.tiles The problem comes when I access the action class on action…
Mahadi Siregar
  • 615
  • 3
  • 17
  • 38
2
votes
2 answers
2
votes
1 answer

Does struts 2 package have to extend "struts-default"?

I declared a package in struts.xml. But tomcat6 can't startup since I added it. The configuration in struts.xml is:
Chailie
  • 451
  • 2
  • 11
  • 24
2
votes
1 answer

Struts 1 action forward from struts-config calling to another action from another struts-config file

I'm trying to call using action forward property in struts 1 from struts-config, and I would like to invoke another action, which it's located in another struts.config file. And obviously it doesn't work! My code is: In "struts-misExpedientes.xml"…
David
  • 23
  • 1
  • 7
2
votes
4 answers
2
votes
1 answer

What is the difference between DynaActionForm and ActionForm?

What is the difference between DynaActionForm and ActionForm ? Someone said DynaActionForm is not really dynamic since you still have to restart the server after you re-configured the properties in the struts-config.xml file (or else modifications…
Joe.wang
  • 11,537
  • 25
  • 103
  • 180
1
vote
1 answer

Confusing about Global forward and Action mapping

for example My question is: When client…
Xitrum
  • 7,765
  • 26
  • 90
  • 126
1
vote
1 answer

What is the use for form beans vs form action in struts1?

If form bean is used to store the variables of the JSP form connected via action="submitDetailForm" for example then what are ActionForms for?
1
vote
1 answer

Unable to find forward in struts

FormBackup.java package beans; import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionMapping; import…
suriya
  • 13
  • 3
1
vote
1 answer

Struts2 tiles How to set attribute values in dynamically…

In tiles.xml set attribute values in static
RSK
  • 211
  • 1
  • 4
  • 17
1
vote
1 answer

Struts form automatically submitted when using validate() method

I am using struts 1.2. My struts flow is working properly but when I am using validate() method of action form for validation. my form is automatically submitted. and this validation method get called. I am not sure this is normal behavior of struts…
Pedantic
  • 1,368
  • 10
  • 39
  • 70
1
vote
1 answer

Selectively deny access to a subset of actions for a logged in User

In my struts application, I want to selectively redirect some Users (based on their role) to a static page when they access some of the actions. I am not looking for full fledged Authorization solution here, but my problem is very much similar. Is…
Salman A. Kagzi
  • 3,833
  • 13
  • 45
  • 64
1 2
3
11 12