473,405 Members | 2,262 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

How to create a Dynamic grid in JSP page ?

Hi everybody,
I have a web page containing of table with columns like product name, id, price etc. I want to edit the contents of a row, instead of entering in a text box and updating. It will be better if that grid is scrollable and dynamically editable.
Thanks guyz...
Nov 7 '06 #1
4 13824
r035198x
13,262 8TB
Hi everybody,
I have a web page containing of table with columns like product name, id, price etc. I want to edit the contents of a row, instead of entering in a text box and updating. It will be better if that grid is scrollable and dynamically editable.
Thanks guyz...
But you can also create table rows dynamically

Assuming you have your products in an Iterator called iterator
[HTML]
<FORM name ="form1" method = "post" action = "<%=path">
<TABLE border="0">
<TBODY>
<TR>
<TH >ID</TH>
<TH >Name</TH>
</TR>
<%
while(iterator.hasNext()) {
pr = (Product)iterator.next();
%>
<TR>
<TD > <INPUT type="text" name="id<%=pr.getID() %>" size="20" value="<%=pr.getID() %>" readonly></TD>
<TD > <INPUT type="text" name="name<%=pr.getID() %>" size = "20" value="<%=pr.getName() %>"> </TD>
<TD > <INPUT type="text" name="price<%=pr.getID() %>" size = "20" value=".<%=pr.getPrice() %>"></TD>
</TR>
<%
}
%>
</TBODY>
</TABLE>
</FORM>

[/HTML] Restricts id to be uneditable. The id gives each input box its uniqueness
Nov 7 '06 #2
Its good. But I am seeking a grid similar to ASP .net environment, you might have seen in doc.google. Anyway, thanks a lot...
Nov 9 '06 #3
after creating the grid
i want to access the values in the next page of particular text box how it is possible......?
can u provide me an example how to access the things in next page.......?
Aug 19 '08 #4
@baskarpr I am also asp.net developer and now I switch to java.There is grid view control ,I created in jsp you can find here http://behindjavascene.blogspot.com/...ically-in.html
Apr 14 '13 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Bil Muh | last post by:
Esteemede Developers, I would like to Thank All of You in advance for your sincere guidances. I am developing a software using Visual C++ .NET Standard Edition with Windows Form (.NET)...
0
by: Colin Ramsay | last post by:
Hi all, I don't normally post swathes of code like this but I am truly banging my head off my desk here... I've dynamically created a datagrid within a usercontrol. There are two columns...
2
by: James Moore | last post by:
I've got a datagrid. One of the elements in the grid is a comma-seperated string. I'd like to split the string and create N linkbuttons, one for each element of the string. Creating the grid...
4
by: Paul | last post by:
HI I have some controls under a datagrid and the datagrid can have 1 to 10 items. I would like to place some other controls just below the datagrid so need to somehow dynamically place the...
1
by: JMann101 | last post by:
I am writing a ASP.NET(VB) application and am having some trouble. I have a datagrid which list users and when an admin clicks "edit" a defined column becomes visible and a dynamic listbox control...
4
by: Larry Grady | last post by:
Anyone up for a challenge? I've been struggling with this for a few days and was hoping someone could help me. Pouring through all the messageboards I just can't find the solution. We have a...
2
by: dschectman | last post by:
This appears to be a feature of IE JavaScript. I am running IE 6.0 with the latest patches from Microsoft. Are there any workarounds other than re-coding the source HTML to place all the...
2
by: WolfyUK | last post by:
Hello, I have a standard asp:DataGrid called CasesGrid that I wish to write my own paging controls for. The aim is to get something like the following rendered to screen: << First < Previous...
1
by: koren99 | last post by:
Hello, I have a gridview that is filled with a datasource & template fields dynamically. ( that has to be done because i ask the user for a datasource) anyway, i started out creating a static...
1
by: cdmsenthil | last post by:
I have an Infragistics UltrawebGrid . Each Row in the grid is attached to a context menu using Infragistics CSOM Upon click on the menu, I am creating an Iframe dynamically which points to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.