Solved

Alert from JSP

Posted on 2000-04-24
3
510 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
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 100 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now