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

  • SEARCH
  • Home
  • 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 9202231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:12:23+00:00 2026-06-17T23:12:23+00:00

I have anchor-link in jsp page as shown below inside the <td> in table.

  • 0

I have anchor-link in jsp page as shown below inside the <td> in table.

<td>
    <span>
        <a href="AddDescriptionForEvent.jsp?" name="count"><%=(cnt)%></a>
    <span>
</td>

here cnt inside scriplet is an integer. The tags are in the <form> and action attribute of the <form> is directing to the correct next page.
I have to take the value of that integer in the next page.

I am using like below,

int day = nullIntconv(request.getParameter("count"));

here nullIntconv will convert string to integer.

but I am not getting the value which I selected. It is giving me 0 always.

Kindly suggest.

  • 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-17T23:12:24+00:00Added an answer on June 17, 2026 at 11:12 pm

    You need some changes in your href ,
    a href doesn’t submit as a form element(eg- textbox,textarea etc..)

    Try using like this..

    <td><span> <a href="AddDescriptionForEvent.jsp?count=<%=(cnt)%>">Click to get count</a><span></td>
    

    In Above count will send as a query string
    On the next page read count from request …

    String c= request.getParameter("count");
    if(c!=null)
    {
    int count=Integer.parseInt(c);//converting back into integer
    }
    

    —–your custom code here———-

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

Sidebar

Related Questions

I have an anchor link as follows: <a class=show-next-page id=10 href=# name=category rel=100000> And
Say I have an anchor link like: <a id=page-contact rel=shadowbox;width=640;height=400 href=/contact.php>link here</a> How would
I have numerous link in my View, which are shown like below retailerName1----------info----------anchor-Link-retailer1 retailerName2----------info----------anchor-Link-retailer2
I have a link ( anchor ) tag in a table cell on every
I have this anchor link: <a href=/question/tag/1/1/?list_id={{title}}>{{title}}</a> Sometimes, this title has some content with
I have an anchor link which links to another page. When it is clicked,
I have a view that contains an anchor link. That link has an href
I have anchor link with both href and onclick events specified. The onclick sets
i have a div and an anchor link in my page, and i referenced
I have anchor link in my page. When I clicked on page anchor link

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.