Mixed HTTP/HTTPS in one Struts-Application?

Hello!
I need to mix SSL (HTTPS)-Connection for Login and a few admin-pages and "normal" HTTP-Connections for most of my pages in my Struts-bases Webapplication.
How can i handle this issue?
Where can i get a detailled description of configuration an OC4J or Tomcat and Struts?
regards
Harald.

Hello Frank!
I tested sslstruts-example on standalone - tomcat and standalone - oc4j with ssl and it worked using http- and https-port defined in tomcat or oc4j.
My problem is, that my environment is a tomcat with apache webserver (mod_jk) or ias (apache with oc4j mod_oc4j).
What Port-Numbers do you usein struts-config.xml in this scenario (HTTP/HTTPS-Port from Apache Webserver)?
regards
Harald.

Similar Messages

  • Creating multiple http servers on one machine

    I created multiple http servers on one machine.
    I did this in the following way:
    Created a http service as nt service with the following command:
    apache -i -n Testservice -f d:\oracle\isuites\apache\apache\conf\httpd2.conf.
    When I start the service, I always get an error:
    Didn't return an error. Cannot start service.
    Can someone help me.
    I need two httpd services as nt service. Because, I want to use oracle fail safe. So I need a service.
    Alternative : I can create batch files. But I want to start these batch files as nt service. Is there a possibility on
    Windows nt to do this, or an available tool.
    Thanks in advance,
    Iloon

              "Jason Rosenberg" <[email protected]> wrote:
              >Hello,
              >
              >I am wondering about having multiple servers on one machine.
              >I take it, each server will require a unique ip address, which can
              >be done either by using multiple NIC's or using multi-homing.
              If you want to have multiplie servers in the same machine and you want to cluster them then you need ip for each instance.
              If you want multiple instances without clustering, then you can have them run on the same ip but each one should have a different port.
              >
              >I am asking because I am wondering whether it will always be valid
              >for me in servlet code to identify my current server instance by
              >ip address (InetAddress). Or is there a better way to do this?
              If you are accessing the ejb/services on the same server using a servlet. You can get the context, simply using the default getInitialContext(). This should return the context to the local machine. This shoudnt require any ip information.
              >
              >Jason
              >
              >
              

  • Mixed content - https and http

    Guys and Gals -
    I have a page that has mixed content - http and https. Users talk to my webserver
    using https, which talks to the portal server using http.
    The browser popups a warning saying that the site has mixed content. Is there
    any way to prevent this warning from coming up? Anything I can do using a proxy
    or something else?
    Thanks
    Niks

    Neeraj Harlalka wrote:
    It's probably not because your webserver is talking to App server on
    http connection. It could be some images being referrenced from the
    browser using non-secured protocol. Try using absolute path or code URLs
    using jsp tags.
    hope it helps
    Guys and Gals -
    I have a page that has mixed content - http and https. Users talk to my webserver
    using https, which talks to the portal server using http.
    The browser popups a warning saying that the site has mixed content. Is there
    any way to prevent this warning from coming up? Anything I can do using a proxy
    or something else?
    Thanks
    Niks

  • Disable to access http PUT method in sun application server

    how to disable to access http PUT method in sun application server. please help me.......

    You're probably better off asking this in a forum specifically about that server.
    Though as I recall, PUT is disabled by default in SunOne. But that was a while ago so maybe I've forgotten or things have changed.
    Have you actually tried doing a PUT to the server to see what happens?

  • How to retrieve the protocol (http / https) from WDJ application URL

    Hi All,
    In my WDJ component, I need to get the ServerName, Port and the protocol (http / https) from the WDJ application URL. I am able to get the server name and the port but unable to get the protocol. Any help would be highly appreciated.
    Code I am using is :
    String ServerName = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getServerName();
    String port = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getServerPort();
    Regards,
    Srinivas Sistu

    Hello,
    The interface ServletRequest has the following methods:
    getProtocol:  Returns the name and version of the protocol the request uses in the form protocol/majorVersion.minorVersion, for example, HTTP/1.1.
    getSchema: Returns the name of the scheme used to make this request, for example, http, https, or ftp. Different schemes have different rules for constructing URLs, as noted in RFC 1738.
    IWDRequest request = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
    HttpServletRequest httpRequest = (HttpServletRequest) WDProtocolAdapter
           .getProtocolAdapter().getRequestObject().getProtocolRequest();
    String protocol = httpRequest.getScheme();
    String url = protocol + "://" + request.getServerName() + ":" + request.getServerPort();
    msgManager.reportSuccess(url);
    Regards,
    Jann Cortés

  • Let us know list of HTTP methods used by Everest application 4.1

    Hi All,
    Please let us know list of HTTP methods used by Everest application. currently performing security scan on the Everest application.and have to disable unwanted HTTP methods (e.g. PUT, DELETE). Also let me know if we can use URLSCAN tool to disable the same.
    Regards,
    Srini

    Dear Srikumar,
    You need to have the following ports open for proper functioning of DOE in firewall environment ( I have configured the following ports in our server based on requirements):
    SAP Message Server ports - 3600,3601
    SAP DOE /ABAP http port - 8000  or 80 (or whatever ABAP http port you have configured).
    SAP Gateway ports : 3300,3301
    SAP dp00 and dp 99 - 3200, 3299
    Sometimes required - SAP host control ports - 1128, 1129
    Regards,
    Veera

  • Struts application using wsad 5.0 - unable to Run on server

    Hi,
    I m developing a small struts application using WSAD 5.0.
    Here is the code
    index.jsp
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ page
    language="java"
    contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"
    %>
    <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <META name="GENERATOR" content="IBM WebSphere Studio">
    <META http-equiv="Content-Style-Type" content="text/css">
    <LINK href="theme/Master.css" rel="stylesheet" type="text/css">
    <TITLE>ABC, Inc. Human Resources Portal</TITLE>
    </HEAD>
    <BODY background="F1_100.gif">
    <font size="+1">ABC, Inc. Human Resources Portal </font>
    </br>
    <hr width="100%" noshade="true">
    &#149;Add an Employee
    <br>
    &#149;
    <html:link forward="search">Search for Employees</html:link>
    <br>
    </BODY>
    </HTML>
    search.jsp
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <html>
    <head>
    <title> ABC, Inc. Human Resources Portal - Employee Search</title>
    </head>
    <body>
    <font size="+1">
    ABC, Inc. Human Resources Portal - Employee Search
    </font><br>
    <hr width="100%" noshade="true">
    <html:errors/>
    <html:form action="/search">
    <table>
    <tr>
    <td align="right"><bean:message key="label.search.name"/></td>
    <td><html:text property="name"/></td>
    </tr>
    <tr>
    <td></td>
    <td>-- or --</td>
    </tr>
    <tr>
    <td align="right"><bean:message key="label.search.ssnum"/></td>
    <td><html:text property="ssnum"/>(xxx-xx-xxxx)</td>
    </tr>
    <tr>
    <td></td>
    <td><html:submit/></td>
    </tr>
    </table>
    </html:form>
    <logic:present name="searchForm" property="results">
    <hr width="100%" size="1" noshade="true">
    <bean:size id="size" name="searchForm" property="results"/>
    <logic:equal name="size" value="0">
    <center><font color="red"><b>No Employees Found</b></font></center>
    </logic:equal>
    <logic:greaterThan name="size" value="0">
    <table border="1">
    <tr>
    <th>Name</th>
    <th>Social Security Number</th>
    </tr>
    <logic:iterate id="result" name="searchForm" property="results">
    <tr>
    <td><bean:write name="result" property="name"/></td>
    <td><bean:write name="result" property="ssNum"/></td>
    </tr>
    </logic:iterate>
    </table>
    </logic:greaterThan>
    </logic:present>
    </body>
    </html>
    searchForm.java
    package minihr.forms;
    import java.util.List;
    import javax.servlet.http.HttpServletRequest;
    import org.apache.struts.action.ActionError;
    import org.apache.struts.action.ActionErrors;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionMapping;
    * Form bean for a Struts application.
    * Users may access 3 fields on this form:
    * <ul>
    * <li>name - [your comment here]
    * <li>ssNum - [your comment here]
    * </ul>
    * @version      1.0
    * @author
    public class SearchForm extends ActionForm {
         private String name = null;
         private String ssNum = null;
        private List results = null;
          * Get Name
          * @return String
         public String getName() {
              return name;
          * Set Name
          * @param <code>String</code>
         public void setName(String name) {
              this.name = name;
          * Get SsNum
          * @return String
         public String getSsNum() {
              return ssNum;
          * Set SsNum
          * @param <code>String</code>
         public void setSsNum(String ssNum) {
              this.ssNum = ssNum;
          * Set Results
         public void setResults(List results){
              this.results=results;
          * get Results
         public List getResults(){
              return results;
         * Constructor
         public SearchForm() {}
         public void reset(ActionMapping mapping, HttpServletRequest request) {
              // Reset values are provided as samples only. Change as appropriate.
              name = null;
              ssNum = null;
              results = null;
         //validate form data.
         public ActionErrors validate(
              ActionMapping mapping,
              HttpServletRequest request) {
              ActionErrors errors = new ActionErrors();
              // Validate the fields in your form, adding
              // adding each error to this.errors as found, e.g.
              // if ((field == null) || (field.length() == 0)) {
              //   errors.add("field", new ActionError("error.field.required"));
              boolean nameEntered = false;
              boolean ssNumEntered = false;
              //Determine if name has been entered.
              if(name != null && name.length() > 0){
                   nameEntered = true;
              //Determine if social security number has been entered
              if(ssNum != null && ssNum.length() > 0){
                   ssNumEntered = true;
              /* validate that either name or ssnum has
               * been entered */
               if(!nameEntered && !ssNumEntered){
                    errors.add(null,new ActionError("error.search.criteria.missing"));
               /* validate format of ssnum if it has been entered */
               if(ssNumEntered && !isValidSsNum(ssNum.trim())){
                    errors.add("ssNum",
                       new ActionError("error.search.ssNum.invalid"));
              return errors;
         //validate format of social security number
         private static boolean isValidSsNum(String ssNum){
              if(ssNum.length() < 11){
                   return false;
              for(int i=0;i<11;i++){
                   if(i==3 || i==6){
                        if(ssNum.charAt(i) != '-'){
                             return false;
                   }else if("0123456789".indexOf(ssNum.charAt(i)) == -1){
                        return false;
              return true;
    searchAction.java
    package minihr.actions;
    import java.util.ArrayList;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import minihr.forms.SearchForm;
    import common.EmployeeSearchService;
    * @version      1.0
    * @author
    public class SearchAction extends Action {
         * Constructor
         public SearchAction() {}
         public ActionForward perform(
              ActionMapping mapping,
              ActionForm form,
              HttpServletRequest request,
              HttpServletResponse response)
              throws Exception {
              EmployeeSearchService service = new EmployeeSearchService();
              ArrayList results;
              SearchForm searchForm = (SearchForm) form;
              //perform employee search based on what criteria was entered
              String name = searchForm.getName();
              if(name != null && name.trim().length() > 0)
                results = service.searchByName(name);
              else
                   results = service.searchBySsNum(searchForm.getSsNum().trim());
              //place search results in searchform for access by JSP.
              searchForm.setResults(results);
              //forward control to this actions input page
              return mapping.getInputForward();
    EmployeeSearchService.java
    package common;
    import java.util.ArrayList;
    import common.Employee;
    * @author Niharika
    * To change this generated comment edit the template variable "typecomment":
    * Window>Preferences>Java>Templates.
    * To enable and disable the creation of type comments go to
    * Window>Preferences>Java>Code Generation.
    public class EmployeeSearchService {
         private static Employee[] employees =
              new Employee("samuel","123-45-6789"),
              new Employee("Robert","234-56-7890"),
              new Employee("smith","345-67-8901"),
              new Employee("Frank","456-78-9012")
         // search for employees by name
         public ArrayList searchByName(String name){
              ArrayList resultList = new ArrayList();
              for(int i=0; i<employees.length; i++)
                   if(employees.getName().toUpperCase().indexOf(name.toUpperCase()) != -1)
                        resultList.add(employees[i]);
              return resultList;
    // search for employee by social security number
    public ArrayList searchBySsNum(String ssNum){
         ArrayList resultList = new ArrayList();
         for(int i=0;     i<employees.length; i++)
              if(int i=0; i<employees.length; i++)
                   if(employee[i].getSsNum().equals(ssNum))
                        resultList.add(employees[i]);
              return resultList;
    Employee.java
    package common;
    * @author Niharika
    * To change this generated comment edit the template variable "typecomment":
    * Window>Preferences>Java>Templates.
    * To enable and disable the creation of type comments go to
    * Window>Preferences>Java>Code Generation.
    public class Employee {
    private String name;
    private String ssNum;
    public Employee(String name,String ssNum)
         this.name=name;
         this.ssNum=ssNum;
    public void setName(String name)
         this.name=name;
    public String getName()
         return name;
    ApplicationResources.properties
    # Label Resources
    label.search.name=Name
    label.search.ssNum=Social Security Number
    # Error Resources
    error.search.criteria.missing=<li>Search Criteria Missing</li>
    error.search.ssNum.invalid=<li>Invalid Social Security Number</li>
    errors.header=<font color="red"><b>Validation Errors </b></font><ul>
    errors.footer=</ul><hr width="100%" size="1" noshade="true">
    In searchAction.java
    it is showing 2 errors
    public ActionForward perform(
              ActionMapping mapping,
              ActionForm form,
              HttpServletRequest request,
              HttpServletResponse response)
              throws Exception {
    error is: Exception Exception is not compatible with throws clause in
    org.apache.struts.action.Action.Perform()
    Another error is shown at :
    return mapping.getInputForward();
    error is:
    method is undefined for typt org.apache.struts.action.ActionMapping
    please give me a solution for this watching the code
    i have opened the server perspective and started the server.
    next i am clicking run on server. There i am getting an error like this:
    Error Received while starting the server
    Reason:
    Launching the server failed:
    server port 9080 is in use.
    ORB bootstrap port 2809 is in use.
    SOAP connector port 8880 is in use.
    change each used port number to another unused port on the ports page of the server configuration editor. In case u have another websphere server running , you can try to increase each used port number by one and try again.please solve this problem

    Nothing at all to do with struts.
    Some of the ports that WSAD wants to use are already in use.
    Maybe you have a copy of websphere running already?
    If so stop that one, and try running again.

  • Need help implementing AJAX in an existing Struts Application

    Hi!
    I am trying to implement AJAX in my existing Struts Application. I need a good approach to go ahead and implement Ajax. I was thinking.. may be i will have to club all the code in the forms n actions (in the current Struts application) to one form and action, So I can easily include the dynamic content in the page.
    Please let me know if you have any ideas of how to implement AJAX in a fully developed Struts application.
    Thanks,
    Swapna.

    Hello Friends,
    Check out whether the link below could be of somehelp for you folks...
    http://www.it-eye.nl/weblog/2005/12/13/ajax-in-struts-implementing-dependend-select-boxes/
    http://today.java.net/pub/a/today/2005/10/27/sprinkle-ajax-magic-into-struts-webapp.html
    http://www.theserverside.com/news/thread.tss?thread_id=37355
    http://getahead.ltd.uk/dwr/examples/lists
    http://www.componentsource.com/products/backbase-ajax-struts/summary.html
    http://www.jibbering.com/2002/4/httprequest.html
    added to it there are few implementation frameworks which are addressing this issue you may further search on it and update abt the info which could be very much useful for all of the ppl out here.
    and there is a current thread running on the same topic it'd really appriciated if u can accomadate ur posts there.
    http://forum.java.sun.com/thread.jspa?threadID=784924&tstart=0
    REGARDS,
    RAHUL

  • Sample struts application

    Hello,
    I am new to struts, i installed struts in my tomcat web server 5.0, and allso i installed the struts examples in my tomcat server,
    i studied all the examples in the strutsexamples.war but it wont help me,i need to develope a small application using struts with the back end of mysql server5.0, i dont know how to retrive data from database and show it in page using struts,
    i know very well in jsp, but i dont know struts,
    plese any body give some useful reference links for developing struts application.
    thanking u in advance.
    plese help me.

    There are numerous resources around online, but I found this particular one very useful. It gives a good overview of several things in Struts and then you can build on.
    http://courses.coreservlets.com/Course-Materials/struts.html

  • Error when running struts application

    I get this error when i try to run my struts application.
    org.apache.jasper.JasperException: /JSP/Login.jsp(13,0) Attribute name invalid for tag form according to TLD
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236)
         org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1200)
         org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:821)
         org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1512)
    Can anybody tell me why this is happening :-(

    org.apache.jasper.JasperException: /JSP/Login.jsp(13,0) Attribute name invalid for tag form according to TLDIt means the attribute(s) you have specified in the Custom tag(<html:form/> in your case) is an invalid one. Check here for valid attributes name.
    [http://struts.apache.org/1.2.x/userGuide/struts-html.html#form|http://struts.apache.org/1.2.x/userGuide/struts-html.html#form]

  • Error in Struts Application, Form Submit

    I've developed a simple struts application which allows user to key in inputs thru a form(registration.jsp), submit n display e inputs keyed in in another page(details.jsp).
    i'd succesfully integrate e pdk-struts application to portal, but wen i click on 'Submit', my action r not performed, not directed to my details.jsp, neither do it shows any error.
    However, one thing i realised is tat wen integrated to portal, e codes for my action r changed:
    registration.jsp
    <html:form action="/register" focus="name">
    after integrated wit Portal, it was translated to:
    <form name="registerForm" method="post" action="http://smeagel:7778/portal/page">
    <INPUT TYPE="hidden" name="_pageid" value="6,3,6_22" />
    <INPUT TYPE="hidden" name="_dad" value="portal" />
    <INPUT TYPE="hidden" name="_schema" value="PORTAL" />
    <INPUT TYPE="hidden" name="_piref6_108279_6_3_22.strutsAction" value="register.do" />
    After Submit button was clicked, i was directed to a new URL, http://smeagel:7778/portal/page
    Any solutions??

    provider.xml
    <?xml version = '1.0' encoding = 'UTF-8' standalone='yes'?>
    <?providerDefinition version="3.1"?>
    <provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
    <session>true</session>
    <passAllUrlParams>true</passAllUrlParams>
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>1</id>
    <name>MyPortlet</name>
    <title>- Registration Form -</title>
    <description>My Portlet Description</description>
    <timeout>40</timeout>
    <showEditToPublic>false</showEditToPublic>
    <hasAbout>false</hasAbout>
    <showEdit>false</showEdit>
    <hasHelp>false</hasHelp>
    <showEditDefault>false</showEditDefault>
    <showDetails>false</showDetails>
    <inputParameter class="oracle.portal.provider.v2.DefaultParameterDefinition">
    <name>MyParam</name>
    <displayName>My Portlet Parameter</displayName>
    </inputParameter>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <renderContainer>true</renderContainer>
    <renderCustomize>true</renderCustomize>
    <autoRedirect>true</autoRedirect>
    <contentType>text/html</contentType>
    <showPage>/registration.jsp</showPage>
    <showPage class="oracle.portal.provider.v2.render.http.StrutsRenderer">/register.do</showPage>
    </renderer>
    </portlet>
    </provider>
    I'd saw some example, which using <defaultAction>, however, wen i put in <defaultAction>/register.do</defaultAction>
    i'll have error in my Provider Test Page. Validation Unsuccessful.
    Error: Class oracle.portal.provider.v2.render.http.StrutsRenderer has no set or add method for tag "defaultAction"
    Is <defaultAction> a necessary tag? Is tat e reason y my application isnt running?

  • How to install struts application in a real web server

    I have a problem about installing my struts application into web server..
    I can run my application under eclipse websphere development studio 5.0 web server but I don't know How I install it a real webserver (Apche,Unix,Tomcat or etc.) under location something like " http://cmpe.emu.edu.tr/ " .
    I have small exprerinece about web servers.. So if you can state your answers clearly, I'll be really grateful...
    Ergin DEMIREL
    Thanks in Advance..

    Web servers like Apache or M$ IIS serve up static HTLM content. They don't handle Java servlets/JSPs by default. You need a servlet/JSP engine for that. Tomcat is one. All J2EE-compliant app servers have one, too (e.g., WebSphere, WebLogic, JBoss, etc.)
    If you're asking how to do it with Apache the answer is: bolt Tomcat on top of Apache. There are docs on the Tomcat site to tell you how to do that.
    %

  • Help in struts application

    Hi guys,
    I'm using struts application,from that i will call
    one external java file.(i.e) At the time of server(tomcat) will start ,the java class file is also started.
    can u give any idea regarding my condition.I wrote some triggering logic in that Java file.
    so, i need once the application will start, the corresponding java file will also called.

    "SimpleServlet.java"
    package com;
    import org.quartz.CronExpression;
    import org.quartz.JobDetail;
    import org.quartz.Scheduler;
    import org.quartz.CronTrigger;
    import org.quartz.SchedulerException;
    import org.quartz.SchedulerFactory;
    import org.quartz.impl.StdSchedulerFactory;
    import javax.servlet.*;
    import java.io.*;
    import javax.servlet.http.HttpServlet;
    import org.quartz.ee.servlet.QuartzInitializerServlet;
    public class Simple extends HttpServlet {
    //Override
    public void init(ServletConfig config) throws ServletException {
    System.out.println("Initializing Scheduler PlugIn for Jobs!");
    super.init(config);
    // Retrieve a scheduler from schedule factory
    try {
         Scheduler scheduler;
         SchedulerFactory schedulerFactory = new
    StdSchedulerFactory();
         scheduler = schedulerFactory.getScheduler();
    ServletContext ctx = config.getServletContext();
    //Scheduler scheduler = null;
    StdSchedulerFactory factory = (StdSchedulerFactory)
    ctx.getAttribute(QuartzInitializerServlet.QUARTZ_FACTORY_KEY);
    scheduler = factory.getScheduler();
    //JobDetail jd = new JobDetail("job1",
    "group1",SimpleQuartzJob.class);
    JobDetail jd = new JobDetail("job1", "group1",Hello.class);
    CronTrigger cronTrigger = new CronTrigger("trigger1","group1");
    CronExpression cexp = new CronExpression("0/5 * * * * ?");
    //String cronExpr = null;
    //cronExpr = getInitParameter("cronExpr");
    //System.out.println(cronExpr);
    cronTrigger.setCronExpression(cexp);
    scheduler.scheduleJob(jd, cronTrigger);
    scheduler.start();
    System.out.println("Job scheduled now ..");
    } catch (Exception e){
    e.printStackTrace();
    //Override
    public void service(ServletRequest request, ServletResponse
    response)throws ServletException, IOException {
    PrintWriter pw=response.getWriter();
    pw.print("<html> <body> <h1>");
    pw.print("Please wait,DataBase Operations is
    performing.............");
    pw.print("</h1></body></html>");
    //Override
    public String getServletInfo() {
         System.out.println("servlet started..");
    return null;
    "web.xml"
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app>
         <display-name>
         Quartz</display-name>
    <servlet>
    <servlet-name>QuartzInitializer</servlet-name>
    <display-name>Quartz Initializer Servlet</display-name>
    <servlet-class>org.quartz.ee.servlet.QuartzInitializerServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    <init-param>
    <param-name>config-file</param-name>
    <param-value>quartz.properties</param-value>
    </init-param>
    <init-param>
    <param-name>shutdown-on-unload</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>start-scheduler-on-load</param-name>
    <param-value>true</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>Simple</servlet-name>
    <servlet-class>com.Simple</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Simple</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    </web-app>I tried from this site http://www.oreillynet.com/cs/user/view/cs_msg/86579
    but it will not work for me.
    It throws servlet exception.
    Message was edited by:
    SARAV_RS

  • Compilation error in java for struts application.

    Hello,
    I'm a newbie in java and struts, i was trying a simple struts application given in "struts complete reference".This is my code of its Controller class(Action class):-
    package com.jamesholmes.struts;
    import java.util.ArrayList;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    public final class SearchAction extends Action
    public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
    throws Exception
    EmployeeSearchService service = new EmployeeSearchService();
    ArrayList results;
    SearchForm searchForm = (SearchForm) form;
    //Perform employee search based on what criteria was entered.
    String name = searchForm.getName();
    if(name != null && name.trim().length() > 0)
    results = service.searchByName(name);
    else
    results = service.searchBySsNum(searchForm.getSsNum().trim());
    //place search results in SearchForm for access by jsp.
    searchForm.setResults(results);
    //Forward control to this Action's input page.
    return mapping.getInputForward();
    Now problem is when i'm compiling this java file i'm getting error"can not resolve symbol" for the instances i'm creating for SearchForm(view class) and EmployeeSearchService(model class).can any one help me how to resolve this error. I've tried importing those classes explicitly also, but error gets increased this way.

    Tht problem is solved, it was a mistake frm my side in compilation precedure.Anyway, now the real error-After i compiled and created the war file of application, i was running it in tomcat and got this Error, it is i guess a server sprcific error which i am unable to understand., can any one now help me solving this out?????Error is this :-
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
         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)
    root cause
    java.lang.NullPointerException
         org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:521)
         org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:436)
         org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:495)
         org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:353)
         org.apache.jsp.index_jsp._jspx_meth_html_link_0(index_jsp.java:96)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:69)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         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)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.27 logs.
    Apache Tomcat/5.0.27

  • New session creation in struts Application

    I succeed to access my J2EE struts application from the Portal (using the intigrator)
    The problem is that I create a new HttpSession in the first action called by the portal url by:
    session = pRequest.getSession(true);
    I set attributes into this session.
    When I navigate to the next page (using struts actions)
    and try to get this same session -
    pRequest.getSession(false)
    I see that the ID of the session has changed from the first one and it containes none of the attributes I set.
    Does this have to do with IViews in any way ?

    Hi Gidi,
    I am not sure about your qn. but try this link it will give u some idea about getting J2EE application in a portal component.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/g-i/how to access an ejb from a portal component.mht
    Regards
    gEorgE

Maybe you are looking for

  • Unable to send 2304 bytes of print data! (USB write error)

    I got this error message when I try to print with either my airport extreme or express printer, but printing with my other macbook works just fine. So the problem is not the airport nor the driver. So please tell me what's wrong with my Mac!

  • Printing from websites has failed with latest update

    Firefox won't print anything...everything just sits in the que. Other programs resident on my laptop print fine. Print is via wireless network. I switched over to Chrome and print function is fine for same websites.

  • Interfaces, Abstract Classes & Polymorphism

    I have a friend taking a Java course as part of a larger degree program, and she's asked for some help with an assignment. The assignment is as follows: This assignment is to write a simple encryption/decryption application.  There will be a single a

  • PO history categoies

    Hi, I know there are different categories of PO history, but i don't know the details about these, categories. Especially the NeuR, could you pls explain thies key? what's the relationship betewwn MM and CPI? thanks. Boxer DPyt Down payment NAbr Subs

  • Urgent : Fault Policies(MDS) in 11g

    Hi All, i am trying to use fault policies in 11g. In my project i've only one composite with 2 BPEL. As per documentation i can have 1). the fault policies and fault bindings in the same composite. this is working fine. 2). In a different location th