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 8231229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:24:57+00:00 2026-06-07T17:24:57+00:00

I am applying display tag to my jsp in struts but not able to

  • 0

I am applying display tag to my jsp in struts but not able to do it please check out

1.strutsconfig

<form-beans><form-bean name="DailysheetForm" type="com.myapp.struts.DailysheetForm"/>
</formbean>
<action input="/" path="/DailysheetList" name="DailysheetForm"  scope="request"            type="com.myapp.struts.DialysheetListAction">
   <forward name="success" path="/DailysheetList.jsp"/>
</action>

2.Form

public class DailysheetForm extends ActionForm 
 {
// some getter and setter methods i used like receiptno
   protected ArrayList arraylist;
   public ArrayList getArraylist()
     {
       return arraylist;
     }

public void setArraylist(ArrayList arraylist) {

    this.arraylist = arraylist;

}

3.Action Class

public ActionForward execute(ActionMapping mapping, ActionForm form,
        HttpServletRequest request, HttpServletResponse response)
        throws Exception {

    ArrayList dailysheetdata;
    DailysheetForm dailyform = (DailysheetForm) form;
    Class.forName("com.mysql.jdbc.Driver");
    Connection connect = DriverManager.getConnection("jdbc:mysql://localhost/Stonecrusher?"
                        + "user=Stonecrusher&password=xxxxxx");
    System.out.println("Connection"+connect);
    dailysheetdata = StoneCrusherData.getDailysheetData(connect);

    dailyform.setArraylist(dailysheetdata) ;
    return mapping.findForward(SUCCESS);
     }

JSP

<display:table id="data"  name="requestScope.DailysheetForm.arraylist"requestURI="/DailysheetList" pagesize="10" >
  <display:column property="receiptno" title="RECEIPTNO" sortable="true"/>
  <display:column property="cutomername" title="CUSTOMER NAME" sortable="true"/>
</display:table>
<display:table id="data" name="requestScope.DailysheetForm.arraylist" requestURI="/DailysheetList" pagesize="10" >
  <display:column property="receiptno" title="RECEIPTNO" sortable="true"/>
  <display:column property="cutomername" title="CUSTOMER NAME" sortable="true"/>
</display:table>

It is not working and basically I am getting data to dailysheetdate which is arraylist in my Action Class and I want to display it in jsp with pagination. I know I was wrong please help me how to do it.

  • 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-07T17:24:58+00:00Added an answer on June 7, 2026 at 5:24 pm

    Check your jar files whether you placed all required jars in to lib or not..
    still have a problem paste your Error here..

    See the Tutorial for Display Tag

    then you need not Specify input and name attributes in <action> in strutsconfig.xml

    i.e your code should like ethis

    <action path="/DailysheetList" scope="request"  type="com.myapp.struts.DialysheetListAction">
       <forward name="success" path="/DailysheetList.jsp"/>
    </action>
    

    then definitely Action Class will execute..

    And one more thing by seeing your action class code i does’t know whether StoneCrusherData object is created or not.. check below line also

    dailysheetdata = StoneCrusherData.getDailysheetData(connect);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm applying the strikeout tag: <s>$5,000,000</s> But the line is too low.. .it's about
There's no shortage of questions and answers about centering but I've not been able
I need to display form-level errors in my forms (errors that do not belong
i am applying a border to NSView but how can i change the bordercolor.
I am applying truncation using CSS styles: .yui-skin-sam td:not(.yui-dt-editable) .yui-dt-liner{ white-space: nowrap; overflow: hidden;
I have the following CSS class that I'm applying on a <td> tag: .bg
I am applying a ViewerFilter to a tree of a few branches, but mostly
I have a bitmapData that I want to scale with TweenLite but when applying
I have been reading about tag aware sharding..These are the links I referred: http://www.mongodb.org/display/DOCS/Tag+Aware+Sharding
I would like to display a formatted date in twig by applying a filter

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.