Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

onclick of  row of table the value should be in textbox in jsp

Thread view: 
savita - 13 Apr 2007 11:23 GMT
Hello All,

I am new to jsp , trying very hard ,bot to no avail.

Onclick of row of table (html table) on first jsp the value in the
row should be displayed in the textbox on second page in jsp.
The table consists of records  from database.

Is it  that we have to get the rowindex of table and the pass the
corresponding value  related to rowindex to the textbox?
And  should the records from database should be stored in arraylist
and then display in table?

How do I do it? If anyone could pass the code or related link will be
helpful.

Thanks
Sanjay - 13 Apr 2007 13:50 GMT
> Hello All,
>
[quoted text clipped - 13 lines]
>
> Thanks

This is a HTML question. By the way which value in the first jsp page
are you talking about? If your table has multiple columns and you click
on a row, then which value are you expecting to pass to second jsp page?

What I would do, is put an onclick event on the table row and set value
of window.href to your second page url and would encore the variable in
the url. On the second page, get it as a GET var.

Sanjay
savita - 14 Apr 2007 11:09 GMT
> > Hello All,
>
[quoted text clipped - 25 lines]
>
> - Show quoted text -

Hello  All,

   I will redifined my problem.
savita - 14 Apr 2007 11:20 GMT
> > > Hello All,
>
[quoted text clipped - 31 lines]
>
> - Show quoted text -

Hello All,

           I  will redefined my problem . I am working on jsp.
     I have one jsp page on which table is displayed. The table
consists of 2 columns,
first col consists radio button second col consists dept code.
What I want is onclick of any radio button the value of dept code
should be displayed in textbox
on second jsp.

The first jsp name is department.jsp.
The second jsp is indent.jsp.

In department.jsp I have <table> of html which displays dept code.The
table is in form tag
<form name="frm" action="indent.jsp">
I have submit button which calls indent.jsp
Is my approach  correct?

Thanks
Lew - 14 Apr 2007 15:41 GMT
>             I  will redefined my problem . I am working on jsp.
>       I have one jsp page on which table is displayed. The table
[quoted text clipped - 12 lines]
> I have submit button which calls indent.jsp
> Is my approach  correct?

Possibly.

Does it work?

Signature

Lew

savy - 16 Apr 2007 14:31 GMT
> >             I  will redefined my problem . I am working on jsp.
> >       I have one jsp page on which table is displayed. The table
[quoted text clipped - 21 lines]
>
> - Show quoted text -

onclick of radio button on department page , the word   on    gets
displayed in texbox on indent.jsp instead of the dept code. Help is
urgently  needed
Thanks


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.