Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8319245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:15:51+00:00 2026-06-08T22:15:51+00:00

I’m trying to learn how to use a remote division, so I’ve been checking

  • 0

I’m trying to learn how to use a remote division, so I’ve been checking the showcase of struts2-jquery-plugin and I didnt understand much how things are working. Here what they have in the download :

struts.xml :

<struts>
    // some other instructions and constants
    <include file="showcase.xml" />
</struts>

showcase.xml : ( Should it be empty?? )

<struts>
    <package name="showcase" extends="struts-default,json-default" namespace="/">
    </package>
</struts>

RemoteDiv.java :

package com.jgeppert.struts2.jquery.showcase;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;

import com.opensymphony.xwork2.ActionSupport;

@ParentPackage(value = "showcase")
public class RemoteDiv extends ActionSupport {

  private static final long serialVersionUID = -6793556760537290969L;

  @Action(value = "/remote-div", results = {
    @Result(location = "remote-div.jsp", name = "success")
  })
  public String execute() throws Exception
  {
    return SUCCESS;
  }
}

So my questions are :

1) Is the annotation @Action obligatory or is it replacing the actions which we should declare in struts.xml?

2) What is /remote-div about? The name of the action which we should mention in struts.xml??

3) In my case I’m using tiles, should I do location = “mypage.tiles” , I mean the name given to the page in tiles.xml ?

4) what about @ParentPackage(value = “showcase”), should we mention the name of the parent package only without the entire path??

5) In which case I would need json plugin?

I do appologise in advance if my questions are stupid. But understand me guys, I’m still a beginner. A big Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T22:15:53+00:00Added an answer on June 8, 2026 at 10:15 pm
    1. It’s the action mapping annotation. Actions have to be mapped somehow by annotation, by XML configuration, by convention (i.e., convention or REST plugins).
    2. It’s the name of the action. Don’t define actions via annotations and XML–pick one.
    3. Yes, and you’ll need to define the result type, or use tiles as the default result type.
    4. That’s the name of the S2 package, i.e., the <package> in the config file.
    5. In the case you want a JSON result.

    Regarding your question “should the package declaration be empty”–only if you want it to be empty. It defines a package, and various things relating to a package (like interceptor stacks, result types, results, the first part of the URL, etc.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I am trying to render a haml file in a javascript response like so:
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.