Questions tagged [struts2-config-browser]

The Config Browser is a Struts2 plugin that helps to browse loaded configuration at runtime. When debugging configuration issues it could be very useful to see how the actions are mapped to the URLs.

The Config Browser is a Struts2 plugin that helps to browse loaded configuration at runtime. When debugging configuration issues it could be very useful to see how the actions are mapped to the URLs. Once installed the config-browser could be accessible by opening to the action named index in the config-browser namespace.

Features:

  • Enable to view of loaded configuration in the web browser
  • Visualize all action mappings and all accessible action URLs

Usage: To use the plugin, simply copy the jar into your application. Once installed, you can access the tool by opening to the action named index in the config-browser namespace.

In most cases (if you are using the default ActionMapper), the URL is something like http://localhost:8080/starter/config-browser/index.action.

Example

Error trying to draw image gallery org.apache.velocity.exception.ParseErrorException: Encountered "=" at /templates/gallery-dynamic-slideshow.vm[line 64, column 37] Was expecting one of: ... "-" ... "+" ... "*" ... "/" ... "%" ... ... ... ... ... ... ... ... ... 

The documentation is available.

12 questions
8
votes
1 answer

Struts2 Action being called twice if result type is json

I have an Action class with 4 action methods. All four action action methods use a json result. Via logging statements and debugging, I have verified that if I call action method 1, action method 2 and 3 are also called. But not 4. Finally, action…
Sumit
  • 1,661
  • 1
  • 13
  • 18
5
votes
2 answers

Getting a list of configured actions in Struts2

In a project using Struts2 (2.3.20) I would like to run through the configured actions (name, class, namespace, method) at application startup. I'm using Struts 2.3.20 struts-spring-plugin struts-convention-plugin For reference: I've done some…
Mats
  • 283
  • 4
  • 14
4
votes
1 answer

How to display all available Struts2 actions?

I'm quite frequently asked to solve struts.xml configuration errors. Now, after updating to a later version of Struts2 I myself run into such a mismatch. Resulting in the following error: No result defined for action…
feder
  • 1,775
  • 5
  • 25
  • 36
2
votes
1 answer

Tests Struts2 struts.xml with simple junit

I just want a basic Junit that that will test loading the configuration file struts.xml and making sure all the classes can be found and such. I'm using the struts junit 2.2.1 plugin.
Andy
  • 8,841
  • 8
  • 45
  • 68
2
votes
1 answer

What is "default location" for Struts actions (in config-browser)?

I have been seen there is a "default location" for all my actions when debugging using the Struts plugin "config-browser". Something like the below one: Action information - list* Action name: list* Namespace: Action class: …
Leemax
  • 678
  • 1
  • 6
  • 11
1
vote
2 answers

Struts 2 - HTTP Status 404 - No result defined for action

I'm trying to develop a Struts2 app where an action is invoked upon clicking a hyperlink which directs the user to a hello.jsp using Struts action mapping. I'm getting the following error: HTTP Status 404 - No result defined for action…
jay tai
  • 419
  • 1
  • 17
  • 35
1
vote
1 answer

struts2-convention and struts2-config-browser-plugin cannot work if i change struts.xml path

I use struts2-convention-plugin and struts2-config-browser-plugin in struts2, if i change the default struts.xml path in web.xml: struts2
1
vote
5 answers

There is no Action mapped for namespace / and action name tutorial

I am unable to execute my struts2 application. I am using eclipse indigo IDE, tomcat 7 and jdk 1.7. The jar files I included are: commons-logging-1.0.4.jar, freemarker-2.3.8.jar, ognl- 2.6.11.jar, struts2-core-2.0.11.jar, xwork-2.0.4.jar I…
user1066912
  • 11
  • 1
  • 3
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
2 answers

is it posible to display all the loaded mappings and configs within Struts2 while running?

I often get confused with various cases of the incorrect config for Struts2. Such as after modified packages or classes. The bootstrap log of Struts2 shows hardly any detail on loaded mappings. I want to list all the loaded configures at running…
sdrkyj
  • 75
  • 1
  • 10
-1
votes
1 answer

Struts2 no Action mapped for namespace [/] and action name [index] associated with context path

This has been asked many times before, but not quite the same as this. Everything seems to be present and in the right place. I'm using Java8, Eclipse, Maven, Struts2 w/ Convention Plugin, Spring, Tiles and annotations. The context-root is iquality,…
-1
votes
3 answers

debugging in struts application

i'm new to struts... I have a struts form. i need to analyze the data posted to an action class. i just want to output the data to a page and stop further execution so as to test of it is working correctly... how is it done..?
Akhil K Nambiar
  • 3,835
  • 13
  • 47
  • 85