aspose file tools*
The moose likes JSP and the fly likes on the fly create new jsp column Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "on the fly create new jsp column" Watch "on the fly create new jsp column" New topic
Author

on the fly create new jsp column

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1372
I am new to jsp. I have jsp form with 5 columns.

a b c d e
2 4 6 3 2

here a,b,c,d,e are my column headings. I i submit the form, it should display a,b,c,d,e,f (one extra column, f column value is multiplication of d & e)
How can i do that ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60979
    
  65

Given the brevity of your question, the only answer possible is to add the extra column when you generate the HTML. Beyond that, I have no idea what your issue is.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1372
Initially jsp form has only 5 columns. when the user submits, it generates another(6th) column. This 6th column value is multiplication of existing 2 column values.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60979
    
  65

OK, so what code have you written so far? What's the problem you are having?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Is your submit button in a form ?
If so, add hidden tags to your form, one with the value of 'd', and another one with the value of 'e'.
After submitting, get the value of the hidden tags, and multiply.


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: on the fly create new jsp column