Problem deploying my jsp pages to the BPEL Server

Hi,
I want to invoke a bpel process using a java file that is executed by a jsp page, so I deployed the jsp page and the java file to the bpel server where my bpel processes are, but i get the next error when i execute the jsp page. I use struts to define my pages.
Please help
here is the error in the browser:
500 Internal Server Error
java.lang.NoClassDefFoundError: com/collaxa/common/util/NonSyncStringWriter     at com.oracle.bpel.client.ClientResources.sanitizeArgs(ClientResources.java:123)     at com.oracle.bpel.client.ClientResources.getString(ClientResources.java:93)     at com.oracle.bpel.client.util.BeanRegistry.lookupDomainManagerBean(BeanRegistry.java:232)     at com.oracle.bpel.client.auth.DomainAuthFactory.authenticate(DomainAuthFactory.java:83)     at com.oracle.bpel.client.Locator.<init>(Locator.java:126)     at com.oracle.bpel.client.Locator.<init>(Locator.java:97)     at mypackage2.BpelManager.invokeProcess(BpelManager.java:58)     at mypackage2.ConstanciaTrabajoAction.execute(ConstanciaTrabajoAction.java:45)     at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)     at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)     at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)     at java.lang.Thread.run(Thread.java:534)
here the strut.config:
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<action-mappings>
<action path="/constanciaTrabajoAction" type="mypackage2.ConstanciaTrabajoAction" input="/constanciaTrabajo.jsp" scope="request" validate="true">
<forward name="OK" path="/exito.jsp"/>
<forward name="FALLO" path="/fracaso.jsp"/>
</action>
</action-mappings>
<message-resources parameter="mypackage2.ApplicationResources"/>
</struts-config>
the jsp file:
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ page import="java.util.*"%>
<%@ page contentType="text/html;charset=windows-1252"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>untitled</title>
</head>
<body>
<html:link action="/constanciaTrabajoAction">Constancia de Trabajo</html:link></body>
</html>
here the java files:
* ConstanciaTrabajoAction.java
package mypackage2;
import java.util.Map;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import java.io.IOException;
import javax.servlet.ServletException;
public class ConstanciaTrabajoAction extends Action
* This is the main action called from the Struts framework.
* @param mapping The ActionMapping used to select this instance.
* @param form The optional ActionForm bean for this request.
* @param request The HTTP Request we are processing.
* @param response The HTTP Response we are processing.
* @throws javax.servlet.ServletException
* @throws java.io.IOException
* @return
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
String xml = "<ConcatRequest xmlns='http://xmlns.oracle.com/Concat'>"
+"<input><Solicitud><SolicitudData><tipoSolicitud>Constancia Trabajo</tipoSolicitud>"
+"</SolicitudData><Solicitante><ID>vcuello</ID><Nombre>Veronica</Nombre><Apellido>Cuello"
+"</Apellido><Email>[email protected]</Email></Solicitante><Supervisor><ID>rperez</ID>"
+"<Nombre>Roberto</Nombre><Apellido>Perez</Apellido><Email>[email protected]</Email>"
+"</Supervisor><Gerente><ID>asanchez</ID><Nombre>Alfredo</Nombre> <Apellido>Sanchez</Apellido>"
+"<Email>[email protected]</Email></Gerente><Datos><Dato><Nombre>dato</Nombre>"
+"<Valor>valor</Valor></Dato></Datos><exito><notificacionCons>false</notificacionCons>"
+"<docManager><imprimir>false</imprimir><firmar>false</firmar></docManager></exito></Solicitud>"
+"</input>"
+ "</ConcatRequest>";
String oxml = "<ConcatResponse xmlns='http://xmlns.oracle.com/Concat'>"
+ "<result></result>"
+ "</ConcatResponse>";
BpelManager.invokeProcess("ConstanciaTrabajo","initiate",xml);
Map res = BpelManager.requestProcess("ConstanciaTrabajo","onResult",oxml);
return mapping.findForward("OK");
* [i]BpelManager.java
package mypackage2;
import com.oracle.bpel.client.Locator;
import com.oracle.bpel.client.NormalizedMessage;
import com.oracle.bpel.client.ServerException;
import com.oracle.bpel.client.delivery.IDeliveryService;
import com.oracle.bpel.client.util.WhereCondition;
import com.oracle.services.bpel.task.ITask;
import com.oracle.services.bpel.task.IWorklistService;
import java.util.Map;
import java.util.Properties;
public class BpelManager
static Locator locator = null;
static String bpelDomain = "default";
static String bpelDomainPassword = "bpel";
static String orabpelPlatform = "oc4j_10g";
static String javaNamingFactoryInitial = "com.evermind.server.rmi.RMIInitialContextFactory";
static String javaNamingProviderUrl = "ormi://develc15:23791";
static String javaNamingSecurityPrincipal = "admin";
static String javaNamingSecurityCredentials = "welcome";
static String dedicatedRmiContext = "true";
public static String bpelProcessName = "ConstanciaTrabajo";
public static void invokeProcess(String processName, String operationName, String sXml)
try
Properties props = new java.util.Properties();
props.setProperty("orabpel.platform",orabpelPlatform);
props.setProperty("java.naming.factory.initial",javaNamingFactoryInitial);
props.setProperty("java.naming.provider.url",javaNamingProviderUrl);
props.setProperty("java.naming.security.principal",javaNamingSecurityPrincipal);
props.setProperty("java.naming.security.credentials",javaNamingSecurityCredentials);
props.setProperty("dedicated.rmicontext", dedicatedRmiContext);
locator = new Locator(bpelDomain,bpelDomainPassword,props);
/*IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME);
// construct the normalized message and send to Oracle BPEL Process Manager
NormalizedMessage nm = new NormalizedMessage( );
nm.addPart("payload", sXml);
deliveryService.post(processName, operationName, nm);*/
} catch (Exception r)
r.printStackTrace();
public static Map requestProcess(String processName, String operationName, String sXml)
try
IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME);
//IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
// construct the normalized message and send to Oracle BPEL Process Manager
NormalizedMessage nm = new NormalizedMessage( );
nm.addPart("payload", sXml );
NormalizedMessage res = deliveryService.request(processName, operationName, nm);
Map payload = res.getPayload();
return payload;
} catch (Exception r)
r.printStackTrace();
return null;
public static ITask[] queryWorklistService(String arg)
// Lookup the worklist service.
IWorklistService worklist =
(IWorklistService)locator.lookupService( IWorklistService.SERVICE_NAME );
try
ITask[] tasks = worklist.listTasksByAssignee(arg);
return tasks;
} catch (ServerException s)
s.printStackTrace();
return null;
public static ITask[] queryWorklistServiceByCondition(WhereCondition cond)
// Lookup the worklist service.
IWorklistService worklist =
(IWorklistService)locator.lookupService( IWorklistService.SERVICE_NAME );
try
ITask[] tasks = worklist.listTasks(cond);
return tasks;
} catch (ServerException s)
s.printStackTrace();
return null;
public static void updateTask(ITask task)
// Lookup the worklist service.
IWorklistService worklist =
(IWorklistService)locator.lookupService( IWorklistService.SERVICE_NAME );
try
worklist.updateTask(task);
} catch (ServerException s)
s.printStackTrace();
public static void completeTask(ITask task)
// Lookup the worklist service.
IWorklistService worklist =
(IWorklistService)locator.lookupService( IWorklistService.SERVICE_NAME );
try
worklist.completeTask(task);
} catch (ServerException s)
s.printStackTrace();
public static ITask lookupTask(String taskId)
// Lookup the worklist service.
IWorklistService worklist =
(IWorklistService)locator.lookupService( IWorklistService.SERVICE_NAME );
System.out.println("Entro a Cargo tarea");
try
ITask task = worklist.lookupTask(taskId);
System.out.println("Cargo tarea");
return task;
} catch (ServerException s)
System.out.println("La boto");
s.printStackTrace();
return null;
public void setLocator(Locator locator)
this.locator = locator;
public Locator getLocator()
return locator;
public void setBpelDomain(String bpelDomain)
this.bpelDomain = bpelDomain;
public String getBpelDomain()
return bpelDomain;
public void setBpelDomainPassword(String bpelDomainPassword)
this.bpelDomainPassword = bpelDomainPassword;
public String getBpelDomainPassword()
return bpelDomainPassword;
public void setOrabpelPlatform(String orabpelPlatform)
this.orabpelPlatform = orabpelPlatform;
public String getOrabpelPlatform()
return orabpelPlatform;
public void setJavaNamingFactoryInitial(String javaNamingFactoryInitial)
this.javaNamingFactoryInitial = javaNamingFactoryInitial;
public String getJavaNamingFactoryInitial()
return javaNamingFactoryInitial;
public void setJavaNamingProviderUrl(String javaNamingProviderUrl)
this.javaNamingProviderUrl = javaNamingProviderUrl;
public String getJavaNamingProviderUrl()
return javaNamingProviderUrl;
public void setJavaNamingSecurityPrincipal(String javaNamingSecurityPrincipal)
this.javaNamingSecurityPrincipal = javaNamingSecurityPrincipal;
public String getJavaNamingSecurityPrincipal()
return javaNamingSecurityPrincipal;
public void setJavaNamingSecurityCredentials(String javaNamingSecurityCredentials)
this.javaNamingSecurityCredentials = javaNamingSecurityCredentials;
public String getJavaNamingSecurityCredentials()
return javaNamingSecurityCredentials;
public void setDedicatedRmiContext(String dedicatedRmiContext)
this.dedicatedRmiContext = dedicatedRmiContext;
public String getDedicatedRmiContext()
return dedicatedRmiContext;
public void setBpelProcessName(String bpelProcessName)
this.bpelProcessName = bpelProcessName;
public String getBpelProcessName()
return bpelProcessName;
}

hi,
I fix it, thanx
static Locator locator = null;
// public static IWorklistService worklist = null;
static String bpelDomain = "default";
static String bpelDomainPassword = "bpel";
static String orabpelPlatform = "oc4j_10g";
static String javaNamingFactoryInitial = "com.evermind.server.rmi.RMIInitialContextFactory";
static String javaNamingProviderUrl = "ormi://myserver:23791/orabpel"; /*this was wrong
static String javaNamingSecurityPrincipal = "admin";
static String javaNamingSecurityCredentials = "welcome";
static String dedicatedRmiContext = "true";
static{
try{
Properties props = new java.util.Properties();
props.setProperty("orabpel.platform",orabpelPlatform);
props.setProperty("java.naming.factory.initial",javaNamingFactoryInitial);
props.setProperty("java.naming.provider.url",javaNamingProviderUrl);
props.setProperty("java.naming.security.principal",javaNamingSecurityPrincipal);
props.setProperty("java.naming.security.credentials",javaNamingSecurityCredentials);
props.setProperty("dedicated.rmicontext", dedicatedRmiContext);
locator = new Locator(bpelDomain, bpelDomainPassword, props);
} catch (ServerException se){se.printStackTrace();}
}

Similar Messages

  • Deploy a JSP file onto the Portal Server ?

    Hello All,
    I have a jsp file with me.
    Now I just want to deploy it on to the Portal server.
    Should I create a JSP Dynpage ?
    I've the complete jsp file . Shud i need to do anything to convert it into a jsp dynpage ?
    Can anyone tell me the procedure of how to achieve this ?
    Regards,
    Deepu.K

    Hi Deepu,
    check SAP Library section <a href="http://help.sap.com/saphelp_nw70/helpdata/en/de/7f5d7b186e4430ae40e5e4382c280e/frameset.htm">Portal Development Manual</a> for more information about portal development.
    For example in section <a href="http://help.sap.com/saphelp_nw70/helpdata/en/44/46bb8670e20597e10000000a155369/frameset.htm">Deploying the Portal Application</a> SAP describes how to deploy portal applications (including JSP Dynpages).
    Best regards,
    Martin

  • How to Link another JSP Page in the same portal component

    Hi Guys,
      I am a new guy to SAP, currently, I want to add href link to another JSP in the same component, so I used <a href="<%=webpath%>/jsp/AboutPage.jsp">, but obviously, the link can not display target page due to privilege restriction, does anyone know how to resolve this problem? thanks very much!
      Best Regards
      James

    Thanks srinivas,
       Sorry for late response, too busy yesterday.
       Currently, I want to create a URL link in the page which links another JSP page in the same portal component, but the problem is this JSP page is under PORTAL-INF folder, so due to privilege problem, I can not create the link like the following:
    <a href="jsp/test.jsp">Link</a>
       I konw if I move test.jsp out of folder PORTAL-INF, the above way should work, but then, I found the JSP page can not access componentRequest and get resource bundle object.
      Am I clear, please let me know, thanks!
    Regards.
    James

  • How to redirect a JSP page after the session is killed

    Hello!
    I am quite new to JSP. I have a question about how to redirect a jsp page after the session is killed. Could anyone help?
    thanks a lot in advance!

    You can't, directly. There's no connection betweenthe server and browser.
    even after invalidating the session. we can do it
    directly using the statement
    response.sendRedirect("....");
    or we can use the meta refresh tag.if session is invalidated and if we try to do response.sendRedirect(".. ") it throws IllegalStateException

  • Pass the data back from the jsp page to the java code

    Hi,
    I have written an iView that receives an event using EPCF and extracts data from the client data bag.
    I need this iView to pass the data back from the jsp page to the java code.
    I am trying to do this using a hidden input field, but I cannot get the code to work.
    Here is the code on the jsp page.
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId">
    <hbj:inputField id="myInputField" type="string" maxlength="100" value="" jsObjectNeeded="true">
    <% myInputField.setVisible(false);%>
    </hbj:inputField>      
       </hbj:form>
      </hbj:page>
    </hbj:content>
    <script language=JavaScript>
    EPCM.subscribeEvent("urn:com.peter", "namedata", window, "eventReceiver");
    function eventReceiver(eventObj) {
         var url = eventObj.dataObject;
         var funcName = htmlb_formid+"_getHtmlbElementId";
         func = window[funcName];
         var ipField = eval(func("myInputField"));
         ipField.setValue(url);
         var form = document.all(htmlb_formid);
         form.submit();
    </script> 
    Here is my java code
    package com.sap.training.portal;
    import com.sapportals.htmlb.InputField;
    import com.sapportals.htmlb.page.DynPage;
    import com.sapportals.htmlb.page.PageException;
    import com.sapportals.portal.htmlb.page.JSPDynPage;
    import com.sapportals.portal.htmlb.page.PageProcessorComponent;
    public class ListSalesOrder extends PageProcessorComponent {
      public DynPage getPage(){
        return new ListSalesOrderDynPage();
      public static class ListSalesOrderDynPage extends JSPDynPage{
         private String merong;
        public void doInitialization(){
        public void doProcessAfterInput() throws PageException {
              InputField reportfld = (InputField) getComponentByName("myInputField");
              if (reportfld != null)      merong = reportfld.getValueAsDataType().toString();
        public void doProcessBeforeOutput() throws PageException {
              if ( merong != null ) setJspName("merong.jsp");
              else setJspName("ListSalesOrder.jsp");
    Here is DD
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="SharingReference" value="com.sap.portal.htmlb"/>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
      </application-config>
      <components>
        <component name="SearchSalesOrder">
          <component-config>
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="/pagelet/SearchSalesOrder.jsp"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
        <component name="ListSalesOrder">
          <component-config>
            <property name="ClassName" value="com.sap.training.portal.ListSalesOrder"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>
    After receive event, then call java script function "eventReceiver" and call "form.submit()".
    But .. PAI Logic in Java code doesn't called ...
    Where is my problme ?
    Help me ...
    Regards, Arnold.

    Hi Arnold,
    you should not do a form.submit yourself. Instead you can put a component called ExternalSubmit to your page:
    ExternalSubmit exSubmit = new ExternalSubmit("EX_SUBMIT"));
    exSubmit.setServerEventName("MyEvent");
    This results in a java script funtion on the page which is called "_htmlb_external_submit_". If you call this function the the form gets submitted and your event handler is called.
    regards,
    Martin

  • Ive just learned that i can use loadjava to load jsp pages into the database.

    Ive just learned that i can use loadjava to load jsp pages into the database. How is that possible. How can someone go to my lets say, index.jsp page and actually see it if its inside the database? What authenticates it? Where would you set the parameters to tell http(apache) to look inside the db for the pages?
    Any ideas?

    Thanks for the reply. If I put the file on the database, does it have to be in a particular location? I've put it on the database server, launched sql*plus (as APPS) and ran the following:
    execute dbms_java.loadjava('-v', 'ZebraGetPrinterFromXML.class');
    PL/SQL procedure successfully completed.Then when I try to run a process that uses this I get this:
    ORA-29540: class ZebraGetPrinterFromXML does not exist

  • Submit the jsp page containing the textarea

    Hi,
    I have a jsp page containing the textarea and a submit button. This page is submitted using POST. In the next page the content of the textarea is obtained and displayed. Can anyone let me know if there is any maximum limit on the characters in the textarea?
    I am using JRUN3.1.
    If the characters in the textarea is increasing 2000 characters, in the next page if i try to get the content of the textarea i am getting as null???
    please help me out.

    Hi,
    There is a limit as to how much data that can be passed using the GET method. Dont remember it at the top of my head now.
    It would be better to use the POST method.
    Sandesh

  • My Page on the OSX Server with non-iphone

    Hi,
    When I try to connect to an 'My Page' on the OSX server (10.6) with a non-iphone phone I don't get an login screen so I can't access my calender by phone. The phone I tried is from a minor brand called Nokia, I think they just sold just a couple of phones in the market. Is there a simplified version of the 'My Page' for the rest of the world to use?
    BR
    Johan

    The login window is generated via JavaScript. Are you sure JavaScript is supported (and enabled) in your phone's web browser.

  • Jsf problem go from jsp page to another jsp in new window

    I’ve two jsp pages attendReport.jsp and printAttendReport.jsp
    attendReport.jsp contains inputs for attend duration and employee id and command button “view” to view attendance data entered employee during entered duration inside the same page(this work very good)
    the problem is the same page includes another command button “print” its job is to get the same data but view them in the second page printAttendReport.jsp in another window in order to print the data in some suitable format , but the print button opens attendReport.jsp instead of printAttendReport.jsp and does not hold the inputs else if I set <managed-bean-scope> to session not request which cause caching data , please help me if you to solve this problem
    and here the related lines of code
    <faces-config >
    <managed-bean>
    <managed-bean-name>attendReportBean</managed-bean-name>
    <managed-bean-class>csc.attend.bean.AttendReportBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/attend/attendReport.jsp</from-view-id>
    <navigation-case>
    <from-action>#{AttendReportBean.attendReport}</from-action>
    <from-outcome>attendReport</from-outcome>
    <to-view-id>/attend/attendReport.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-view-id>/attend/attendReport.jsp</from-view-id>
    <navigation-case>
    <from-action>#{AttendReportBean.printAttendReportAction}</from-action>
    <from-outcome>printAttendReportAction</from-outcome>
    <to-view-id>/attend/printAttendReport.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config> // here is managed bean code
    public class AttendReportBean {
    // data , getters and setters
    init();
    //Preload in initialization block.
    public void init() {
    // initialize data
    public String attendReport() {
    // code to get attend data to go to view page(same page) it is ok
    return "attendReport"; // Navigation case.
    public static String getRequestParameter(String name) {
    return (String) FacesContext.getCurrentInstance().getExternalContext()
    .getRequestParameterMap().get(name);
    public void printAttendReportListener(ActionEvent event) {
    String fromYearStr = getRequestParameter("fromYearAtt");
    System.out.println("fromYearStr = "+fromYearStr);
    // try to get inputs through ActionListener but it gives me null
    public String printAttendReportAction() {
    // code to get attend data to go to print page(another page in new //window) but inputs come in default values
    return "printAttendReportAction"; // Navigation case.
    }attendReport.jsp
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <f:view>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    //title . styles and validations //
    </head>
    <body>
    <h:form id="attendReportForm">/the form tag appear in running source as <form id="attendReportForm" method="post" action="/newdiwan/faces/attend/attendReport.jsp" enctype="application/x-www-form-urlencoded" >
    i.e. it always submit to attendReport.jsp page
    / some inputs and outputs /
    <h:commandButton onclick="return check();" id="view" action="#{attendReportBean.attendReport}" value="" styleClass="linksNumBlue" />//it works good/
    // some outputs to view data /
    <h:commandLink immediate="true" id="printLink" value="" action="#{attendReportBean.printAttendReportAction}" actionListener="#{attendReportBean.printAttendReportListener}" target="_blank" styleClass="linksNumBlue">
        <f:attribute  name="fromYearAtt" value="2009" />
        <f:attribute  name="fromMonth" value="01" />
       <f:attribute  name="toYear" value="2010" />
       <f:attribute  name="toMonth" value="06" />
    </h:commandLink>//this has two problems 1)submit to attendReport.jsp not printAttendReport.jsp which I want to go to.
    //2)does not get the inputs but return the default values only /
    </h:form></body></html></f:view>I use libraries { jsf-api.jar , jsf-impl.jar , jstl-1.1.0.jar and tomahawk-1.1.6.jar } and deploy on tomcat 6.0
    I’m sorry for the prolongation, please help me if you can
    Edited by: alynoor on Jul 8, 2010 1:51 AM
    Edited by: alynoor on Jul 8, 2010 1:55 AM

    my problem solved 1- i use 2 managed bean , one of request scope (used in attendReport.jsp ) and the other with session scope (used in printAttendReport.jsp)
    2 - add new jsp contains the h:commandLink of the print (attendReportPrintAction.jsp)
    3 - divide the view of attendReport.jsp to two subviews (each subview has its own form) one contains inputs and outputs of attend and the other contains include to (attendReportPrintAction.jsp)
    <%@ include file="attendReportPrintAction.jsp" %>
    4 - send and get parameters using two methods
                public static Object getSessionMapValue(String key) {
                   return FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(key);
                public static void setSessionMapValue(String key, Object value) {
                   FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put(key, value);
                }faces-config.xml
       <managed-bean>
          <managed-bean-name>attendReportBean</managed-bean-name>
          <managed-bean-class>csc.attend.bean.AttendReportBean</managed-bean-class>
          <managed-bean-scope>request</managed-bean-scope>
       </managed-bean>
        <managed-bean>
          <managed-bean-name>print_attendReportBean</managed-bean-name>
          <managed-bean-class>csc.attend.bean.AttendReportBean</managed-bean-class>
          <managed-bean-scope>session</managed-bean-scope>
       </managed-bean>
    <navigation-rule>  
        <display-name>viewReport</display-name>  
        <from-view-id>/attend/attendReport.jsp</from-view-id>  
        <navigation-case>  
            <from-action>#{AttendReportBean.attendReport}</from-action>
            <from-outcome>attendReport</from-outcome>  
            <to-view-id>/attend/attendReport.jsp</to-view-id>  
        </navigation-case>  
    </navigation-rule>
    <navigation-rule>  
        <display-name>printReport</display-name>
        <from-view-id>/attend/attendReport.jsp</from-view-id>  
        <navigation-case>  
            <from-outcome>printAttendReportAction</from-outcome>  
            <to-view-id>/attend/printAttendReport.jsp</to-view-id>  
        </navigation-case>  
    </navigation-rule>attendReportPrintAction.jsp
    <f:subview id="printAttendReportSubView" >
    <h:form id="printAttendReportForm" onsubmit="return check222();" >
                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                  <tr>
                                    <td width="11%">
                                    <table width="70" border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                          <td width="7" height="28"><img src="../images/B-left.gif" width="7" height="28" /></td>
                                          <td align="center" background="../images/B-bg.gif">
                                            <!--a href="printAttendReport.jsp" class="linksNumBlue" target="_blank" >&#1591;&#1576;&#1575;&#1593;&#1577;</a-->
    <h:commandLink id="printLink" value="&#1591;&#1576;&#1575;&#1593;&#1577;" title="&#1591;&#1576;&#1575;&#1593;&#1577;"  action="#{print_attendReportBean.printAttendReportAction}"   target="_blank"  styleClass="linksNumBlue">
                                        </h:commandLink>
                                            </td>
                                          <td width="7" height="28"><img src="../images/B-right.gif" width="7" height="28" /></td>
                                        </tr>
                                      </table>
                                      </td>
                                    <td align="right"> </td>
                                  </tr>
                                </table>
    </h:form>
    </f:subview>i hope this helps someone

  • Problem launching a jsp page with eclipse and tomcat

    Hi,
    I have just started using eclipse and tomcat for creating dynamic web pages. I tried to launch a jsp page after starting the tomcat server with the URL: http://locahost:8080/HelloWorld/, an error page was displayed as below:
    HTTP Status 404 -/
    type Status report
    message /_
    description The requested resource (-) is not available
    Apache Tomcat/5.5.17
    I didn't get any error at the console and when i just typed http://localhost, a pop up menu saying that the connection was refused when attempting to contact localhost.
    I'm not sure what is the problem here. Could it be the permssion to the localhost is not granted by the system as the eclipse IDE is running using linux?
    Hope someone can help.
    Thanks.

    http://www-128.ibm.com/developerworks/library/os-ectom/

  • How Can I speed  up the results on my JSP page with the help of Caching.

    I am generating a dropdown listbox by merging an xml file with a style sheet(xsl).
    This list box comes up fine without any problems. Now, I am adding some advanced
    logic to the
    style sheet (xsl) to use the same xml file in a more efficient way. This time
    the generation
    of the list box is taking much longer (upto 25 seconds) although I get the results
    I want.
    Is there any way I could speedup this process by using weblogics caching. I know
    the process is slowing down
    due to the code in the stylesheet. Will caching resolve this issue?. I tried
    using
    <wl:cache> </wl:cache> on the jsp page generating this listbox but found no improvement.
    Any help will be very much appreciated.

    turn off your phone, unplug your router, leace it off for 30 seconds, and then power it back on and turn the iphone back on

  • Error when deploy a jsp page which includes customizable component

    Hi all,
    I add a customizable component to my jsp page. It works fine on local but when I deploy it and run the deployment I get the error below:
    500 Internal Server Error
    OracleJSP:
    JSP Error:
    Request URI:/islistesi/DevamEdenIsler.jspx
    Exception:
    java.lang.IllegalStateException: ClassLoader "islistesi.web.islistesi:0.0.0" (from <web-module> in /oc4j/webcenter/j2ee/home/applications/islistesi/islistesi/): This loader has been closed and should not be in use.
    anyone who has an idea?
    thanks a lot in advance

    Did you define a web.xml and application.xml file for the deployment of your application?
    Are you using deployment profiles to configure your application on a standalone OC4J?

  • Opening a Java Window from a jsp page on the client side

    Hi all,
    Thanks in advance to all who could help me for this problem.
    I've written some jsp pages. In one of them, I open a new Java Window,
    which is a simple Java Frame. If I test this directly on the Tomcat
    server, everything works well.
    But when I call the jsp page through a web browser of a distant client
    (normal use), and when I want to see the java window, no window pops
    up. It appears that the Java Window pops up on the server, and not on
    the client side, which is what I wanted.
    Could someone tell me how to make the Java frames appear on the client
    side ? (Is it linked to the code or to the configuration of Tomcat ?)
    Thanks in advance,
    Alexis.

    JSP always run on the server. On the client you only see the results.
    But you can use applets on the client side: http://java.sun.com/docs/books/tutorial/uiswing/components/applet.html

  • How to create and deploy a JSP which calls a BPEL process in JDEVELOPER

    Hi Gurus,
    I don't know how to create a JSP in JDEVELOPER which call a BPEL process. I have gone through the tutorials. Since, I am new to JDEVELOPER I need some help.
    1. How to create a JSP (I know creating application and project, also I know JSP coding)
    2. How to deploy this JSP?
    3. For the Synchronos BPEL project, the build.xml is created automatically, in this forum, I see people talking about ear war .deploy etc. How do we get them automatically created. Or do we need to create them manually. If it has to be manual some sample scripts would be of great help.
    Any help in this regard would be really great.
    Thanks in advance,
    Sankar.

    I found the following tutorial which clearly explains how to deploy J2EE apps.
    http://www.oracle.com/technology/obe/obe1013jdev/deployment/deployment.htm
    I created a simple jsp file in a project, followed the steps in the tutorial and it got deployed onto: http://localhost:9700
    For invoking BPEL process through JSP, I have reused the jsp files available in : 102.InvokingProcesses\jsp and changed the processes and input accordingly.
    Please post me a query in this thread, if any of you want any specific details.

  • Compilation problem in a JSP page

    Hi all,
    I'm trying to write a jsp page and some java stuff in it.
    It goes something like this -
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1255"%>
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1255"/>
        <title>Michael</title>
      </head>
      <body>
    <%
              String strError="";
    %>
    </body>Now the problem is that I get compilation problem about the use in java -
    "String cannot be resolved to a type"
    I know for sure that in other computers it's work, the question is what I'm missing?
    I have Java VM installed and I've downloaded and installed the latest JDK, what else?
    thanks,
    Michael.

    Michael4488 wrote:
    BalusC wrote:
    Then you should be using JSTL/EL.I don't familiar with this technology, any way - Its work on one computer so in my understanding it should work on the other as well.It is not related to the actual problem. It was just a comment on your code. Using scriptlets is considered as bad practice.
    I understand that of course, but I don't use any configuration file or set any special parameters in my computer.
    What exactly does the compiler need in order to recognize the Java code in the JSP page? If i manually add the JAVA_HOME environment variable it will work?
    where should I refer it to? "..\Java\jre1.6.0_07\lib" will do?It must point to the root installation directory of the JDK (thus not the JRE!).

Maybe you are looking for

  • Regarding issue related to  RPTBAL00.it's very urgent

    hi All,   i am having one issue related to RPTBAL00 report.   this report will dispaly time wage types related to emplyoees.   using this report we can get informtion of time wage type like 9lc1,9lg1,plwp. Now issue is this report is not running for

  • I Fell Through a Microsoft Trap Door

    Today I decided to add Media Center capabilities to my properly licensed and activated Win 8.1 Pro system so I could watch some DVDs (yes, I know there are other ways).  Seems simple enough - go to the Add Features section, put in a Media Center key,

  • I'm using Firefox 31.0, but even Mozilla tells me I'm using an older version.

    I always update to the latest version. Even though I'm using 31.0 right now, I checked with Mozilla website last night and was directed to "upgrade" again. I did so. Today, right now while writing this a message in a green button is telling me to upg

  • Access to metalink

    Hi all - quick question - I can obviously get to the forums ok but when I click on a Metalink document anyone suggests I read, I can't view it, I just get My Oracle Support screen coming up with a warning saying that 'Access to all other features fro

  • GRC - Installations

    Hi Gurus', Currently, client is upgrading to GRC 5.3 from 5.2. Client says "Couple of Installations should have had implausibles readings of 08/31/09 corrected automatically by cancel/rebill program but did not." please suggest whether this need to b