IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
  • 1.  display a message on first page (search.jsp)

    Posted Fri September 06, 2002 03:51 PM

    X-Application Version: 3.1.3,
    Tamino Version : 3.1.1
    Platform : Widows2000
    WebContainer : Tomcat 3.3
    JDK Version : 1.3.1
    Hi,
    I have the following problem. I have generated the application and now I would like to display a message on the first page (search.jsp) if you click on the “Search” button and all the input field are empty. Could you give me any suggestions how to do it.
    Best regards,
    vs


    #webMethods
    #Tamino
    #API-Management


  • 2.  RE: display a message on first page (search.jsp)



  • 3.  RE: display a message on first page (search.jsp)



  • 4.  RE: display a message on first page (search.jsp)

    Posted Mon September 09, 2002 09:26 AM

    Hi Thorsten,
    Thank you for your suggestions, but unfortunately I still have a problem. Instead of the message I have the text of the function. I think I have done what you suggested, but maybe I have been doing any mistake. My code now looks like:
    (…)
    Query strony

    .link {
    COLOR: #000000; FONT-WEIGHT: bold; TEXT-DECORATION: none
    }
    A {
    COLOR: #000000; FONT-WEIGHT: bold; TEXT-DECORATION: none
    }
    A:link {
    FONT-WEIGHT: bold
    }
    A:hover {
    COLOR: #000000; FONT-WEIGHT: bold; TEXT-DECORATION: underline
    }







    xapp:module
    (…)




    <xapp:action type=“query” arg=“${querySearch$}” form=“form1”>




    </xapp:action>
    (…)
    Regards,
    vs


    #Tamino
    #API-Management
    #webMethods


  • 5.  RE: display a message on first page (search.jsp)

    Posted Mon September 09, 2002 11:38 AM

    Hi,

    I have tested a solution, and this should work:

    <BR><script language="JavaScript"><BR>function mySubmit(){  <BR>  //test on field 'inputName' on 'Form1'  <BR>  if (document.forms[form1].inputName.value==""){    <BR>    alert("No value!");  <BR>    return false;<BR>} else {     <BR>   return true;<BR></script><BR>...<BR><form name="Form1" method="post" action="your next page" <B>onSubmit="return mySubmit()"</B>><BR>...<BR></form><BR>



    You will have to change the default submit behaviour by setting the ‘onSubmit’-attribute.
    This will point to your function.

    Ok. Hope this will help you

    Bye
    Thorsten


    #API-Management
    #webMethods
    #Tamino


  • 6.  RE: display a message on first page (search.jsp)

    Posted Mon September 09, 2002 11:49 AM

    Hi again,
    Thank you very much for your help. Your previous suggestion was OK, but I made a little mistake using “if” condition. Now it works correctly. Thank you.
    Regards,
    vs


    #API-Management
    #Tamino
    #webMethods