Questions tagged [struts2-codebehind-plugin]

The Codebehind Plugin adds additional configuration options using annotations that reduces mundane configuration by adding "Page Controller" conventions.

The Codebehind Plugin adds additional configuration options using annotations that reduces mundane configuration by adding "Page Controller" conventions.

It provides the following features:

  • Provides default mappings for pages that don't have Actions
  • Provides default results by auto-discovering pages

At the current the plugin is deprecated and replaced with Convention Plugin.

For details see: http://struts.apache.org/release/2.3.x/docs/codebehind-plugin.html

5 questions
3
votes
1 answer

How to define the stream Result annotation?

I need to export the Excel sheet, so calling action class method through Ajax call from dialog window. I have Excel icon, when I click the icon calling method and processing the backend data, and finally going to execute the below code and return…
user2444474
  • 623
  • 8
  • 21
  • 40
1
vote
1 answer

Codebehind plugin have access path as .action?

Can I able to access method as action in Struts 2 with Codebehind plugin? Since there is no struts.xml file and its works as action!method in the URL. Just I'm wondering to access a method How to use Struts tag on class? "@Action(name="action"),…
user2444474
  • 623
  • 8
  • 21
  • 40
1
vote
0 answers

How to get JSONArray values in Jquery Ajax url?

I have JSONArray value in struts2 action class and need to pass to Jquery Ajax url to display into jquery datatable. Action class: public String JSONOarr(){ JSONArray ja = new JSONArray(); try { Iterator it = findList.iterator(); …
user2505078
0
votes
1 answer

can both code-behind and convention plugins co-exist in struts2 application?

I want to use both code-behind and convention plugin in my struts2(2.3.15.3) application. I have tried configuring it. Code behind is working as before, but convention based actions are not working as expected (404 error could not find the mapping).…
-1
votes
2 answers

Couldn't find action or result. No result defined for action in Struts 2

I have configured the annotation to return the values as text. But it's giving me the error: could not find action or result. Console error: org.apache.struts2.dispatcher.Dispatcher - Could not find action or result /part!finder.xhtml No result…
user2444474
  • 623
  • 8
  • 21
  • 40