Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is there onBlur in JSP?

 
badri nath
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hiii
Is there similar command in JSP to that of "onBlur" in javascript.

Actually my requirement is, if i enter a value in one textbox
that should get multiplied by some "x" and the result should
be displayed in another text box. The problem here is im not allowed
to use javascript and there is no action i can perform. Just if enter
values in one text box the result should be automatically displayed.

can you people guide me with some function in JSP which will solve my problem, or some logic i should implement.

With Regards
Badrinath
[ May 06, 2006: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64838
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the JSP forum.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64838
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That makes no sense.

JSP is a server-side templating technology used to format and send an HTML page to the client browser. Once the page gets to the browser, it doesn't matter what server-side technology generated it.

To control a page in the browser requires JavaScript.

The problem here is im not allowed to use javascript


Let me guess... pointy-haired boss?
 
badri nath
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear
yeah you have guessed right, my boss is pointy haired

but can you please suggest me any alternative for javascript
so that i can retrieve values from text box without performing
any action in the given page.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64838
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without JavaScript, you'll need to submit the page back to the server to make any changes there, then reload the page.

However, without JavaScript, the user will need to click a button to initiate that action.
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
applets would do the trick. No Javascript required
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64838
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If Mr. Pointy Hair has an issue with JavaScript, I can't imagine how he'd react to Applets or even flash!
 
badri nath
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Joroen

applets would do the trick

Hmm thanks for your suggestion, i havn't thought about that.
I just checked the API and found getParameter() method in
Applet class. If this is function required for my solution,
can you please sugggest me how to use it, or provide me
with guidance or logic.

With regards
Badrinath
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64838
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So your boss won't let you use JavaScript, but would be ok with applets? That's crazy. What's his/her beef with JavaScript?
 
badri nath
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So your boss won't let you use JavaScript, but would be ok with applets? That's crazy. What's his/her beef with JavaScript

Hi Bear
Dont know what is the problem with him, actually he will not specify complete details of the requirement but only specifies what
is to be done.
coming to what jeroen said, can you please suggest me the
right kind of approach to complete the task.

With Regards
Badrinath
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic