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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:00:37+00:00 2026-06-09T14:00:37+00:00

I am using spring mcv with ibatis and jsp for viewing. my question is

  • 0

I am using spring mcv with ibatis and jsp for viewing.
my question is in jsp page, i am viewing like a data table containing a BUTTON at last column which is rendering from spring controller as my jsp page shown below.

<c:forEach var="aff" items="${hotellistdisplay}">

<td width="auto" align="center" class="row2"><b>
  <input type="button"  name="mybutton" id="${aff.hotel_id}" class="view" value="Deactivate">
  </b> </td>

there is 10 row containing button but as user click on a one of row the value of button should changed to ACTIVE without affecting the other row button.
Though i got the code on based of class i am changing the value but it reflects all other button too.
I want the value shouls be changed for particular for which the user click..

any help plz.
Thanks.

  • 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-09T14:00:39+00:00Added an answer on June 9, 2026 at 2:00 pm

    You can still use class attribute, but use this instead inside your function:

    $(".view").click(function(){
       $(this).val("ACTIVE");
    });​
    

    Demo HERE.

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

Sidebar

Related Questions

I am using Spring MVC with Hibernate. My page has a button that creates
Using: Spring 3.1.0.RELEASE, Spring Data MongoDB 1.0.0.RELEASE I have a document class defined like
I'm using Spring-Data-JPA 1.0.3.RELEASE to manage my ORM. my persistence.xml looks like this: <persistence>
I am using spring mvc 3.0,jsp,mysql. I have table tbl_employee and it's attributes are
I am using Spring MVC 3.0 I have a guestbook.jsp page where I want
Using Spring as Framework, if i need provide business logic's service to either JSP/Servlets(on
Using Spring 3 MVC and JSP, I simply want to test if a user
Using Spring 3, I like to create an exception handler using the ExceptionHandler annotation
Using Spring 1.2.1 and oracle.jdbc.pool.OracleDataSource 10.2.0.3.0 I sometimes get a stack trace like below.
when using spring rest server side generate json, it will looks like below {userInfo:{id:123,userFullName:full

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.