How can i display a message box when error comes in jsp?

Hi,
i need to display a message box whenever an error comes in my jsp. Actually my appln is that i am creating a bar chart using one applet by taking data from the database. When a user does not select a number data for y axis, now in the centre of the web page one java error is coming. "not in number format". it is looking very odd.
so i want to display the error in a message box whenever it comes as above. pls help me how can i do the same...
Regds,
Abhi...

Hi,
thanx for ur response. so u mean to say that i can
display the errors in the web page itself instead of
displaying as a message box?Either way. You can have the JSP send a message to the applet to display a message box. Or you can just have the JSP do it. or you can have the applet detremine if the JSP would produce an error and then display the message it would display.
>
actually i am using servlets. jsp pages are used only
as the front end. all the background works are doing
in servlet only.It should be the same in any case. Is the applet connecting to the JSP pages or are you having the browser do it?
>
pls get back...

Similar Messages

  • How can i display the message

    public class Userdefined extends Exception {
              Userdefined(String sparam){
              System.out.println(sparam);
              Userdefined(){
         private static int acno[]={100,105};
         private static double bal[]={100.00,200.00};
         public static void main(String args[]) {
              try{
              for(int i=0;i<2;i++)
                   System.out.println("ACCCCNO------>"+acno[i]+"BAl------>"+bal);
                   if(bal[i]<150.00)
              Userdefined udexp=new Userdefined("bal less");
              throw udexp;
              catch(Userdefined e){
                   System.out.println("--->"+e);
    How can i display the message "less amt" using my parmeterized constructor.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    VinayTK wrote:
    How can i display the message "less amt" using my parmeterized constructor.Erm ... what? You can't --- at least not with the stuff you've got there.
    A properly formed question, with some idea of what you're trying to accomplish would be a huuuuge help.
    Winston
    BTW: Congratulations. At my age, 'first's in computing are rare; but it's definitely the first time I've seen an Exception class with a main() method.
    Edited by: YoungWinston on Sep 1, 2009 9:46 AM

  • How can i display the values in the vector in a jsp using jstl

    in a task i am recieving a vector in a jsp... how can i display those vector values in the jsp using jstl.... plz help me
    thanks in advance

    <%
    here you got vector say; v
    pagecontext.setAttribute("varname",v);
    %>
    <c:forEach var="i" items="${varname}">
    <c:out value="${i}">
    </c:forEach>

  • How can I display application offline page when OAS is offline?

    I am using IIS with oracle_proxy.dll redirecting to my oracle application server. When I do maintenance on the application and stop the OAS service the end-user gets the HTTP 500 - Internal server error from Internet Explorer. I would prefer for them to see a custom page that displays that the application is offline for maintenance. I tested with IIS custom error pages but that is not where the 500 page is coming from. The page being displayed is the IE friendly HTTP error message. I can't see how a configuration on the Oracle application server would help because the service is offline. Is there anything I can do to explain to the users that this is a scheduled maintenance and display a more informative page? I understand the solution may involve stopping, changing a configuration file in IIS and restarting. If so how can I script that so it can be easily done and what is the easiest way to do it?
    Thank you for your response in advance.
    Trying to make oracle more friendly, Jon.

    I just wanted to confirm, are you using Oracle HTTP Server?
    Regards
    Mehmood

  • How can i display warning messages in user exit EXIT_SAPLMGMU_001 (MM02)

    Hi all,
    while modifying the material master using MM02, i have added new conditions to display messages in user exit EXIT_SPALMGMU_001.
    But using this user exit i am not able to display warning messages.
    Can you please help me with this?
    Sample code which i have included in exit :
    SELECT SINGLE mstav FROM mara
    INTO w_mstav
    WHERE matnr = wmara-matnr.
    IF wmara-mstav NE w_mstav.
    IF wmara-mstdv NE sy-datum.
    wmara-mstdv = sy-datum.
    MESSAGE w177(z03_mm) WITH text-s04 text-s21.
    ENDIF.
    ENDIF.
    Thank you all in advance.

    As written in the SAP documentation of the Enhancement , you can only raise error message using a
    MESSAGE .. RAISING APPLICATION_ERROR.
    You could manage the "warning" yourself, sending an error first time and keeping a trace of the check in some STATICS variable, and not raising the error again if data input remains unchanged between two call of the include.
    <i>----
    EXIT_SAPLMGMU_001
    Where Is the Customer Exit - EXIT_SAPLMGMU_001 called?
    The customer exit is in function module MATERIAL_UPDATE_ALL. The
    function module checks the data for errors (logical relationships,
    foreign keys, fixed domain values, and so on) when the material master
    is updated.
    Use
    o New fields
    You can make checks possible for new fields of your own. These
    checks must be identical to the checks that you carry out for your
    new fields in online maintenance.
    o Existing fields
    For existing fields, you can extend and intensify the checks.
    You can also change data for descriptions and general material data
    (MARA). For example, the descriptions can be generated from attributes
    of the material.
    Limitations
    You cannot bypass existing checks.
    Interface to Application
    The respective data of the current logical transaction is contained in
    the structures, for example, in structure WMARA for MARA. Nonrelevant
    structures are transferred with their initial values.
    General material data that can be changed (CMARA) has the structure
    MARU. This MARA view contains fewer internal fields than MARA itself. If
    WMARA is filled, CMARA is also filled when accessed.
    The customer exit contains the exception APPLICATION_ERROR for your
    self-defined error situations.
    Using the language element MESSAGE .. RAISING APPLICATION_ERROR, you can
    terminate the current (logical) transaction and display your message in
    the log. </i>
    Regards

  • How can i display system messages(forms,rep) in prefered language

    I want to display returned messages from the system,on reports,charts,Forms buttons in users preferred language. How can i dot that
    Thanx in advance

    Hi,
    If you want to display your own message then you add those messages in a table wwnls_strings$. The strings you insert should be in a different domain like 'userdefined'. Please describe the table to know more about the table. You can then use get_string
    wwnls_api.get_string(
    p_domain => 'USERDEFINED',
    p_sub_domain => p_sub_domain,
    p_name => p_name,
    p_language => wwctx_api.get_nls_language,
    p0 => p0,
    p1 => p1,
    p2 => p2,
    p3 => p3);
    Thanks,
    Sharmila

  • How can I fill a message box with an empty option whit UIX?

    Hi dear forum:
    I created a message box in UIX and I filled it with data from a table, but I need that the first option be in blank; I need an empty option.
    thanks dear forum

    If you are using a ADF/BC4J view object to get the data, you can modify the sql query statement to add a null option UNION'ed with the original query. Example:
    SELECT NULL DEPARTMENT_ID,
    NULL DEPARTMENT_NAME,
    NULL MANAGER_ID,
    NULL LOCATION_ID
    FROM DUAL
    UNION ALL
    SELECT Departments.DEPARTMENT_ID,
    Departments.DEPARTMENT_NAME,
    Departments.MANAGER_ID,
    Departments.LOCATION_ID
    FROM DEPARTMENTS Departments
    I also saw this tip somewhere but I don't know how (or if) it would work with uix:
    http://www.oracle.com/technology/products/jdev/tips/mills/null_list_entry.html

  • How can you display interim messages while procedure running

    How can you show messages after every step via SQLPLUS(ex: a procedure) while it's running rather waiting it to complete??? (Not using temp tables)
    EX: a procedure has 5 steps. I want to see message as soos as step-1 completed, then Step-2 and so rather waiting untill at th end of procedure.

    Check out [DBMS_APPLICATION_INFO|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_appinf.htm]

  • How can I display an e-mail when the message is in HTML?

    I occasionally receive e-mails whose messages are in HTML.
    They're unreadable unless I save them outside thunderbird as files with the .html extension and open them in firefox.
    Is there some less cumbersome way of reading them directly in thunderbird itself?
    Linux Mint Debian Edition

    View - Message Body As - Original HTML

  • How can I display the same page when I'll press

    i have a jsp page. It contains user name & password.
    and a link like SIGNOUT COMPLETELY. when i press the back button it should show only this page.
    You have noticed one thing that when u sign out from YHAOO MAIL then a page is displayed
    USERNAME : [email protected]
    PASSWORD :XXXXXXXXXX
    SIGNOUT COMPLETELY
    when this page is dispalyed and u press the back button of the browser
    it displays the same page. How it happens?

    Kindly neglect the previous post.....
    Okay check something like this
    1).maintain either a HttpSessionListener or a session flag try to checkout whether the user is active or else close the PrintWriter.
    2).Prevent caching of the webpage by using customary meta tag or by response,setHeader("Cache-Control","no-cache");
    way...
    Guess tht shud work.....

  • How can I display a confirm box using JSP?

    Dear All,
    I am new to the Java language; please help!
    What I'd like to do is to prompt the user, within a loop, to click OK to continue the loop or CANCEL to exit the loop. I've tried to use JavaScript in conjunction w/ Form submittion to handle the parameter passing ('true'/'false') of the confirm box to a JSP. Yet, every form submission will cause the JSP page to re-load from the top which is the incident I'd like to avoid.
    Is there anyway I can have a confirm box written using JSP? Please help!!
    Thanks,Wing.

    if you do any modifications in the jsp page the whole page will be refreshed to show the latest result after modification.
    if you dont want the whole page to be refreshed
    you can pass the control to another page after the confirm box or you can use frames to your interest.

  • How can I create a message so when you type keywords in search my website and the info sjhow on page 1?

    I have a website and I need people to find it. How do I create the text blurb that pops up on a search so they can find my website on page 1?

    Google has tons of tools and articles to try. You could start here: http://support.google.com/webmasters/bin/answer.py?hl=en&answer=35769

  • How can I connect to itunes store when error message -54 prevents connection?

    The error message -54 is not defined properly or sufficiently, to attempt specific troubleshooting by the the user (not user friendly). Does anyone in the community have any experience with this error message? If so, how did you solve the issue? I suspect the impending migration to iCloud may hold the answer.
    Regards,
    Ellen <[email protected]>

    Hi KimberlyWI,
    Thanks for using Apple Support Communities.  If you're not able to access the iTunes Store, I would suggest part of this article:
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/ts3297
    Specifically, see "Blocked by configuration: (Mac OS X/Windows)" for troubleshooting steps.
    Cheers,
    - Ari

  • How can I change the message for an error and then cancel it

    Hi everyone.
    I am currently developing an application where I have to use a trigger (DAQmx). Now it can happen, that the user (who will operate the device later on) can activate the trigger without a valid source. After a timeout, he will get a quite strange message stating he either might want to wait longer (Error -200284 occurred at DAQmx Read). I would like to redefine this error.
    So if this error number appears, he should get a message saying: "Your request couldn't be executed, since no valid trigger signal was found".
    How would I do this .. Thanks for help

    Hi Somnatic
    There are different ways. As you describe it, you'd like to cancel the occuring error (-200284) and show another message. I attach a vi with a view ways.
    Hope this helps.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...
    Attachments:
    ClearError.vi ‏80 KB

  • How to avoid the windows "dialog box" when we use flexprintjob class

    in the print segment
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf65381-7ffc.html
    it says
       printJob.start();
    This causes the operating system to display a Print dialog box.
    this  windows "dialog box" which is used to set the page size, page index, or some other page settings.
    but in my case , i can't let user see this dialog box.
        how can i avoid this "dialog box" when i call   printJob.start();
    it is my big issue ,please help to give a suggestion

      hi   how can i set the "ie" "internet explorer"  to avoid the "dialog box."  if i have to do it .
    thank you very much !

Maybe you are looking for