Instantiate a Class through a constructor argument of another class.

public function LevelManager(owner:Home)
                              _owner = owner;
In my LevelManager Class I have the above code in the constructor. Home is another Class which is not instantiated anywhere with the new keyword. It is merely a parameter in the constructor and then passed into the body and assigned to a local variable. I didn't know you could instantiate a class through a function parameter. Is that right???
Cheers in advance.

Well, I know Amy is big on design patterns and she is going to slap me but I am the guy who is not a big fun of DPs in regular Flash applications. I have many reasons to dislike them.
I am not against DPs in principal. In collaborative environments (big teams) or in situations when software is developed for industrial consumption or as partially closed frameworks - it makes sense. Otherwise - they are just possible solutions and reference point at best. In Flash they frequently are major silly overkills. They are more of academic than practical value contrary to what people tend to believe.
Design patterns are possible solutions that developers came up with heuristically base on the problems they needed to solve - not vice versa. Problems do not dictate design patterns.
There is a strong tendency among DPs proponents and followers to make DPs self-fulfilling prophecies. Instead of conceptualizing of particular application needs developers often are searching for DP first and then try to squeeze logic into a particular or a group of several design patterns.
If a person is taught that DPs is the only way to go - there is a great danger of killing creativity and the thought process.
I strongly believe that what makes a star programmer is the ability to conceptualize the project, model it well and only then find coding solutions based on language capacities. And to question any suggestions in favor of current task efficiencies.
By the same token, if your painting doesn't need color red - why use it? This is another thing that happens often - developers implement something that is actually not needed.
Code is cheap! When project is well conceived and modeled - coding takes very little time. One ends up with his/her own "design pattern" that may or may not fall into one of DPs that is articulated already.
Also, there is a great deal of activism around DPs that, as with any activism, forms an ideology that is full of misleading simplifications.
First one is that OOP is equated to DPs usage. This is totally dangerously  untrue!!!
Another one is you mentioned. Spaghetti coding is not the only alternative to design patterns. In other words, if one doesn't use DP - it absolutely doesn't mean person is engaged in spaghetti coding. And vice versa - DP does not shield program from spaghetti coding. I have seen DP warriors going crazy with spaghetti coding although DP was implemented to the tee.
Another example of misconception is that DP proponents always carry banners of decoupling and modularization. Be very skeptical when someone gives you this shpeal. Modularization is easy to conceal for "propaganda" purposes and it is comfortable not to think about when DPs are used (especially MVC concept). Since this is just a concept - there are no real checks and balances.
Decoupling, on the other hand, is not that easy to shove down someone's throat. Decoupling can be actually calculated - this is where a lot of idealistic beliefs that someone's code is well decoupled because of the DP fails miserably. Not because of DP itself but because of implementation. Well, sometimes pattern too.
See, there is no black and white again.
My point is that DPs do not protect anyone from any kind of challenges or mistakes as they don't make a better programmer. They can make one a disciplined follower but not a real creator (not that everyone must be the Creator).
If not used properly DPs may be a ground for crappy inefficient un-scalable application as much as any other approach.
And the last thing. I said that DPs are special suspects in Flash. This is because ActionScript and Flash are already limited frameworks that force us into thinking in MVC terms. This is just a nature of the beast. To attempt to warp it up into another MVC framework looks like a self-indulgent irrelevant academic activity to me.
And I did not even mentioned practicalities of the target environments we develop our applications for.

Similar Messages

  • Need to instantiate a class with the contents of a string variable

    I have:
    String temp = "hello";
    and I want to instantiate a class with the contents of the variable temp. So what I want is:
    Class hello = new Class();
    Does anybody know how to do this?

    I'm getting kind of confused with decifering what
    people are writing. I'm not real sure what the Java
    syntax is and what I should be modifying for my code.
    Basically, I have created a class called Artist. I
    want to parse through a text file and when I see a
    header field called "artist", my program will
    instantiate the artist class with the next String
    token. For example, if my text file reads:
    --artist:Daniel
    I want to create an Artist object with the name
    Daniel. Ideally I could just use the code:
    --Artist Daniel = new Artist();I cannot use this syntax because I don't know that "Daniel" is going to follow "artist" in the text file. It could be a different name or String
    >
    But the way I'm going about it right now is to store
    "Daniel" in a variable called temp by:
    --//"in" is an instantiation of StreamTokenizer
    --String temp = in.sval;    
    Right now I have the Artist class set up so there is
    just a default constructor.

  • LocalSessionFactoryBean - Could not instantiate bean class

    Hello,
    I am facing a problem with the instantiation of the LocaSessionFactoryBean in a sample Spring 3.0.4 - Hibernate 3.2.6, WebLogic 10.3.3 and Oracle 10g. I am run an web application using JDeveloper 11.1.1.3.0 with the integrated WebLogic Server 11gR1. Trying to make the existing web application that is currently running on Oracle Web Server to run on WebLogic.
    I have gone through other LocalSessionFactoryBean related postings but could not find any solutions for my problem.
    Here's the server.log during web application deployment and startup -
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'pocDaoTarget' defined in class path resource [spring-chbs.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory' defined in ServletContext resource [WEB-INF/xml/spring/spring-j2eeservices.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.orm.hibernate3.LocalSessionFac toryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:275)
    Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory' defined in ServletContext resource [WEB-INF/xml/spring/spring-j2eeservices.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.orm.hibernate3.LocalSessionFac toryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.instantiateBean(Abstrac tAutowireCapableBeanFactory.j
    Caused by: org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.orm.hibernate3.LocalSessionFac toryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError
    at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:115)
    Caused by: java.lang.NoClassDefFoundError
    at org.springframework.orm.hibernate3.LocalSessionFac toryBean.class$(LocalSessionFactoryBean.java:174)
    (Note : I have verified that org.springframework.orm.hibernate3.LocalSessionFactoryBean.class exists in org.springframework.orm-3.0.4.RELEASE.jar)
    Caused by: java.lang.ClassNotFoundException: org.hibernate.cfg.Configuration
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 202)
    (Note : I have verified that org.hibrnate.cfg.Configuration.class exists in hibernate-3.2.6.ga.jar)
    spring-chbs.xml:
    Code:
    <bean id="pocDaoTarget"
    class="myproj.component.chbs.dao.PocDaoImpl">
    <property name="sessionFactory">
    <ref bean="sessionFactory"/>
    </property>
    </bean>
    spring-j2eeservices.xml :
    Code:
    <!-- JNDI DataSource for J2EE environments -->
    <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
    <property name="jndiName" value="java:comp/env/jdbc/J2EEDS"/>
    </bean>
    <bean id="sessionFactory"
    class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
    <property name="dataSource">
    <ref bean="dataSource"/>
    </property>
    <property name="mappingJarLocations">
    <list>
    <value>WEB-INF/lib/hibernate-config.jar</value>
    <!--value>classpath:hibernate-config.jar</value-->
    </list>
    </property>
    <property name="hibernateProperties">
    <props>
    <prop key="session_factory_name">HibernateSessionFactory</prop>
    <prop key="jndi.class">weblogic.jndi.WLInitialContextFactory</prop>
    <prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
    <prop key="hibernate.show_sql">true</prop>
    </props>
    </property>
    </bean>
    Any help would be greatly appreciated.
    Thanks

    Hi Raphael,
    Thanks for your response.
    The last part of the console log output during run –
    Error creating bean with name 'pocDaoTarget' defined in class path resource [spring-chbs.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [WEB-INF/xml/spring/spring-j2eeservices.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError
    Servlet Path: C:\Documents and Settings\tariq.ahsan\Application Data\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\AppServerConversion\MaWebWebApp.warBegin Initialize Spring ApplicationContext for MA
    End Initialize Spring ApplicationContext for MA
    Servlet Path: C:\Documents and Settings\tariq.ahsan\Application Data\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\AppServerConversion\PaWebWebApp.warBegin Initialize Spring ApplicationContext for PA
    End Initialize Spring ApplicationContext for PA
    [10:35:57 AM] Application Redeployed Successfully.
    [10:35:57 AM] The following URL context root(s) were defined and can be used as a starting point to test your application:
    [10:35:57 AM] http://192.168.11.207:7101/MaWeb
    [10:35:57 AM] http://192.168.11.207:7101/paweb
    [10:35:57 AM] http://192.168.11.207:7101/CFMSWeb
    [10:35:57 AM] Elapsed time for deployment: 28 seconds
    [10:35:57 AM] ---- Deployment finished. ----
    Run startup time: 28203 ms.
    [Application AppServerConversion deployed to Server Instance IntegratedWebLogicServer]
    Target URL -- http://127.0.0.1:7101/CFMSWeb/login.jsp
    Is one of the above folder - C:\Documents and Settings\tariq.ahsan\Application Data\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\AppServerConversion\MaWebWebApp.war (MaWebWebApp.war is a folder) part of the IntegratedWebLogicServer deployment? Do you mean the spring and possibly the hibernate jars need to be in the WEB-INF/lib under the above folder path?
    Thanks

  • BeanInstantiationException: Could not instantiate bean class

    Hi,
    I am working on a small part of j2ee app and creating a couple beans. Now I get stuck here:
    This is my bean class:
    public class KomplexniPseudoOsoba extends POsoby{
         public KomplexniPseudoOsoba() {
              super();
         public class KomplexniOsoba extends PAdresy{
              public KomplexniOsoba() {
                   super();
    I want the inner KomplexniOsoba class to be my bean. Now when i add it to webmvc-config.xml (using springframework) like this:
    <bean id="KomplexniOsoba" name="KomplexniOsoba"
         class="cz.edu.mub.pef.ja.xkosteln.model.KomplexniPseudoOsoba$KomplexniOsoba">
    </bean>
    I get
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'KomplexniOsoba' defined in ServletContext resource [WEB-INF/spring/webmvc-config.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [cz.edu.mub.pef.ja.xkosteln.model.KomplexniPseudoOsoba$KomplexniOsoba]: No default constructor found; nested exception is java.lang.NoSuchMethodException: cz.edu.mub.pef.ja.xkosteln.model.KomplexniPseudoOsoba$KomplexniOsoba.<init>()
    What am I doing wrong the constructor is there!

    koszta5 wrote:
    Thanks man :D Such a trivial mistake....
    and BTW I absolutely love Oracle forums... some people were sad when Oracle bought Sun but I HAVE TO say that the support went WAY UP. I love the speed with which people reply here. ... It is incredible compared to e.g. Spring forums...I don't know anything about the spring forums, but most of the people who respond in the oracle java forums are the same people who responded in the sun java forums (and in a similar fashion).
    Thank you :)no problem.

  • How to instantiate a .class from a JSP?

    Hi,
    probably it's a simple problem, byt I'm new in JSP and I couldn't work it out.
    I'm converting a SSJS Netscape Application to JSP. My needing is to write a Java .class containing only static methods, to call them from the JSP pages.
    For trying, I wrote a simple class that I call from a JSP page, but I get this error:
    Error: 500
    Location: /JSP24H/cap01/Simple2.jsp
    Internal Servlet Error:
    org.apache.jasper.JasperException: Unable to compile class for
    JSPC:\tomcat\work\localhost_8080%2FJSP24H\_0002fcap_00030_00031_0002fSimple_00032_0002ejspSimple2_jsp_0.java:80:
    Incompatible type for =. Can't convert void to java.lang.String.
    v = GenFunction.messaggio();
    ^
    This is the JSP instantiating the Java class:
    <HTML>
    <HEAD><TITLE>A Simple JSP</TITLE></HEAD>
    <BODY>
    <FONT COLOR="blue" FACE="Trebuchet">
    <CENTER>
    <%@ page import = "GenFunction" %>
    <% out.println("My name is Charly !" + "<br>"); %>
    <%
    String v = " ";
    v = GenFunction.messaggio();
    out.println( v );
    %>
    </CENTER>
    </FONT>
    </BODY>
    </HTML>
    And this is the class instantiated from JSP:
    public class GenFunction {
    public static void main (String args[]) {
    public static String messaggio() {
    String a;
    a = " Hello world !";
    return a;
    In order to be sure about what I'm doing, I opened a DOS window and I called the class within the following:
    public class call_Class {
    public static void main (String args[])
    String v;
    GenFunction x = new GenFunction();
    v = x.messaggio();
    System.out.println(v);
    When I instantiate the class from DOS it's all right, why not from JSP. It seems to be returning a void value (I tried with casting too but without success).
    Thanks !

    Do you have multiple versions of classes in the server CLASSPATH somehwhere? If you have changed the class, and not bounced the server, try bouncing the server(may be using cached class)
    -Mak

  • Mystery Exception: Failed to load or instantiate TagLibraryValidator class

    I am having trouble with getting a class to load when I access a JSP which uses JSTL:
    org.apache.jasper.JasperException: /hello.jsp(1,1) Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:86)
         org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:339)
         org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:372)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:475)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)There is org/apache/taglibs/standard/tlv/JstlCoreTLV.class in webapps/foobar/WEB-INF/lib/standard.jar. I'm using Tomcat 5.5.4 and Spring 1.1.2.
    Any ideas as to how I can get around this, or what might be causing the problem ?
    --James                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I'm using NetBeans and getting same message. Application i'm running on jrun, which not complains about that, but it seems it similary ignores that code.
    <c:choose>
      <c:when test="${!empty param.branchEdit || !empty param.branchCreate}">
              <%@ include file="/inc/union/editBranch.inc.jsp"%>
      </c:when>
      <c:otherwise>
              <%@ include file="/inc/union/viewBranchList.inc.jsp"%>
      </c:otherwise>
    </c:choose>After i changed to :
    <%
         if(request.getParameter("branchEdit")!=null || request.getParameter("branchCreate")!=null)
         %>
         <%@ include file="/inc/union/editBranch.inc.jsp"%>
         <%
         else
    %>
         <%@ include file="/inc/union/viewBranchList.inc.jsp"%>
    <%}%>all works ok.

  • Failed to load or instantiate TagExtraInfo class

    Hi there
    If I deploy a taglib (which contains TEI-classes) to Tomcat 5.0.25 I get the following error:
    org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: ch.gsa.prodass3.taglib.TagAddAttributeTEI
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:378)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:283)
         org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:422)
         org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)
         org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:162)
         org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    root cause
    java.lang.ClassNotFoundException: ch.gsa.prodass3.taglib.TagAddAttributeTEI
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
         org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:419)
         org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)
         org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:162)
         org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.25 logs.
    I've got no idea how the problem can be resolved..!
    Help, would be very appreceated!
    The jar-file with the tag-classes and the tei-classes is located in /WEB-INF/lib/
    The class TagAddAttributeTEI.class is included in the jar-file.
    The beginning of the tld-file looks like this:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>db</short-name>
    <uri>taglib.tld</uri>
    <description>Datenbankzugriff</description>
    <tag>
    <name>addattribute</name>
    <tag-class>ch.gsa.prodass3.taglib.TagAddAttribute</tag-class>
    <tei-class>ch.gsa.prodass3.taglib.TagAddAttributeTEI</tei-class>
    <body-content>jsp</body-content>
    <display-name>addattribute</display-name>
    <description>A short description...</description>
    <attribute>
    <name>useexisting</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>procedurename</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>itemid</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>attribute</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>sprachid</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>type</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>message</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>status</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <example>Brief snippet showing how to use this tag.</example>
    </tag>

    Has anybody an idea about this issue?

  • Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib

    Hi,
    I am using tomcat 4.1.x and jdk1.4. After updating the tomcat to 5.5.17 my application gives the following error:
    org.apache.jasper.JasperException: /jsp/index.jsp(150,20) Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib.html.MessagesTei
    Is it because jdk1.4 is not compatible with tomcat 5.5.17? can i fix this problem by just pasting some jar files in my WEF-INF/lib directory?
    If yes, could you let me know what those jar files are.
    Can anyone please suggest me if there is some other approach?

    Just remove jsp-api.jar from your classpath.

  • [svn:osmf:] 14023: Updating OSMFPlayer to the changed layout APIs, adding a comment, and fixing MediaContainer from ignoring its constructor argument.

    Revision: 14023
    Revision: 14023
    Author:   [email protected]
    Date:     2010-02-07 07:54:38 -0800 (Sun, 07 Feb 2010)
    Log Message:
    Updating OSMFPlayer to the changed layout APIs, adding a comment, and fixing MediaContainer from ignoring its constructor argument.
    Modified Paths:
        osmf/trunk/apps/samples/framework/OSMFPlayer/src/OSMFPlayer.as
        osmf/trunk/framework/OSMF/org/osmf/containers/MediaContainer.as
        osmf/trunk/framework/OSMF/org/osmf/layout/LayoutTargetSprite.as

  • What time will IOS 5 be available in Belgium? Also, can I only get it through ITunes or is there another way? Thanks

    What time will IOS 5 be available in Belgium? Also can I get it only through ITunes or is there another way? Thanks

    The rules are straight forward ...
    Your credit or debit card credentials must be associated with the same country where you reside.
    "Although you can browse the iTunes Store in any country without being signed in, you can only purchase content from the iTunes Store for your own country. This is enforced via the billing address associated with your credit card or other payment method that you use with the iTunes Store, rather than your actual geographic location."
    From here >  The Complete Guide to Using the iTunes Store | iLounge Article

  • Drill through from one query to another query

    Hi experts,
    Anybody knows how to do drill through from one query to another query?
    Any feedback will be really apreciated.
    Thanks.

    The setting can be done in transaction RSBBS.
    You only need to specify the sender and receiver query..
    Ashish..

  • I have a string and I want to instantiate a class from that string

    Suppose i have a string variable
    String s = new String("JMenu");
    how can i instantiate a JMenu object using s
    thanx

    // get the name of the class
    String ClassName = "JMenu";
    // get the corresponding Class
    Class theclass = Class.forName(ClassName);
    // get the constructor with specific argument types
    Constructor theconstructor = theclass.getConstructor(Class[] paramTypes);
    // get the object with specific obect arguments
    Object theObject = theconstructor.newInstance(Object[] initargs);-Avinash

  • Instantiate JarFile class under java web start.

    I'm really hoping someone has an answer to this. I've searched a lot and have come up empty handed.
    What I'm wondering is if it is possible to find out the path to the Jar file of the application so I can instantiate a JarFile object to loop through it's entries.
    String jarFileName = ????;
    JarFile jf = new JarFile(jarFileName);The reason is I need to fill a combobox with soundclips contained in the applications jar file and I don't want to hardcode each entry.

    Hi,
    I guess the jar is loaded from your classpath. Try to get the jar file path from the class path entry.
    System.out.println(System.getProperty("java.class.path"));Thanks

  • Visible Frame minimizes when I instantiate print class

    On a JTabbedPane I have radiobuttons that popup reports in JTable format. Each report has a menu with print option which instantiates a print utility class. This action causes the frame with the JTabbedPane to minimize. How can I prevent this? Should I execute the print utility in a new thread?

    Check your print utility class, it might contain some code that calls setState(..) or setExtendedState(..) on your frame with the Frame.MINIMIZED argument
    ICE

  • IllegalAccessError trying to instantiate public class from JSP page

    I have a public class called UrlHolderClient located in both
    WEB-INF/classes/UrlHolderClient.class and
    WEB-INF/lib/urlholder.jar.
    This client class is used as a wrapper class around a simple ejb which holds urls. I have a JSP which tries to create an instance of UrlHolderClient in jspInit(), but the call to the constructor throws a java.lang.IllegalAccessError. I have no idea what the problem is here. I import the classes using the page directive.
    Any suggestions?

    Is this tomcat you are deploying on or some other App Server?
    Also, you reference JspInit(), have you tried instanting in
    Scriplet Code <% UrlHolderClient urlHolderClient = new UrlHolderClient() %>
    Does that not work either?

Maybe you are looking for