Programatic actionForm access from JSP

I am migrating an application that uses a lot of JavaScript that, in turn, uses embedded Java to initialize JavaScript variables, within the JSPs (see example below)
In the migrated code, using a page flow, I initialize an actionForm that is used to preset values into a <netui:form>. However I also need to access (reuse) the actionForm to initialize JavaScript variables with values contained in the actionForm.
Is there a way to access the actionForm programatically (with Java code) from a JSP?
Example
=======
In the example below, the cities JavaScript variable is initialized from the cityList Java variable.
Note that this example is very simple. The real code complexity precludes from initializing a hidden form variable and using it from JavaScript.
Eg: (My.jsp)
<% String[] cityList = (String[]) request.getAttribute( "city_names" );
%>
<script>
var cities = new Array();
<% for ( int i = 0; i < cityList.length; i++ )
%> cities[<%= i %>] = "<%= cityList[i] %>";
<% } %>
</script>
What I am trying to do is to replace
String[] cityList = (String[]) request.getAttribute( "city_names" )
by something like this
String[] cityList = (String[]) request.getAttribute( "{actionForm.cityNames}" )
Thanks

Hi
Im not sure if it works but you might try
<Forward returned />.addOutputForm method
Then the form bean is also available in request under the name determined by PageFlowUtils.getFormBeanName(ActionForm, HttpServletRequest).
The action form should be correctly picked up elsewhere without needing any changes
See the How Do i: Use Multiple forms in a JSP in workshop help under pageflows and the Forward class javadocs
regards
deepak

Similar Messages

  • Database Access from JSP - Is it correct?

    From a JSP Page, we need to retreive data from the database. We have our own application specific API commands to retreive data from database. We have doubts in using this API commands.
    Approach 1:
    From the jsp, send the query details to a Java file (BO). From the java file (BO), call the database and retreive the data
    Approach 2:
    Use the API command directly from the jsp page to retreive details from the database.
    In both approaches, the same API command is going to be used. We just want to know is there any advantage in calling the database through the java file (BO) instead of directly from the jsp?
    Regards,
    R.Aravinth

    Thanks Ram. But we are not going to have any complex
    codes written for data retreival. We just epxect a
    single line of code which will call database and that
    API command will return us a storage variable which
    we will use for displaying purpose.
    ok take a look at this
    //code to display lot of other stuff
    <%
        try {
           //code to access db and get data;
        catch(SomeException e){
            //oh-oh you are already on the display logic and have output a lot of stuff
            //how do you handle this
    %>versus this
    //code in some handler or bean
       try{
               //code to get data
              //set an attribute to enable a redirect to jsp page
        catch(Exception e){
              //handle exception, log ?
              //set an attribute to enable a redirect to error page
    Anyways, i wanted to know will the performance of the
    page improve if we call the database from a separate
    java rather than directly from jsp?As evnafets said, the answer is no. It may even be faster :)
    cheers,
    ram.

  • Database Access from JSP

    I'm trying to access a SQL Server database through an ODBC connection on a JSP page and having difficulties. This is the code that I'm using:
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection conn = DriverManager.getConnection("jdbc:odbc:ODBCConnection", "username", "password");
    Statement stmt = conn.createStatement();
    ResultSet results = stmt.executeQuery(
    "SELECT numUserID, txtUsername, txtPassword FROM tblUsers");
    while (results.next()) {
    int DBuserid = results.getInt("numUserID");
    String DBusername = results.getString("txtUsername");
    String DBpassword = results.getString("txtPassword");
    conn.close();
    } catch (Exception exc) {                              
    out.println ("Exception \"" + exc + "\" occured....<br>");
    exc.printStackTrace();
    I've got two servers I'm testing it on. One is the IBM WebSphere 3.5 on Windows NT 4 and the other one is the Oracle 9i Server (Apache) with java support on Windows 2000. The code works fine on the Oracle server, but does not work on the WebSphere. I am getting a "java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Client unable to establish connection" exception. The problem is that I need to run this thing on the WebSphere server.
    I guess this might have something to do with the Java server differences or OS differences, but I don't know what that could be. I'm sure there's something that I'm not doing right, I just need some help figuring out what that is. I'd appreciate any help anyone can provide. Thanks.

    ODBC connection is set up the same on both servers and works with Access. In fact, I have tried to put the same code that I'm trying to use in a regular text java file, it compiled and ran on that same server. I've got a feeling I have the Websphere server setup wrong, but I don't know exactly what and how to fix it.
    Thanks.

  • UNABLE TO ACCESS SECURED EJB USING IIOP FROM JSP

    Following codes does not work with IIOP when called from jsp returns an
    com.sap.engine.services.iiop.CORBA.CORBAObject:com.sap.engine.services.iiop.server.portable.Delegate_1_1@8312b1 step2 RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: com.sap.engine.services.ejb.exceptions.BaseRemoteException: User Guest does not have access to method create(). at
    Following codes does not work with IIOP when called from a fat client returns an
    org.omg.CORBA.UNKNOWN:   vmcid: 0x0  minor code: 0 completed: Maybe
            at com.sun.corba.se.internal.core.UEInfoServiceContext.<init>(UEInfoServ
    iceContext.java:33)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
            at com.sun.corba.se.internal.core.ServiceContextData.makeServiceContext(
    Properties p = new Properties();
    p.put(Context.INITIAL_CONTEXT_FACTORY,
    "com.sun.jndi.cosnaming.CNCtxFactory");
    p.put(Context.PROVIDER_URL, "iiop://hostname:50007");
    p.put(Context.SECURITY_PRINCIPAL, "User");
    p.put(Context.SECURITY_CREDENTIALS, "pass");
    I have add java option to add IIOP filer
    -Dorg.omg.PortableInterceptor.ORBInitializerClass.com.sap.engine.services.iiop.csiv2.interceptors.SecurityInitializer
    Solution Required: Could you please detail me what steps in need to perform in order for me to access secure ejb using iiop protocol.
    FYI -- How ever ejb security works with P4 protocol, If required i can send you the test case ear.
    Thanks
    Vijay
    Following are the server side logs
    java.rmi.RemoteException: com.sap.engine.services.ejb.exceptions.BaseRemoteException: User Guest does not have access to method create().
         at test.TestEJBHomeImpl0.create(TestEJBHomeImpl0.java:91)
         at test._TestEJBHome_Stub.create(_TestEJBHome_Stub.java:214)
         at jsp_testIIOP1199698887113._jspService(jsp_testIIOP1199698887113.java:33)
         at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.engine.services.security.exceptions.BaseSecurityException: Caller not authorized.
         at com.sap.engine.services.security.resource.ResourceHandleImpl.checkPermission(ResourceHandleImpl.java:608)
         at com.sap.engine.services.security.resource.ResourceHandleImpl.checkPermission(ResourceHandleImpl.java:505)
         at com.sap.engine.services.security.resource.ResourceContextImpl.checkPermission(ResourceContextImpl.java:45)
         at test.TestEJBHomeImpl0.create(TestEJBHomeImpl0.java:89)
         ... 20 more
    ; nested exception is:
         java.lang.SecurityException: com.sap.engine.services.security.exceptions.BaseSecurityException: Caller not authorized.
         at com.sap.engine.services.security.resource.ResourceHandleImpl.checkPermission(ResourceHandleImpl.java:608)
         at com.sap.engine.services.security.resource.ResourceHandleImpl.checkPermission(ResourceHandleImpl.java:505)
         at com.sap.engine.services.security.resource.ResourceContextImpl.checkPermission(ResourceContextImpl.java:45)
         at test.TestEJBHomeImpl0.create(TestEJBHomeImpl0.java:89)
         at test._TestEJBHome_Stub.create(_TestEJBHome_Stub.java:214)
         at jsp_testIIOP1199698887113._jspService(jsp_testIIOP1199698887113.java:33)
         at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

    That's the code that you need to execute but you should
    probably encapsulate that code in Custom Action.
    Orion has a EJB Tag Library that is free to distribute that
    does all that stuff you just set some attributes.
    Go to their site and look at their Tag Libraries.
    Also look for other Tag Libraries Freely Available for EJB Access.

  • Urgent-how to access custom tag from jsp tag

    I have a problem accessing a custom tag from a jsp expression.
    Details: I have a custom tag that returns a string variable. I need to access that variable from jsp expression <%%>.
    Can any body help me?

    Tags don't "return" values as in the normal sense.
    They can only support TEI (Tag Extra Information) that just stuffs a declared variable into the page's state.
    For example, if the tag class had a public method called getValue(), you could do the following:
    <xmp:mytag id="foo"/>
    <%
    out.println("value is " + foo.getValue());
    %>

  • Error in accessing servlet from JSP

    Hello everybody,
    When I access a servlet from a JSP page,I am getting the following error message :
    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.
    I am using Weblogic 7.0 and my web.xml code is as follows:
    <web-app>
    <servlet>
    <servlet-name>TestServlet</servlet-name>
    <servlet-class>TestServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>TestServlet</servlet-name>
    <url-pattern>/TestServlet</url-pattern>
    </servlet-mapping>
    </web-app>
    I am accessing the servlet from a javascript function in my JSP page.
    I am quite new to the Java technology. So any help in this regard would be highly appreciated.
    Thanks in advance,

    The form action event is in a javascript function. I am sorry I mentioned that I am accessing this servlet from JSP. Actually,this servlet is accessed from an HTML document.
    The following is the javascript code:
    <script language="javascript">
    function lfnCallNext()
         alert("In the function");
         frmMain.method="POST";
         frmMain.action="/TestServlet";
         frmMain.hidChoice.value="GetList";
         frmMain.submit();
    </script>
    And this function is called from an hyperlink as follows:
    Work with Employee Database
    Thanks,

  • Problem with accessing init parameters from JSP file

    Hi,
    I have my init parameters and Jsp configured in web.xml
    <servlet>
              <servlet-name>TestJsp</servlet-name>
              <jsp-file>/Test.jsp</jsp-file>
              <init-param>
                   <param-name>username</param-name>
                   <param-value>Balboa</param-value>
              </init-param>
    </servlet> How do I access 'username' field from JSP file.
    Kindly help.
    Thanks.

    you can do this in the jsp
    <%=config.getInitParameter("username")%>or do it in the jspInit method in the jsp:
    <%!  String userName = null; 
      public void jspInit() {   
        ServletConfig config = getServletConfig();   
        userName   = config.getInitParameter("userName ");  
    %>
    Hello <%=userName%>

  • How to access COM+ Objects From JSP

    Friends,
    We have a requirement to access COM+ objects from JSP. Please guide me on this.
    Thanks in advance.
    Tarani

    Sanyam wrote:
    if there is any .dll extension file, how can we read that file in labview?
    You can use Call Library Function node to call that dll file and use it in LabVIEW. Read the help and you will get more details.

  • Error when accessing Entity from JSP

    I'm trying to develop an application in Jboss AS.
    I have an Entity Class named Users and a stateful session named LoginActionBean which has the following method:
      public Users checkUser(String t1,String t2){
             Users test = (Users) em.createNamedQuery("Users.login").setParameter("userUsername",t1).setParameter("userPwd",t2).getSingleResult();
                return test;
        }In my jsp file, I try to do the following:
    Users a;
    public void jspInit() {
        try {
            InitialContext ic = new InitialContext();
            bci = (LoginActionLocal) ic.lookup("deytera_pasxa/LoginActionBean/local");
        } catch (Exception ex) {
            System.out.println("Error:"+
                    ex.getMessage());
    try {
        s2 = request.getParameter("username");
        s3 = request.getParameter("password");
        if (s2 != null && s3 != null) {
                a = bci.checkUser(s2,s3);
    .....I get no compilation error but when I try to run it I get:
    20:28:08,650 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
    java.lang.NoSuchMethodError: ejb.LoginActionLocal.checkUser(Ljava/lang/String;Ljava/lang/String;)Lejb/Users;
            at org.apache.jsp.isLogged_jsp._jspService(isLogged_jsp.java:90)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
            at java.lang.Thread.run(Thread.java:595)at the moment checkUser() is called. If I change the method's return type to let's say boolean and change the code, it works perfectly fine!
    I'm stuck here for 3 hours, any help much appreciated.
    Edited by: SyMpToM on May 5, 2008 11:03 AM
    Edited by: SyMpToM on May 5, 2008 11:04 AM

    The form action event is in a javascript function. I am sorry I mentioned that I am accessing this servlet from JSP. Actually,this servlet is accessed from an HTML document.
    The following is the javascript code:
    <script language="javascript">
    function lfnCallNext()
         alert("In the function");
         frmMain.method="POST";
         frmMain.action="/TestServlet";
         frmMain.hidChoice.value="GetList";
         frmMain.submit();
    </script>
    And this function is called from an hyperlink as follows:
    Work with Employee Database
    Thanks,

  • Access Content Space docs from JSP!

    Hi,
    How do I access PDF docs in contentSpace from JSP page?
    Regards,
    Srujan

    Detail error code is
    ALC-CSV-30101-000: 
    com.adobe.livecycle.contentservices.client.exceptions.CSInvalidParameterException: ALC-CSV-030-101-Invalid or No Store specified while invoking [retrieveContent].at com.adobe.livecycle.contentservices.dsc.impl.DocumentManagementServiceImpl.retrieveConten t( 
    DocumentManagementServiceImpl.java:444)at sun.reflect.GeneratedMethodAccessor2455.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke( 
    DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke( 
    Method.java:597)at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke( 
    DefaultPOJOInvokerImpl.java:118)at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept( 
    InvocationInterceptor.java:140)at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed( 
    RequestInterceptorChainImpl.java:60)at com.adobe.idp.dsc.interceptor.impl.DocumentPassivationInterceptor.intercept( 
    DocumentPassivationInterceptor.java:53)at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed( 
    RequestInterceptorChainImpl.java:60)at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction( 
    TransactionInterceptor.java:74)at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute( 
    EjbTransactionCMTAdapterBean.java:357)at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doSupports( 
    EjbTransactionCMTAdapterBean.java:227)at sun.reflect.GeneratedMethodAccessor777.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke( 
    DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke( 
    Method.java:597)at org.jboss.invocation.Invocation.performCall( 
    Invocation.java:359)at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke( 
    StatelessSessionContainer.java:237)at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke( 
    CachedConnectionInterceptor.java:158)at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke( 
    StatelessSessionInstanceInterceptor.java:169)at org.jboss.ejb.plugins.CallValidationInterceptor.invoke( 
    CallValidationInterceptor.java:63)at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext( 
    AbstractTxInterceptor.java:121)at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions( 
    TxInterceptorCMT.java:378)at org.jboss.ejb.plugins.TxInterceptorCMT.invoke( 
    TxInterceptorCMT.java:181)at org.jboss.ejb.plugins.SecurityInterceptor.invoke( 
    SecurityInterceptor.java:168)at org.jboss.ejb.plugins.LogInterceptor.invoke( 
    LogInterceptor.java:205)at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke( 
    ProxyFactoryFinderInterceptor.java:138)at org.jboss.ejb.SessionContainer.internalInvoke( 
    SessionContainer.java:648)at org.jboss.ejb.Container.invoke( 
    Container.java:960)at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke( 
    BaseLocalProxyFactory.java:430)at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke( 
    StatelessSessionProxy.java:103)at $Proxy401.doSupports(Unknown Source)
    at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute( 
    EjbTransactionProvider.java:104)at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept( 
    TransactionInterceptor.java:72)at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed( 
    RequestInterceptorChainImpl.java:60)at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept( 
    InvocationStrategyInterceptor.java:55)at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed( 
    RequestInterceptorChainImpl.java:60)at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept( 
    InvalidStateInterceptor.java:37)at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed( 
    RequestInterceptorChainImpl.java:60)at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept( 
    AuthorizationInterceptor.java:188)at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed( 
    RequestInterceptorChainImpl.java:60)at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept( 
    JMXInterceptor.java:48)at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed( 
    RequestInterceptorChainImpl.java:60)at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke( 
    ServiceEngineImpl.java:121)at com.adobe.idp.dsc.routing.Router.routeRequest( 
    Router.java:129)at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.invoke( 
    AbstractMessageReceiver.java:329)at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invokeCall( 
    SoapSdkEndpoint.java:139)at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invoke( 
    SoapSdkEndpoint.java:81)at sun.reflect.GeneratedMethodAccessor791.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke( 
    DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke( 
    Method.java:597)at org.apache.axis.providers.java.RPCProvider.invokeMethod( 
    RPCProvider.java:397)at org.apache.axis.providers.java.RPCProvider.processMessage( 
    RPCProvider.java:186)at org.apache.axis.providers.java.JavaProvider.invoke( 
    JavaProvider.java:323)at org.apache.axis.strategies.InvocationStrategy.visit( 
    InvocationStrategy.java:32)at org.apache.axis.SimpleChain.doVisiting( 
    SimpleChain.java:118)at org.apache.axis.SimpleChain.invoke( 
    SimpleChain.java:83)at org.apache.axis.handlers.soap.SOAPService.invoke( 
    SOAPService.java:454)at org.apache.axis.server.AxisServer.invoke( 
    AxisServer.java:281)at org.apache.axis.transport.http.AxisServlet.doPost( 
    AxisServlet.java:699)at javax.servlet.http.HttpServlet.service( 
    HttpServlet.java:710)at org.apache.axis.transport.http.AxisServletBase.service( 
    AxisServletBase.java:327)at javax.servlet.http.HttpServlet.service( 
    HttpServlet.java:803)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( 
    ApplicationFilterChain.java:290)at org.apache.catalina.core.ApplicationFilterChain.doFilter( 
    ApplicationFilterChain.java:206)at com.adobe.idp.dsc.provider.impl.soap.axis.InvocationFilter.doFilter( 
    InvocationFilter.java:43)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( 
    ApplicationFilterChain.java:235)

  • Access to a method located in view object from JSP page?

    Hi,
    How can i access a public method which is loacted in view
    object "viewobjectImpl.java" from JSP page.

    Juan,
    Either via Data tags or/and Java embedded code.(<%...%>).
    This method, suppose to execute a stored procedure.
    Thanks

  • The syntax for accessing MS SQL db from JSP

    Can anybody help me with the syntax for accessing MS SQL db from JSP???
    This is what I do when I use MySQL:
    Class.forName( "org.gjt.mm.mysql.Driver" );
    Connection conn = DriverManager.getConnection(
         "jdbc:mysql:://um" ,
    What do I write when it is MS SQL and where do I install the driver
    BR Soren

    Can anybody help me with the syntax for accessing MS
    SQL db from JSP???
    This is what I do when I use MySQL:
    Class.forName( "org.gjt.mm.mysql.Driver" );
    Connection conn = DriverManager.getConnection(
    "jdbc:mysql:://um" ,
    What do I write when it is MS SQL and where do I
    install the driver
    BR Soren
    One way of doing this is to use ODBC. Here's an example:
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection conn = DriverManager.getConnection("jdbc:odbc:<odbc name>", "<login>", "<password>");

  • Accessing a jsp from excel

    Hi,
    I have a jsp page in my weblogic server(version 9.2). It simply sets a session variable when the user visits the page for the first time. Now i am trying to access this jsp from a excel file(I am providing the URL of the page as a hyperlink). But the page is getting processed twice.
    For example in my jsp I have the following code:
    <%
    System.out.println("Initially "+session.getAttribute("var"));
    session.setAttribute("var","JAVA");
    System.out.println("After setting"+session.getAttribute("var"));
    %>
    When I access this page from excel it is printing the following in console:
    Initially null
    After settingJAVA
    Initially null
    After settingJAVA
    As you can see the statements are getting printed twice.
    Can any one explain the reason for such a behaviour?
    Edited by: gopi_3nath on Apr 3, 2008 4:35 AM

    Just the same as normal HTML
    In child window
    window.opener.parentfunctionname()

  • How to call servlet from jsp

    i m trying to call it from jsp using
    <a href="../purchaseP?orderno=<%=pno%>"><%=pno%></a>
    but its giving error..
    type Status report
    message HTTP method GET is not supported by this URL
    description The specified HTTP method is not allowed for the requested resource (HTTP method GET is not supported by this URL).

    i m trying to call it from jsp using
    <a href="../purchaseP?orderno=<%=pno%>"><%=pno%></a>
    but its giving error..
    type Status report
    message HTTP method GET is not supported by this URL
    description The specified HTTP method is not allowed
    for the requested resource (HTTP method GET is not
    supported by this URL).Are you implementing the doGet or doPost method in your servlet? If you are calling from a hyperlink then it needs to be implementing the GET method. To access the POST method use a html form.

  • How to import and display an applet from JSP

    i m using netbeans 5.0
    i have class named myapplet.class
    and jsp named myjsp.jsp
    now i want to access(import) this myapplet.class from jsp
    also i want to display this applet from this jsp
    i am able to do either thing but not both
    so please help me it is so urgent and important for me bcoz
    i have to complete my project as early as possible
    Thanks in advance

    my jsp source file page path is D:\Reliance
    project\WebApplication3\web\
    and classes path is D:\Reliance
    project\WebApplication3\build\web\WEB-INF\classes\
    so problem is that if i want to use myapplet.class
    then i have to put my class in D:\Reliance
    project\WebApplication3\build\web\WEB-INF\classes\
    location
    but at that time i am not able to display this applet
    on my jsp
    if i put my myapplet.class in
    D:\Reliance project\WebApplication3\web\ then i m
    able to display
    applet but not able to access(import) this class
    hope you will got the problem!!!
    thanks for your reply !!!try to set the path of your applet on jsp something like this
    "WEB-INF/classes/myclass.class"

Maybe you are looking for

  • Nokia c5-03 camera fps

    is it possible to change the framerate per seconds from 15 to 30 through firmware?coz the frame rate is really low even the phone like 5233,5230 have 30 fps.

  • How can I change the reminder time of an all day event?

    How can I make an all day event remind me the evening before.  The only reminder options are 9:00 the day of (which is too late) or 9:00 the day before (which gives you a whole day to forget about it).  Why can I not select when I want a reminder?  I

  • Server name, port from OSB proxy and BPEL processes

    How do I read the server name, port and any other server related information from OSB proxy and BPEL processes?

  • Time/Pitch Compression/Expansion - Dirac Le

    hi guys, just wanted to point some attention to some great software that is available freely to any manufacturer that creates sequencers. it's time/pitch expansion/compression software and it's called Dirac...for a respectable price there's a full bl

  • POP UP ACTION

    Hi, I created one popup with  buttons SUBMIT and NO. In my code I am calliing popup on some condition, its going to the popup code, but without opening immediatly popup, other code is executing and after that popup is openiing. I need to call action