aspose file tools*
The moose likes JSP and the fly likes Is there onBlur in JSP? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Is there onBlur in JSP?" Watch "Is there onBlur in JSP?" New topic
Author

Is there onBlur in JSP?

badri nath
Ranch Hand

Joined: Dec 21, 2005
Posts: 57
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

Joined: Jan 10, 2002
Posts: 61437
    
  67

Moved to the JSP forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

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

Joined: Dec 21, 2005
Posts: 57
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

Joined: Jan 10, 2002
Posts: 61437
    
  67

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

Joined: Apr 21, 2006
Posts: 1847
applets would do the trick. No Javascript required


42
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

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

Joined: Dec 21, 2005
Posts: 57
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

Joined: Jan 10, 2002
Posts: 61437
    
  67

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

Joined: Dec 21, 2005
Posts: 57
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is there onBlur in JSP?