Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

javascript arry in servlet  RSS feed

 
amit sanghai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can we call and initialize a javascript array in a servlet? If so, how?

Thanks and regards,
Amit Sanghai.
 
sreekanth nair
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[BPSouther: Removed shouting.]
[ March 21, 2007: Message edited by: Ben Souther ]
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sreekanth, you need to stop posting in all-uppercase letters. It is considered shouting, and thus rude, all over the net. It's also unnecessarily hard to read.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by amit sanghai:
Hi,

Can we call and initialize a javascript array in a servlet? If so, how?

Thanks and regards,
Amit Sanghai.


I'm not sure what you mean by call.

Servlets are a server side technology.
Javascript is interpreted in the client (browser, usually).
You can certainly write the text that will become a Javascript array from your servlet but, to the servlet, it will be nothing more than text. It doen't become an array until it is written to the client and interpreted there.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!