Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

concatenate Text Fields in JSP

 
Ashkar Rahman
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a Date of Birth Attribute in my Web Page. this field has been separated into three text boxes as
DD[31] MM[12] YY[1985]
fine.!


The above code is to get one particular text box value. but now i wana concatenate (Merge) these text box values and print it again: sumthin like



if its in PHP the Script would appear like dis




Can anyone help me in this case
 
Balu Sadhasivam
Ranch Hand
Posts: 874
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ashkar,
Same logic applies in java too. "+" concatenation operator can help you to concatenate strings.
 
Ashkar Rahman
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Balu Sadhasivam wrote:
Ashkar,
Same logic applies in java too. "+" concatenation operator can help you to concatenate strings.


Hey!! Thank you Very much Balu . Ill Try it n C
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65542
110
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using scriptlets or the EL?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65542
110
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ashkar Rahman wrote:Ill Try it n C


Please use real words when posting to the forums. Abbreviations such as "n" in place of "and" and "C" in place of "see" only serve to make your posts more difficult to read and less likely to generate useful responses.

Please read this for more information.

thanks,
bear
JavaRanch sheriff
 
I think I'll just lie down here for a second. And ponder this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!