From Struts 1.1 to Struts 1.2

I begin developing application based on Struts 1.1. But close to finish I discover that in Struts 1.2 I can find very useful (as I thought at that time) validation rules - validwhen. I decide to replace Struts 1.1 with Struts 1.2.
I replaced struts.jar in my WEB-INF/lib folder and now I have exception:
java.lang.NullPointerException
     org.apache.struts.taglib.TagUtils.retrieveMessageResources ....
When I give struts.jar(1.1 version) back - all work fine again.
I think that Struts 1.2 work with message resources in slightly different way than Struts 1.1. But what I should do to have system working with Struts 1.2 also.
Can anybody help me ?

I have found in logs the following stack trace ... It seems that problem in struts-config.xml parsing ...
2005-05-13 13:40:48 StandardContext[JSVS]Servlet /JSVS threw load() exception
javax.servlet.UnavailableException: Parsing error processing resource path /WEB-INF/struts-config.xml
     at org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:739)
     at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:715)
     at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:670)
     at org.apache.struts.action.ActionServlet.init(ActionServlet.java:329)
     at javax.servlet.GenericServlet.init(GenericServlet.java:211)
     at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1019)
     at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
     at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3991)
     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4335)
     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
     at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:903)
     at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:324)
     at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
     at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
     at org.apache.commons.digester.Rule.end(Rule.java:276)
     at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
     at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76)
     at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
     at org.apache.commons.digester.Digester.parse(Digester.java:1567)
     at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:488)
     at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
     at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:482)
     at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
     at org.apache.catalina.startup.HostConfig.start(HostConfig.java:964)
     at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
     at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
     at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
     at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
     at org.apache.catalina.core.StandardService.start(StandardService.java:476)
     at org.apache.catalina.core.StandardServer.start(StandardServer.java:2298)
     at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:324)
     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)

Similar Messages

  • Setting ViewObject Stored Procedure Where Clause Param from Struts Action

    I adapted/used Steve's example to get stored procedure to populate my ViewObject. However, I could not retrieve any rows after passing whereClause value from Struts action. The param in execureQueryForCollection returns null.
    What could be wrong. Thanks.
    Here's my code.
    ViewObjectImpl:
    package org.adb.sls.model;
    import java.math.BigDecimal;
    import java.sql.CallableStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Timestamp;
    import java.sql.Types;
    import oracle.jbo.JboException;
    import oracle.jbo.domain.Date;
    import oracle.jbo.domain.Number;
    import oracle.jbo.server.DBTransaction;
    import oracle.jbo.server.ViewObjectImpl;
    import oracle.jbo.server.ViewRowImpl;
    import oracle.jbo.server.ViewRowSetImpl;
    import oracle.jdbc.driver.OracleCallableStatement;
    import oracle.jdbc.driver.OracleTypes;
    // --- File generated by Oracle ADF Business Components Design Time.
    // --- Custom code may be added to this class.
    public class ViewApplicableLoanTypesImpl extends ViewObjectImpl
    * PLSQL block that will execute the REF_CURSOR
    private static final String SQL =
    "begin ? := sls_loan_types_pkg.get_applcbl_staff_lns_fn(?); end;";
    * PLSQL block that will count the REF_CURSOR returned rows
    private static final String COUNTSQL =
    "begin ? := sls_loan_types_pkg.get_count_applcbl_staff_lns_fn(?); end;";
    * This is the default constructor (do not remove)
    public ViewApplicableLoanTypesImpl()
    * Overridden framework method.
    * Wipe out all traces of a built-in query for this VO
    protected void create() {
    getViewDef().setQuery(null);
    getViewDef().setSelectClause(null);
    setQuery(null);
    * Overidden framework method
    protected void executeQueryForCollection(Object qc, Object[] params, int noUserParams)
    // input parameter is employee number
    String employeeNumber = null;
    if (params != null) {
    employeeNumber = (String) params[0];
    } else
    System.out.println("param is null");
    storeNewResultSet(qc,retrieveRefCursor(qc,employeeNumber));
    super.executeQueryForCollection(qc, params, noUserParams);
    protected ViewRowImpl createRowFromResultSet(Object qc, ResultSet rs)
    * We ignore the JDBC ResultSet passed by the framework (null anyway) and
    * use the resultset that we've stored in the query-collection-private
    * user data storage
    rs = getResultSet(qc);
    * Create a new row to populate
    ViewRowImpl r = createNewRowForCollection(qc);
    try {
    * Populate new row by attribute slot number for current row in Result Set
    populateAttributeForRow(r,0, nullOrNewNumber(rs.getBigDecimal(1)));
    populateAttributeForRow(r,1, nullOrNewNumber(rs.getBigDecimal(2)));
    populateAttributeForRow(r,2, rs.getString(3));
    populateAttributeForRow(r,3, nullOrNewNumber(rs.getBigDecimal(4)));
    populateAttributeForRow(r,4, rs.getString(5));
    catch (SQLException s) {
    throw new JboException(s);
    return r;
    protected boolean hasNextForCollection(Object qc)
    ResultSet rs = getResultSet(qc);
    boolean nextOne = false;
    try {
    nextOne = rs.next();
    * When were at the end of the result set, mark the query collection
    * as "FetchComplete".
    if (!nextOne) {
    setFetchCompleteForCollection(qc, true);
    * Close the result set, we're done with it
    rs.close();
    catch (SQLException s) {
    throw new JboException(s);
    return nextOne;
    protected void releaseUserDataForCollection(Object qc, Object rs)
    * Ignore the ResultSet passed in since we've created our own.
    * Fetch the ResultSet from the User-Data context instead
    ResultSet userDataRS = getResultSet(qc);
    if (userDataRS != null) {
    try {
    userDataRS.close();
    catch (SQLException s) {
    /* Ignore */
    super.releaseUserDataForCollection(qc, rs);
    public long getQueryHitCount(ViewRowSetImpl viewRowSet)
    Object[] params = viewRowSet.getParameters(true);
    String id = (String)params[0];
    CallableStatement st = null;
    try {
    st = getDBTransaction().createCallableStatement(COUNTSQL,DBTransaction.DEFAULT);
    * Register the first bind parameter as our return value of type CURSOR
    st.registerOutParameter(1,Types.NUMERIC);
    * Set the value of the 2nd bind variable to pass id as argument
    if (id == null) st.setNull(2,Types.VARCHAR);
    else st.setString(2,id);
    st.execute();
    return st.getLong(1);
    catch (SQLException s) {
    throw new JboException(s);
    finally {try {st.close();} catch (SQLException s) {}}
    * Return a JDBC ResultSet representing the REF CURSOR return
    * value from our stored package function.
    private ResultSet retrieveRefCursor(Object qc,String id) {
    CallableStatement st = null;
    try {
    st = getDBTransaction().createCallableStatement(SQL,DBTransaction.DEFAULT);
    * Register the first bind parameter as our return value of type CURSOR
    st.registerOutParameter(1,OracleTypes.CURSOR);
    * Set the value of the 2nd bind variable to pass id as argument
    if (id == null) st.setNull(2,Types.VARCHAR);
    else st.setString(2,id);
    st.execute();
    ResultSet rs = ((OracleCallableStatement)st).getCursor(1);
    * Make this result set use the fetch size from our View Object settings
    rs.setFetchSize(getFetchSize());
    return rs ;
    catch (SQLException s) {
    s.printStackTrace();
    throw new JboException(s);
    finally {try {st.close();} catch (SQLException s) {}}
    * Store a new result set in the query-collection-private user-data context
    private void storeNewResultSet(Object qc, ResultSet rs) {
    ResultSet existingRs = getResultSet(qc);
    // If this query collection is getting reused, close out any previous rowset
    if (existingRs != null) {
    try {existingRs.close();} catch (SQLException s) {}
    setUserDataForCollection(qc,rs);
    hasNextForCollection(qc); // Prime the pump with the first row.
    * Retrieve the result set wrapper from the query-collection user-data
    private ResultSet getResultSet(Object qc) {
    return (ResultSet)getUserDataForCollection(qc);
    * Return either null or a new oracle.jbo.domain.Date
    private static Date nullOrNewDate(Timestamp t) {
    return t != null ? new Date(t) : null;
    * Return either null or a new oracle.jbo.domain.Number
    private static Number nullOrNewNumber(BigDecimal b) {
    try {
    return b != null ? new Number(b) : null;
    catch (SQLException s) { }
    return null;
    Struts Action
    package org.adb.sls.view;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import oracle.jbo.ApplicationModule;
    import oracle.jbo.ViewObject;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import oracle.adf.model.binding.DCDataControl;
    import oracle.adf.model.bc4j.DCJboDataControl;
    import oracle.jbo.html.BC4JContext;
    public class IndexAction extends DefaultADFAction
    protected ActionForward performActionLogic(ActionMapping mapping,
    ActionForm form, HttpServletRequest request,
    HttpServletResponse response)
    throws Exception {
    try {    
    ApplicationModule am = getApplicationModule("SLSApplicableLoanTypesDataControl", request);
    if (am == null)
    System.out.println("am is null");
    ViewObject vo = am.findViewObject("ViewApplicableLoanTypes");
    vo.setWhereClauseParam(0,request.getSession().getAttribute("SSO_EMPLOYEE_NUMBER"));
    vo.executeQuery();
    } catch (Exception e)
    e.printStackTrace();
    return mapping.findForward("success");
    Struts Config
    <form-beans>
    <form-bean name="DataForm" type="oracle.adf.controller.struts.forms.BindingContainerActionForm"/>
    </form-beans>
    <action-mappings>
    <action path="/index" className="oracle.adf.controller.struts.actions.DataActionMapping" type="org.adb.sls.view.IndexAction" name="DataForm" unknown="false">
    <set-property property="modelReference" value="indexUIModel"/>
    <forward name="success" path="/home.do"/>
    </action>
    <action path="/home" className="oracle.adf.controller.struts.actions.DataActionMapping" type="oracle.adf.controller.struts.actions.DataForwardAction" name="DataForm" parameter="/index.uix" unknown="true">
    <set-property property="modelReference" value="indexUIModel"/>
    </action>
    </action-mappings>

    I just found the solution. I've overridden setWhereClause method.
    public void setWhereClauseParams(Object[] values)
    ViewObjectImpl vo = (ViewObjectImpl) super.getViewObject();
    vo.setWhereClauseParam(0,values[0]);
    }

  • Calling DB from Struts

    Hi All,
    I would like to access Database from struts without using EJB, Pl. advice which architecture is best
    Thanks

    Dear dsn29:
    There are basically 2 ways to call databases:
    1. To call using JDBC directly
    2. To call using a database pool connection
    Using the 2nd one you can use:
    a) Struts own connection pool,
    b) the server application server connection pool if it has one,
    c) a connection pool implementation ftrom a 3rd party like jakarta db connection pool.
    Which one is the better one?
    Well depend on how you like to code or deploy. The thing I have noticed is that Jakarta connection pool works very well and it is very independant. The only problem is that you have to define the connection either on tomcat's server.xml or in the META-INF/context.xml.
    Using the connection implementation that comes with the server like Sun App Server 8.1 Q12005, is that you have to install the driver in the domain/lib/ext directory, you have to define the connection correctly at the first time (the server must recognize it to show all the drivers parameters) or you will always get a bad ping. And there are several problems with the Sun's implementation that they haven't answer back. For me the connection pool was been a pain in the neck (just search from lorenzosjb username to see). Just look my last: http://forum.java.sun.com/thread.jspa?threadID=612144&tstart=30
    Finally, Struts own implementation connection pool you have to configure using the config-struts.xml . Goto to www.wrox.com and download the source code for Professional Struts (James Goodwill and Richard HighTower) and you can purchase this excellent book . The db connection pool is on chapter 11.
    You can also go to http://www.objectsource.com/ where you can download a free book called Struts Best Practices that can help you
    And you can www.theserverside.com and download Jakarta Struts Live and Servlets and JavaServer Pages: The J2EE Technology Web Tier for free: http://www.theserverside.com/books/addisonwesley/ServletsJSP/index.tss that can help you more.
    So now I am also investigating, using Struts db implementation and installing the test web application in several java application servers to see if the implementation is really independant.
    You I helped you, and good luck!
    Regards,
    Lorenzo

  • How do you move from struts 1.1 to struts 1.3

    how can I migrate from struts 1.1 to struts 1.3 with out affecting the existing app...

    You sync them all via iTunes on your computer.

  • Helpme I have error when I try connect from struts  to web service

    helpme I have error when I try connect from struts to web service using basic authentication . the error message is
    [SOAP Exception: fault code= SOAP-ENV Protocol; msg=Unsupported response content type "text/html" must be "text/xml"; ] Response was <html><body> 401 Unauthorized </body></html>
    I'm not using ldap for authentication only xml (jazx-data.xml) ... I already create user with jazn.jar for that user , and I dont know why it still error like that ..
    Please helpme I don't have anytime more to find the mistake , ??
    I'm using Jdeveloper 9i , and oc4j 9.0.4 Server (Not embedded with Jdev)
    But when I use with sample java client it success .....
    then I try with Struts the response is unsupported response content type text/html must be text/xml response was 401 Unauthorized

    1.The reason why this error occurs is, we are getting non SOAP response when the program is expecting a SOAP response. Did you set the proxy server correctly? Try to handle the exception and see the content type of the response in your program.
    2. While creating the client stub u must check an option for authentication for webservice .should solve ur problem.
    thanks
    sirisha

  • How to call another action from Struts dispatch action?

    Hi all,
    there is a method in dispatch action that needs data from another chained action. How should other action determine which method in dispatch action will receive response and how should these data be returned from called action? Called action does not have associated form bean
    thanks,

    Not sure, why are there then "chained actions" is struts practice? Struts allows action without form bean to be configured and the action is a class?

  • SAP E-Commerce for mySAP CRM / mySAP ERP from struts to Visual Composer?

    Actually, "Internet Sales" as known by most of the people,   is based on STRUTS (from Apache) that it's not so much common in SAP NetWeaver based solutions.
    Anybody knows if SAP E-Commerce will be released also based on Visual Composer or Web Dynpro?

    closed

  • Moving from Struts to JSF

    Hello,
    We have a struts based application running on OAS and are trying convert our projects to JSF. Using Jdeveloper 10.1.3.1, I have created a JSF JSP and
    would like to call that from a struts based Data Action.
    How do I go about doing this? Do I need to integrate the "Struts-Faces Integration Library". (http://www.oracle.com/technology/pub/articles/masterj2ee/j2ee_wk8.html)
    Thanks!

    Hi,
    since there is no native integration between Struts and JSF, the integration library is needed. Note that the two are so different by design and functionality that I am not sure if this integration could be a recommended approach
    Frank

  • EJB from Struts.

    Hello All,
    I am writing an action class in struts that needs to call a method from stateless session bean. I allready wrote and tested my stateless session bean from Universal Test Client. It's working fine.
    Can anyone please let me know what exectly would be steps for calling that method from Action class. i know steps i.e
    1.Taking Initial context
    2. lookup the bean using JNDI
    3. call method
    Do i need to put some entry in my web.xml file for EJB.
    Please help me out.
    but i need more specific solution. Sample code will be highly appreciated. JNDI name for my bean is ejb/ejbs/com/ibm/TestHome.
    Thanks in advance.
    pn24256
    Message was edited by:
    pn24256

    Yes you are right. You don't need to put any thing in your web.xml. You just need to know your EJB JNDI name.
    1. Get the initial context
    2. Get the EJB Home class
    3. Get the local/ remote inetrface from ur home class
    4. And call you EJB method.
    That's all you need to do.
    Pls find below sample code.
    1. MappingServiceLocalHome mappingServiceHome = (MappingServiceLocalHome) ServiceLocator.lookupLocalHome("MappingServiceLocalHome", MappingServiceLocalHome.class);
    2. MappingServiceLocal service = mappingServiceHome.create();
    3. latLngvo = service.getGeocodedAddress(address, zipCode, city, stateCode, country, countyName);
    The above code is sample, and JNDI look up was done in another class. Essentially first step is to get ur EJB home class through JNDI steps. and then get your local/remote interface from ur home class.
    and final step is to call your method inside your stateless session bean.

  • How to remove sysdeo (devloader) from struts workshop?

    I have a struts workshop project which I had mistakenly click yes to include external jars and load them into the Tomcat 4.1 startup. Is there a way to remove sysdeo (devloader) from the startup?

    Never mind, I was able to figure it out.  After I had removed lines 631-644 the code had changed for some reason.
    CHANGED FROM THIS:
    <script type="text/javascript" class="AccordionPanelClosed">
    //<![CDATA[
    <!--
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    //-->
    //]]>
    </script><br>
    TO THIS:
    <div class="AccordionPanel AccordionPanelClosed">
    //<!--[CDATA[
    <!--
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    //---->
    //]]&gt;
    <br>
    Turns out I was just missing the <script type="text/javascript" class="AccordionPanelClosed"> to match up with the </script> code at the end.  Thanks for your help!

  • Migration problem from Struts 1.2.7 to 1.3.8:java.lang.ClassNotFoundExcepti

    Hi, my current configuration is tomcat 6.0.18 and jdk 1.5. Here are the steps I followed for the migration.
    1. Replaced struts.jar with struts-core-1.3.8.jar
    2. Updated taglib .tld files which were under /WEB-INF and also kept the corresponding struts-taglib-1.3.8.jar files in lib directory.
    3. Kept the external mappings in web.xml for the tld files though.
    4. Updated struts-config.xml with
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
    "http://struts.apache.org/dtds/struts-config_1_3.dtd">
    5. As not using any cancel buttons hence did not use the cancellable attribute.
    6. Updated validation.xml with specified doctype in strutsupgrade docs.
    7. Replaced older jar files with newer versions.
    After compiling the files and deploying in Tomcat I get the following error while trying to run.
    exception
    javax.servlet.ServletException: Wrapper cannot find servlet class jsp.login_jsp or a class it depends on org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    java.lang.Thread.run(Thread.java:595)
    root cause
    java.lang.ClassNotFoundException: jsp.login_jsp
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    java.lang.Thread.run(Thread.java:595)
    What am I missing out on?
    Thankx in advance.

    hanks for the reply.
    All class files are created during build.
    I even deleted all the existing ones in tomcat/work folder.
    So the classes are up to date.
    Any other pointers?
    Furthermore do I need to change the jsp header
    <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
    to
    <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
    and so forth?(I did that, and its compiling but during accessing i get the same error.)
    The java deprecations shows Resources.getLocale as deprecated. Is that a problem,
    and if it is how to replace it?

  • How To save Unicode data from Struts app.

    I using Struts html:text . I am using wXP . it displays the data in unicode font (in Marathi language ) but When i tring to save it , it did't saved in
    unicode rather its in the unkown format ?
    pls anyone solve my problem . i will be very thankful !

    When you enter unicode characters in html it will automatically converted to the unicode numbers (I don't know what name they use to call such case) eg &1234;
    This is not an unknown format, but that's the unicode number of the character.
    Eventhough stored in that format, you still can display the character properly by using <bean:write> tag, but rememebr to set filter='false'

  • Double casting (code example from Struts)

    I saw a line when I was looking at a Struts example:
    String username = ((LogonForm) form).getUsername();This was the first time I saw double casting.
    I couldnt understand what was happening here.
    I think the programmer wrote it this way to compact the code,
    but if u were to write it in long form, I wasn't sure what it would look like.

    izzy75 wrote:
    This was the first time I saw double casting.
    I couldnt understand what was happening here.It's not "double casting". The programmer is doing only one cast: casting form to a LogonForm, and then using a set of outer parenthesis to then call a LogonForm method. If he just did this:
    (LogonForm)form.getUsername()the compiler would think that he was calling a form method. The outer parenthesis tell the compiler that getUsername is in fact a LogonForm method.

  • Accessing non-Java components from Struts

    I want to access a PHP forum package through my Struts classes.
    Can someone pls help?

    I want to access a PHP forum package through my Struts classes.Do you know how to use a Search Engine ?
    http://php-java-bridge.sourceforge.net/
    andi

  • Migrating an application from Struts to EJB

    Hi folks, Prsently I have an application which is following the Struts architecture.Now I have to migrate it to EJB.What all are the major chnages I have to incorporate?? Any usefull links other than the Sun J2EE Blueprints??
    Thanx Pradeep

    Hi folks, Prsently I have an application which is
    following the Struts architecture.Now I have to
    migrate it to EJB.What all are the major chnages I
    have to incorporate?? Any usefull links other than the
    Sun J2EE Blueprints??That's something I'm starting to wonder about. All you should have to do is call the EJBs in your Action class - theoretically.
    I'm wondering more about the deploytool. I've given it a quick try, but am unsure as to how I should set up a Struts webapp.
    On top of that, I'm trying to get the J2EE server to run as a WinNT service using JSL. That's got it's own problems.

Maybe you are looking for

  • How to show multiple dynamic tables on a single screen?

    right now im displaying alv for singlr attribute of dimension. eg for dimension PRODUCT attribute PROFITCENTER im displaying in alv when user executes it. but the requirement is that multiple attributes can be there so multiple tables is to be displa

  • IMac 27" DisplayPort Output Ceased after Boot Camp

    I recently installed Windows 7 x64 via Boot Camp, which seemed to run smoothly... but the display drivers were not detecting the Radeon HD Mobility 5750, and forcing a resolution of 1920x1440 or something to that effect, something 4:3 anyway. Looking

  • E63 equalizer not working in 400.21.013 software v...

    My e63 had software version number 100.xx.xx when I first bought it and the music equalizer worked well then I updared it to version 200.xx.xx and the equalizer stopped working in headphones.then when the version 400.21.013 was out I thought the equa

  • How to find the largest files?

    My question is how to find the big(lets say over 500Mb) files under the root and list them. This is my desktop and when I tried "du / | sort -k 1n " it didnt finish. Best regards, Tonguc

  • Please help - JVM

    I need help please! When I open pages with a java applet the Install on Demand prompt comes ("You need to install Java Virtual Machine"). If I press Download the Microsoft site comes ("No Java installed"), but then the applet loads perfectly well!! I