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

Struts 2 Action Mapping with PrefixBasedActionMapper

I'm trying to change the way urls are mapped in Struts 2. I would like to be able to set up a url like www.site.com/login.action and have it look like www.site.com/action/login I understand I can remove the action extension using the struts.xml…
1
vote
0 answers

velocity localization configuration

here my struts configuration
1
vote
1 answer

How to put initialization of my own connection pool in struts-config.xml?

I have my own connection pool class public class ConnectionPool { private static final Logger log = Logger.getLogger(ConnectionPool.class); public final static String PROPERTIES_FILENAME = "config"; public static final int DEFAULT_POOL_SIZE =…
And
  • 343
  • 1
  • 5
  • 15
0
votes
3 answers

Token interceptor in struts 1.2

My project is in struts1.2. Is there any to implement Token interceptor (struts2) in struts1.2? I know it can be implemented by using saveToken(HttpServletRequest req) isTokenValid(HttpServletRequest req) resetToken(HttpServletRequest req) But I…
Vipul
  • 816
  • 4
  • 11
  • 26
0
votes
1 answer

Error for 404 pageNotFound with struts2

Can anyone explain me why I am getting the following exception: java.lang.ClassCastException: org.apache.struts2.dispatcher.StrutsRequestWrapper cannot be cast to com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0)…
user1278890
  • 643
  • 8
  • 22
0
votes
2 answers

unable to give exact target to refresh my div in jquery function

sir, when i click on "Rename Day button" jquery popop calender appears in my screen , once if i click on its submit button it is forwarding to my page but is not refreshing the exact div.. I do not where should i specify div target for refreshing my…
Dan
  • 2,086
  • 11
  • 71
  • 137
0
votes
1 answer

How to handle exceptions thrown in a Struts 2 user-defined AJAX result?

I am using Struts 2 user-defined result that is used with an AJAX request. When it throws an exception, I get a "Struts Problem Report" in html format as a response. This is not very useful. How can I intelligently handle such an exception -- either…
Victor Lyuboslavsky
  • 9,882
  • 25
  • 87
  • 134
0
votes
1 answer

Where to store database connection & global variables in struts 1.3

I am new to struts java application & i want to store database connections & global variables. What is best option to store values (Web.xml or struts-config.xml). and How to access the variables defined in that xml files. Is there any other way to…
Coder Guru
  • 513
  • 3
  • 18
  • 37
0
votes
1 answer

struts2 json do not return value from a variable

I am doing my struts project now i want to retrieve data as json. But the variable that i want to get the json response does'nt retrieve the json values that i need. Here is my Action class import com.myDrDirect.hbmobj.Doctor; import…
user359187
  • 2,269
  • 6
  • 29
  • 44
0
votes
1 answer

High CPU Usage java+struts+tomcat project

I have a web application that developed using j2ee and Struts 2 MVC. Sometimes my application hit near 99% CPU usage. It's only accessed by 3 or 4 users. Anybody know why this is happening? How do I know which tasks take more CPU time in my…
vks
  • 6,649
  • 7
  • 36
  • 55
0
votes
1 answer

Struts "org.apache.struts.action.RequestProcessor - Unhandled Exception thrown" - How to get full stack trace?

Sometimes, during development I get: [http-8080-6] WARN org.apache.struts.action.RequestProcessor - Unhandled Exception thrown:"... from struts. When it reproduces, I'm debugging it and find the problem, however, If I cannot reproduce, I will…
Maayan
  • 63
  • 1
  • 8
0
votes
2 answers

on submission JSP page disappear from browser

This is the first time I am working with struts (1.2) In my jsp page I have a form, user needs to provide IP address and filename, once he submit the page, this data is passed on to a web service which does connection to the device and collects data…
Aqura
  • 390
  • 1
  • 4
  • 15
0
votes
1 answer

Strut2 default interceptor result page

In struts2 i have one default interceptor and lot of actions in the struts.xml page. My struts.xml is like this
anoop
  • 1,604
  • 6
  • 24
  • 50
0
votes
3 answers

Not able to configure Struts in my system

I have installed Eclipse Heloios3.6 and Tomcat 6.0 and jdk 1.6. Can you give the library files for struts and configuration file for struts namely struts-config.xml and web.xml? While I tried to run struts, it shows the requested resource is not…
karthik
  • 17,453
  • 70
  • 78
  • 122
0
votes
1 answer

how do i find html of struts?

I am really new and not familiar with this...I am trying to edit this folder with a ton of files in it including .xml....I need to find the html part but it is using "struts" and I don't know much about it other than it being a Java MVC…
Bulvak
  • 1,794
  • 8
  • 31
  • 63