OnChange:execute JSP

try to be more clear, i'm in lack of ideas in this problem.
<logic:present name="StateList" scope="session">
<td align="left"><font color="red"><b><b>*</b></b></font> <b>Select State</td>
<td>
<html:select  property="selectedState" onChange="execute(this.form)">
<html:option value="-1">Select</html:option>
<html:options collection="StateList" property="label" labelProperty="value" />
</html:select>
</td>
</tr>
<tr></tr>
</logic:present>     on calling onChange i want to reload this JSP without refreshing parameter.Because On the basis of selected value i have to perform some other features.I am able to do using struts,but i dont want to use struts.
using struts i can do like this:
function execute(frm)
    frm.action="Inedex.do?method=process";
    frm.submit();
}process method is written in Indexaction.java.which is returning my same JSP(return mapping.findforward("this")).where "this" is mapped to Index.jsp and i am attaining my goal.But i dont want to use struts.
I have spend hours trying to play around with this but have got nowhere.
Your help is much appreciated.

Thankyou thankyou very much for reply...
<logicresent name="StateList" scope="session">
<td align="left"><font color="red"><b><b>*</b></b></font> <b>Select State</td>
<td>
<html:select property="selectedState" onChange="execute(this.form)">
<htmlption value="-1">Select</htmlption>
<htmlptions collection="StateList" property="label" labelProperty="value" />
</html:select>
</td>
</tr>
<tr></tr>
</logicresent>After this there is button name "show".
<html:submit property="method" value="Show" onClick="return(checks(this.form))"/>on clicking show button some text message is displayed on this same jsp below show button.(For this i am using hidden variable with value "False" then in "checks method" i am seting its value to "True".on basis of hidden parameter value message is displayed.if this value is false then no message is displayed and if this value is true appropriate message is displayed.)
Problem:
But Now take the case when user change the statelist option then that message should be disappeared while changing the list,without clicking show button
if still i am not clear,let me know.
Waiting for reply..

Similar Messages

  • Error in executing JSP files

    hi there,
    I have a problem when a I execute JSP files. This is the message that I encounter everytime I executing JSP files:
    " Java System Application Server Execution Note: make sure that the j2ee module or application has been deployed before using execution."
    It seems that Application Server can not be started and I don't khow what I must do.
    Best Regards.
    Zolfaghar

    hi friend
    u just restart the application or deploy again on server.
    i hope u won't get any error.
    [email protected]

  • NoClassDefFoundError while executing Jsp's

    I am using Apache -1.3.2 with Tomcat 3.2.3 on Windows 2000 to
    service Jsp's.
    While executing Jsp's that User request or response objects, I get the following
    error. NoClassDefFoundError: javax/servlet/ServletRequest.
    From the Jsp's , I am passing the request/response object to Pure Java files to do some
    processing on the data. The lib directory of tomcat has all the necessary jars and there is
    no class conflict.
    Could someone give me a solution to this issue ?

    see that u have imported the class that u r using in the JSP properly.
    eg u have to use
    <%@ page import="<package-name.class-name>" %>
    If u do so, I that problem of ClassDefFoundError should not come........
    try this and see.......
    Chandan.

  • Execute JSP from F4J 3.0 Web-Modul

    Executing simple MyJsp.jsp from F4J 3.0 (Win NT)
    Web-Modul ..\myjsp01
         Document Base
              MyJsp
         WEB-INF
    starts netscape, then error:
    org.netbeans.modules.extbrowser.NbBrowserException: DdeConnect errno >400A<
    Annotation: Could not access the URL through the external browser.
    Check the configuration in Tools | Options | Web Browsers.
    Tools | Options | Web Browsers | External Browser(Windows) shows
    Browser Name          Platform dependent HTML browser
    DDE Server          <Default System Browser>
    Executable browser     null
    How to execute *.jsp ?

    Hello,
    I've got the same error with Sun ONE Studio 4 on Windows 2000!
    I am wondering, if you've ever received a response?!
    Thanks for your help,
    Claudio
    Here is the error message I've received:
    Thu Feb 13 11:57:17 CET 2003: org.netbeans.modules.extbrowser.NbBrowserException: DdeConnect errno >400A< when connecting to server NETSCAPE, topic WWW_Activate.
    Annotation: Could not access the URL through the external browser. Check the configuration. In the Options window, expand IDE Configuration. Then expand Server and External Tool Settings and select Web Browsers.
    org.netbeans.modules.extbrowser.NbBrowserException: DdeConnect errno >400A< when connecting to server NETSCAPE, topic WWW_Activate.
    at org.netbeans.modules.extbrowser.NbDdeBrowserImpl.reqDdeMessage(Native Method)
    at org.netbeans.modules.extbrowser.NbDdeBrowserImpl.access$600(NbDdeBrowserImpl.java:54)
    at org.netbeans.modules.extbrowser.NbDdeBrowserImpl$URLDisplayer.dispatchURL(NbDdeBrowserImpl.java:341)
    at org.netbeans.modules.extbrowser.NbDdeBrowserImpl$URLDisplayer.run(NbDdeBrowserImpl.java:294)
    [catch] at java.lang.Thread.run(Thread.java:536)

  • Javascript onchange to jsp

    i know javascript is client side and jsp is server side and its just not possible to pass parameters or values from one to another but is there a way to work around this?
    i have a drop down and in my select
    <select name="month" onChange="field.value=this.value;"
            <option value="1">January</option>
            <option value="2">February</option>
    </select>
    <input type="text" name="field">
    //this works just finei want the value in my input type to be placed inside my <%%> to be passed to my bean.
    like in...
    <%
         int num = //value from the input type which was generated from javascriptt
         JavaBean jb = new JavaBean(num);
    %>how is this done?
    thanks in advance....

    Anjali,
    Why do you have to reopen another poster's thread for this ? You can state your problem, refer to this thread and mention that whatever is specified there doesnt work for x or y reasons.
    That said, please look at evnaftes reply -
    The only way to pass a value from javascript to java is to make an HTTP request sending the value as a parameter, and invoke a new servlet/jsp.
    Put the javascript value into a hidden field and submit the form. You can then retrieve the value in java via request.getParameter().
    Please understand that jsp is executed on the server and its output is html + javascript which gets executed on the client browser. How can you pass a variable from an output to the program which generated the output and has finished ?
    cheers,
    ram.

  • I want to execute JSP scriplet in onClick function of the button HTML page

    in my JSP page, the code is like this...
    <input type="button" value="xyz" onClick="<% my jsp code%>">
    the jsp code is executing wen the page is loading..
    i want the jsp code is executed wen v click the button..
    can i write like this...if not how should i write.
    plz suggest me...
    Thanking you
    Sorry if i post this in a wrong forum....
    Edited by: Murthy_Srinivas on Jun 5, 2008 10:49 PM

    the jsp code is executing wen the page is loading..
    i want the jsp code is executed wen v click the button..Not possible(in the way you are trying to achieve). JSP codes are processed in the server and only processed data/results are sent to browser which you see in your screen. Browser cannot/willnot execute the jsp code.
    ...if not how should i write.The only way is to make a server call(eg: either submit a form, make a http request using Ajax etc)

  • Exception while executing JSP in TOMCAT

    Hi,
    I am new to Tomcat 5.0. I saved the JSP file in webapps/root folder. I have JDK1.3.1 and JRE 1.4.1. When I am executing the jsp, I am getting the following exception.
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\test_jsp.java:9: cannot access java.lang.Object
    bad class file: C:\Program Files\Java\j2re1.4.1_03\lib\rt.jar(java/lang/Object.class)
    class file has wrong version 48.0, should be 47.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    implements org.apache.jasper.runtime.JspSourceDependent {
    ^
    1 error
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:83)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    If I remove JRE 1.4.1 and install previous version i.e. 1.3.1, the tomcat server is not starting. How do I proceed. I need help in executing servlets also. I copied the tools.jar file into the common/lib folder.
    I am awaiting for the replies. Thanks in advance.
    sampath

    Hmmm. It seems that Tomcat is running on Java1.3, but trying to compile a JSP using Java1.4, which leads to problems.
    What have you set your JAVA_HOME variables to?
    Which version of Tools.jar did you copy to the common/lib folder?
    How do you start up tomcat? Shortcut or service?
    Copying Tools.jar is a bad thing to do in most cases (Yes, I know it told you to do that, but if it told you to format your harddrive would you do that too?) I would remove tools.jar, and see what happens then.
    Good luck,
    evnafets

  • Oracle error -6508 returned when executing JSP

    The JSP program executes a stored procedure from a package. I've recompiled the package after some changes. The JSP returns -6508 error when it is executing the procedure. The error is returned only after recompiling the stored package. What could be the problem?

    Hi,
    ORA-6508 error is returned when the stored procedure cannot be found.
    ORA-06508 PL/SQL: could not find program unit being called
    Cause: An attempt was made to call a stored program that could not be found. The program may have been dropped or incompatibly modified, or have compiled with errors.
    Action: Check that all referenced programs, including their package bodies, exist and are compatible.
    Please check the package signature and the specifications.
    Thanks,
    Rashmi.

  • Executing JSP Pages on IRIX

    Hi ,
    I wanted to know what is required for executing a JSP Page on IRIX systems .
    What plugins do i require for the same.

    A WebContainer like Tomcat and a Tomcat compatible JVM

  • Help in executing jsp files using weblogic server 6.0.

              I have an operating system Windows2000, i have downloaded 30 day trial version of weblogic server 6.0.
              I have a file called hello.jsp.
              Where do i have to save hello.jsp file in weblogic server 6.0.
              How do i execute hello.jsp through browser using weblogic server6.0.
              As there is no properties file in weblogic server6.0.
              TO run it i started default server and when i started default console it got opened in the browser as http://127.0.0.1:7001/console/index.jsp
              Where do i have to save it and how do i open it in the browser.
              Any help will be greatly appreciated.
              Thanks,
              

              I started the Start default Server and opened the http://localhost:7001/ in the bowser and by default
              this loaded the index.html file
              and when i tried to change index.html to hello.jsp i got the same error message as before
              Error 404--Not Found
              From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
              10.4.5 404 Not Found
              The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
              If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
              "mils" <[email protected]> wrote:
              >
              >There are quite a few reasons it couldn't be working, and things you can try...
              >
              >Ensure there are no errors on startup of the server in the console, especially that there is not an error about another web listener running on the same port.
              >
              >Try just http://localhost:7001 by default this should load the index.html file that comes with the WebLogic installation.
              >
              >If you are running on a corporate LAN, your browser settings may not be set correctly to find "localhost", ensure that your browser is not using a proxy server for local addresses, or put localhost:7001 in the list of exceptions for which the browser should not look at the proxy server.
              >
              >Hope this helps!
              >
              >"Red" <[email protected]> wrote:
              >>
              >>I created hello.jsp file under E:\weblogic\wlserver6.0\config\mydomain\applications\DefaultWebApp_myserver\hello.jsp
              >>and i started the Start Default Server and when i try to open
              >>http://localhost:7001/hello.jsp in the browser
              >>getting an error message as
              >>
              >>Error 404--Not Found
              >>From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
              >>10.4.5 404 Not Found
              >>The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
              >>
              >>If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
              >>
              >>Any help?
              >>
              >>
              >>
              >>
              >>
              >>
              >>
              >>
              >>
              >>
              >>
              >>
              >>
              >>
              >>"Mils" <[email protected]> wrote:
              >>>
              >>>In WebLogic 6.0, to run simple JSP pages with the default installation, the JSP files should be put in....
              >>>
              >>>C:\bea\wlserver6.0\config\DefaultWebApp_myserver
              >>>
              >>>...assuming you installation was on the C: drive.
              >>>
              >>>To access a file bar.jsp in this directory, go to http://localhost:7001/bar.jsp
              >>>
              >>>"Red" <[email protected]> wrote:
              >>>>
              >>>>I have an operating system Windows2000, i have downloaded 30 day trial version of weblogic server 6.0.
              >>>>I have a file called hello.jsp.
              >>>>Where do i have to save hello.jsp file in weblogic server 6.0.
              >>>>How do i execute hello.jsp through browser using weblogic server6.0.
              >>>>As there is no properties file in weblogic server6.0.
              >>>>
              >>>>TO run it i started default server and when i started default console it got opened in the browser as http://127.0.0.1:7001/console/index.jsp
              >>>>
              >>>>Where do i have to save it and how do i open it in the browser.
              >>>>
              >>>>Any help will be greatly appreciated.
              >>>>Thanks,
              >>>>
              >>>>
              >>>>
              >>>>
              >>>
              >>
              >
              

  • How to execute jsp file ?

    Hi
    I don't know how to install and execute runtime environnement for jsp in windows 2000 with IIS5.Is't possible to integrate jsp technologies in IIS5 ?
    best regard's

    Hi, maybe you should try to search the keyword 'IIS' in this forum.
    Hope this helps,

  • Getting error message "Only a type can be imported-" when trying to execute jsp page

    I get the error: "Only a type can be imported. com.adobe.cq.TestServiceImpl resolves to a package in adobe day cq5
    I have created one bundle and installed in felix console. The status of the bundle is also Active. And also it is available in both service and component console.
    Here is my TestServiceImpl class in com.adobe.cq bundle
    package com.adobe.cq;
    import org.apache.felix.scr.annotations.Component;
    import org.apache.felix.scr.annotations.Service;
    import org.osgi.framework.BundleContext;
    import org.osgi.service.component.ComponentContext;
    import javax.jcr.RepositoryException;
    import org.apache.felix.scr.annotations.Property;
    import org.apache.felix.scr.annotations.Properties;
    //src.component
    //declares the class component. This will provide a wrapped ManagedService component in the OSGI container.
    //src.service interface="SampleService"
    //declares the service we are offering. Actually, the interface attribute is superflous, as by default, all implemented Interfaces are used.
    @scr.component
    @scr.service interface="testService"
    @Component(immediate = true, metatype = true)
    @Service
    @Properties( {
    @Property(name = "service.description", value = "abcd"),
    @Property(name = "label", value = "myLabel") })
    public class TestServiceImpl implements TestService {
    public String sayHello() {
         return "Hello World!";
    Here is my jsp code
    <%@include file="/libs/foundation/global.jsp"%><%
    %><%@include file="/apps/mine/includes/functions.jsp"%><%
    %><%@ page import="com.adobe.cq.TestServiceImpl,
    org.apache.sling.api.SlingHttpServletRequest,
                    java.util.List"%><%
    %><%
    SlingHttpServletRequest r = (SlingHttpServletRequest)request;   
                    TestServiceImpl testService = sling.getService(TestServiceImpl.class);
                    out.println("testService:::"+testService);
    %>
    <div id="te-nav" style="display:block !important;">
    </div>
    Is it because of am using annotation in TestServiceImpl class?
    Could you please tell me how to fix it?
    Regards,
    Anderson

    Hi Pawan,
    Thanks for your information. It was problem with my pom.xml It started to work after changing my POM.xml
    I am not able to get sling service for TestServiceImpl. But I am only able to create TestService which is my interface. I need to get reference for TestServiceImpl class not for TestService interface. Please help me to make it.
    i have created TestServiceImpl and TestService class for testing whether my bubdle is crating all the folder structure or not.
    But my requirement is like assume class A has some methods like getMenuLink, setMenuLink.. And In class B i am calling some methods in class A and doing some manipulation in createLink method.
    Here class B does not have any interface. Not implementing  any interface. But I need to get class B refererence via sling.getService.
    I know that if we are using maven SCR plugin..we need to have @component, @service. And All java classes are not services. Will it work if I add activate, deactivate method in class B?
    Could you please tell me how to proceed next?
    Thanks,
    Anderson

  • Tomcat - Error when executing JSP pages

    Hi,
    I installed tomcat 5.0.30 on a Windows XP os.
    I tried to write a simple JSP page, the classic "Hello World", but when I access the page, I obtain the following error message:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    javac: invalid flag: -source
    Usage: javac <options> <source files>
    where possible options include:
    -g Generate all debugging info
    -g:none Generate no debugging info
    -g:{lines,vars,source} Generate only some debugging info
    -O Optimize; may hinder debugging or enlarge class file
    -nowarn Generate no warnings
    -verbose Output messages about what the compiler is doing
    -deprecation Output source locations where deprecated APIs are used
    -classpath <path> Specify where to find user class files
    -sourcepath <path> Specify where to find input source files
    -bootclasspath <path> Override location of bootstrap class files
    -extdirs <dirs> Override location of installed extensions
    -d <directory> Specify where to place generated class files
    -encoding <encoding> Specify character encoding used by source files
    -target <release> Generate class files for specific VM version
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:437)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:497)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    What can be the problem? I use JRE v. 1.4.2.
    Thank for any help.

    I use JRE v. 1.4.2.What is your JAVA_HOME variable set to?
    Do you have a full Java1.4 installation? - ie not just the JRE but the compiler as well?
    javac: invalid flag: -sourceThis message would indicate that the -source flag is invalid for javac.
    This flag was introduced with java1.4.
    Most probably you have a java1.3 installed on the machine confusing tomcat.

  • How to execute jsp.servlet program in eclipse with small example

    This is sasidhar,
       How to set classpath pf tomcat to eclipse.
    and how to run jsp and servlets in eclipse 3.o
    thanks&regards
    sasidhar

    HI,
    Try these links
    http://help.sap.com/saphelp_nw04/helpdata/en/64/620a2ae361344abf47462809eb5388/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/f6/baba3eb645dc61e10000000a114084/frameset.htm

  • Making objects avialable while executing jsp page

    want to create some object in a jsp file, and make aviavble by all the classes used internally by the system, without sending the request through all calls, is there anyway to do this??

    Utiliza Beans, y en la parte de declaraci�n de estos pon la propiedad scope=session. Asi cada ves que invoques una instancia del objeto haras referencia al mismo creado anteriormente. Dicho objeto permanece durante toda la sessi�n.
    Una buena estrategia es crear Beans que encierren la l�gica del negocio y luego llamarlos o emplearlos en tus JSP.
    Para mayor detalle puedes consultar el peque�o curso de JSPs
    en www.jguru.com

Maybe you are looking for

  • Post Upgrade SQL Performance Issue

    Hello, I Just Upgraded/Migrated my database from 11.1.0.6 SE to 11.2.0.3 EE. I did this with datapump export/import out of the 11.1.0.6 and into a new 11.2.0.3 database. Both the old and the new database are on the same Linux server. The new database

  • Report for inbound delivery

    Dear all I want report for PO which inbound delivery is done but GR is not done? is there is any std .report? pls help

  • How can i  get report no of user login in system

    Hello how can i  get report no of user login in system means user license login per day in system what is strategy of SAP against licenses audit how can i manage my license users ?????????? Jayesh

  • No control or observe

    Hi, I just installed ARD 2.2 on my iMac G5 2.1 and connected my PowerMac G4 500. From the iMac, I can share my screen on the G4, put it to sleep, etc. But when I choose Control or Observe, nothing happens (except a neverending progression bar...) Any

  • Auto select u201CView selection only on requestu201D in selection view screen-MM02

    HI Friends, I want to auto set u201CView selection only on requestu201D in selection view screen before entering into various views (Basic data 1 / Basic data 2 . . .etc) for t.code- MM02 for all users. Please let me know where needs to be set. Thank