User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 391,584 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,650 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 735 | Replies: 1
Reply
Join Date: Jun 2008
Posts: 2
Reputation: nishanthhampali is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
nishanthhampali nishanthhampali is offline Offline
Newbie Poster

How to Access the value of the textbox.....

  #1  
Jun 2nd, 2008
Hi,
I am very new to JSP......... i need one help.......... i have a table with many rows......... for each row i can set the time by calling the calendar java script............ I want to access the time that whatever has been set for some manipulation........ please help me out........

  1. for (OrderDetails entry : entriesList)
  2. {
  3. boolean enableCancel = entry.isCancellable();
  4. boolean hasDetails = entry.isHasDetails();
  5. BulkRequestHistoryInfoInterface.OrderStatus entryStat = entry.getStatus();
  6. String entryStat1 = entryStat.toString();
  7. String fileName = entry.getOrderFileName();
  8.  
  9.  
  10. %>
  11. <tr align="center" class="ad_wa_body">
  12.  
  13. <td align="center">
  14. <input type="radio" name="radioGroup"
  15. value="<%=entry.getOrderFileName()%>#<%=entry.getSubmissionTime()%>#<%=entry.getStatus()%>"
  16. <% if (!enableCancel) { %>
  17. DISABLED
  18. <% } %>
  19. ></td>
  20.  
  21.  
  22.  
  23. <td align="center"><%= entry.getUserName() %></td>
  24. <td align="center"><%= entry.getOrderFileName()%></td>
  25. [b]<td align="center">
  26.  
  27. <% if(entryStat1.equalsIgnoreCase(OrderStatus.SCHEDULABLE.name())
  28. || entryStat1.equalsIgnoreCase(OrderStatus.SCHEDULED.name())){
  29.  
  30. %>
  31. <input id="<%=entry.getOrderFileName()%>"class="text_box" type="text" name="ExecutionStartTime" onChange="submitTime();"size=10>
  32. <a href="javascript:calendar_control('<%=entry.getOrderFileName()%>','ddmmmyyyy',true,24)" onClick="submitTime();"><img src="../gif/calendar.gif" width="16" height="16" border="0" alt="Select date and time">
  33. </a>
  34. <% }
  35. else { %>
  36. <input class="text_box" type="text" name="ExecutionStartTime" disabled="true" size=10>
  37. <img src="../gif/calendar.gif" onclick="javascript:calendar_control('ExecutionStartTime','ddmmmyyyy',true,24)" width="16" height="16" border="0" disabled="true" alt="Select date and time">
  38. <% } %>
  39. </td>[/b]
  40. <td align="center">
  41. <%
  42. long initialTimeStamp = Long.parseLong(entry.getSubmissionTime());
  43. Date initialDate = new Date();
  44. initialDate.setTime(initialTimeStamp);
  45. %>
  46. <%= initialDate%></td>
  47. <%
  48. BulkRequestHistoryInfoInterface.OrderStatus os = entry.getStatus();
  49. String color = bulkInfoHistory.getColor(os);
  50. %>
  51.  
  52. <td align="center"><font class="<%=color%>"> <%= entry.getStatus()%></font> </td>
  53. <td align="center">
  54. <%
  55. long lastUpdatedTimeStamp = Long.parseLong(entry.getLastStateUpdate());
  56. Date updatedDate = new Date();
  57. updatedDate.setTime(lastUpdatedTimeStamp);
  58. %>
  59. <%= updatedDate%></td>
  60. <td align="center"><%= entry.getNumberOfRequestsExecuted()%></td>
  61. <td align="center"><%= entry.getNumberOfRequestsFailed()%></td>
  62. <td align="center"><input TYPE="button" value="Details" onclick="callDetails('<%=entry.getOrderFileName()%>','<%=entry.getSubmissionTime()%>')"
  63. <% if (!hasDetails) { %>
  64. DISABLED
  65. <% } %>
  66. ></td>
  67. </tr>
  68. <%
  69. }


Please help me out.............. Thanks in advance
Last edited by peter_budo : Jun 2nd, 2008 at 6:46 am. Reason: Keep It Organized - please use [code] tags
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,646
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 191
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: How to Access the value of the textbox.....

  #2  
Jun 2nd, 2008
not going to help any kiddo that insists on using scriptlets.
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JSP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 10:59 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC