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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:50:23+00:00 2026-05-24T00:50:23+00:00

My jsp page display a list using logic iterate. every row displayed has a

  • 0

My jsp page display a list using logic iterate. every row displayed has a edit link too. when edit linked clicked Name will be changed to textbox so it can be edited.and sent along with commit link. html:text value i need to send with html:link.
part of my jsp is below,where I have

html:text property=”newId” value=”<%=modId%>”/> I want to pass this property as hashmap with html link as I am sending “/> as param1 Please help. or suggest any other way to do this. Thanks .

####################################################################################
<logic:equal name="mode" value ="1">
 <td><bean:write name="display" property="productId"/></td>
<logic:notEqual name="edit" value="1">          
<td><bean:write name="display" property="productName" /></td>       
</logic:notEqual>
<logic:equal name="edit" value ="1">
<logic:equal name="display" property="productName" value ="<%=modId%>">
<td><html:text  property="newId"  value="<%=modId%>"/></td>
</logic:equal>
 <logic:notEqual name="display" property="productName" value ="<%=modId%>">
<td><bean:write name="display" property="productName" /></td>   
</logic:notEqual>
</logic:equal>

<bean:define id="param1" name="display" property="productName"/>
<%
    String changedName=request.getParameter("changedName");
    System.out.println("  st: " + changedName);
    java.util.HashMap params = new java.util.HashMap();
    if(param1!=null)
        params.put("objectToEdit", param1);
        params.put("abc",param1);
        pageContext.setAttribute("paramsName", params);
%>
</logic:equal> 

#####################################################################################

Same JSP HTML:LINK PArt
 #######################################
<html:link action="Manager?edit=1" name="paramsName" onclick="return modify()">
 <logic:equal name="edit" value ="1">
   <logic:equal name="display" property="productName" value ="<%=modId%>">
    <img src="../images/commit.png" border="0" style="background-color:blue" title=" bean:message key="commit.data"/>" >
   </logic:equal>
</logic:equal>
</html:link>
  • 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-05-24T00:50:24+00:00Added an answer on May 24, 2026 at 12:50 am

    Well I did it using java script.
    hope my solution help someone

    function modify(){
        var textBox = document.getElementById('editableTextBox');//text box name
        var newName = document.getElementById('editableTextBox').value;
        if(textBox!=null){
            var table = document.getElementsByTagName("table");
            var rows = table[3].rows;
            var rowCount=0;
            for(i=1;i<rows.length;i++){
                rowCount = i;
                var cells = rows[i].cells;
    
                         if(cells[1].hasChildNodes()){
               var nodeName = cells[1].childNodes[0].nodeName;
              if(nodeName=="INPUT"){
                break;
               }
            }
        }
        var reqCell =rows[rowCount].cells[cells.length-2];
        var oldLink = reqCell.childNodes[1].getAttribute("href"); //getOld link
        reqCell.childNodes[1].setAttribute("href",oldLink+"&newName="+newName)  //set href with appending text box value
    }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a JSP page which display a list from servlet, it has a
How to display jasper reports in JSP page? I am using iReport1.3.3 tool to
I am trying to display data from my database to a Jsp page using
I am using display tag in jsp page. I want to customize the display
I have a jsp page which should load a popup using ajax. The content
I need to display build number in my index.jsp page <!DOCTYPE HTML> <html> <head>
Is there anyway to scale an image then display in jsp page? When retrieve
I want to convert my Resultset to List in my JSP page. and want
I have a JSP page that will display the exact content of another web
I am trying to send an email (using Outlook mail) from a jsp page.

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.