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

unable to create a table using of# MySQL

hibernate is not able to create a table why...? org.hibernate.dialect.MySQLDialect com.mysql.jdbc.Driver
alok
  • 11
  • 6
0
votes
0 answers

Struts2 int type conversion

i have a java web application using struts2 (vers: 2.3.15) and I need to apply type convertion to a int I wrote the following code: package sistema.conversores; import java.text.DecimalFormat; import java.text.NumberFormat; import…
Aegis
  • 113
  • 7
  • 27
0
votes
1 answer

Struts 2 plugin Conversion - from Codebehind to Convention plugin

I'm getting confusion to converting the codebehind annotation to conventional struts.xml file. How to identify action name in action class? Because if write method public String list{} - action its match with JSPs product-list.jsp will automatically…
0
votes
1 answer

NullPointerException when I try to run Struts Dispatcher

I am trying to run a simple Struts example with Dispatcher, but I am getting below error SEVERE: Servlet.service() for servlet [jsp] in context with path [/StrutsDispatcher] threw exception [java.lang.NullPointerException: Module 'null' not…
tom
  • 5,114
  • 6
  • 24
  • 36
0
votes
1 answer

Struts2 - Difference between struts.xml and struts-plugin.xml?

I have confusion about these files in struts2. Normally struts.xml file the core which has configuration in struts1. So I also thought of using struts.xml file. But in my project already they put struts2-config-browser-plugin.jar, it has…
user2444474
  • 623
  • 8
  • 21
  • 40
0
votes
0 answers

How to use decrypted password in struts config datasource

I am using unencrypted DB password in Struts config datasource block, but for security concerns I would like to use encrypted password over there. I am not sure how would that work when the application is loaded and checks for DB connectivity. I am…
user1487454
  • 41
  • 1
  • 6
0
votes
1 answer

Struts 2 Jars Conflict

My struts 2 tile application was working fine. But after adding the struts2-jquery-plugin library jar, I am getting the following error: "SEVERE: Exception starting filter struts2 Unable to load configuration. - [unknown location]" My libraries…
0
votes
2 answers

Struts 2 in eclipse giving "requested resource not found"

CONSOLE OUTPUT 16 May, 2013 6:06:51 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program…
adarshhsingh
  • 61
  • 1
  • 1
  • 6
0
votes
1 answer

struts 2 rest plugin client program

i am writing the client web jsp page just like having one form(get) with user name search text box and submit button when the user submits it returns the json format of user but the url looks like when i submit it…
pavan
  • 334
  • 6
  • 20
0
votes
1 answer

Open report in excel using POI and browser remains the same

I have an export to excel link which when clicked Javascript calls action class. JS looks like this: function exportFt() { alert("Export Ft"); var url = "/CaseIdsExport.do?"; …
Geek
  • 3,187
  • 15
  • 70
  • 115
0
votes
2 answers

dynaactionform vs ActionForm

What does DynaActionForm in struts actually do? It is said that "if we develop more and more struts application or Action classes then more and more ActionForms have to be created. Means, ActionForm for just about every piece of business logic that…
AmitG
  • 10,365
  • 5
  • 31
  • 52
0
votes
1 answer

Pass value from JSP to Action Class in Struts

In the following code Sample i am trying to pass param1 value from my jsp to myaction class. When the user clicks on file number i am trying to pass the file number as well as the param1 value.
Sayan
  • 145
  • 2
  • 15
0
votes
1 answer

How to disable struts 2 validation before form submission?

I'm doing a project with struts2, Hibernate. I want struts to validate my form. I have added a MyAction-validation.xml and it works fairly well. (I say fairly well because it doesn't validate on the client side. I have set the validate attribute of…
Johnny
  • 1,509
  • 5
  • 25
  • 38
0
votes
0 answers

How do I figure out why my Struts 2 action hasn't been mapped?

Possible Duplicate: There is no Action mapped for namespace / and action name tutorial When I try to hit my Struts 2 action, I get the following error message: There is no Action mapped for namespace / and action name getTutorial. - [unknown …
user1066912
  • 11
  • 1
  • 3