Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Alert from JSP

Posted on 2000-04-24
3
Medium Priority
?
518 Views
Last Modified: 2012-08-13
I want to alert the user for form level validations in a JSP as is done in Javascript. Could somebody tell me how?
0
Comment
Question by:ssindhu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 3

Expert Comment

by:ovidiucraciun
ID: 2743800
as far as I no, with JSP you can create dinamicaly html pages as response.
I sugest to first write your html page that makes the alertion and after that to send it to the client in order to load the page with alert code (JavaScript)
0
 

Author Comment

by:ssindhu
ID: 2743852
Thanks it works .
I created a html page with alerts using javascript(as usual) then added that to JSP.
Thanks.
0
 

Accepted Solution

by:
diegojimenez earned 300 total points
ID: 2755495
You can make all the options that you want with Html and after you can insert de java code. You must know that the java code is allways compiled in the server , and the javaScript code is compiled in the navigator.
then if you have
<%
    ----java code----
%>
<script language="JavaScript">

       function hello(){
              alert("hello");
      }
</script>
when you'll call this function the alert will be execute.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question