Jakarta Struts in Weblogic?

Hi All,
          I am trying to get Struts up and running inside of a version 5.1 weblogic
          container. It seems that I am close, because some of the tags work (like
          the link tag). However, any tag that depends on the presence of a resource
          bundle (such as the message tag) fails with the following stack trace:
          Wed Nov 29 10:54:07 PST 2000:<E> <ServletContext-struts-example> Servlet
          failed
          with Exception
          javax.servlet.ServletException: runtime failure in custom tag 'message'
          at jsp_servlet._index._jspService(_index.java:89)
          at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
          at
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
          :105)
          at
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
          :123)
          at
          weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
          l.java:742)
          at
          weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
          l.java:686)
          at
          weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
          Manager.java:247)
          at
          weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
          at
          weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
          at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
          Code)
          Wed Nov 29 10:54:08 PST 2000:<E> <ServletContext-struts-example> root cause
          of ServletException
          java.lang.NullPointerException:
          at
          weblogic.servlet.jsp.PageContextImpl.getAttribute(PageContextImpl.java:156)
          at
          org.apache.struts.taglib.MessageTag.doStartTag(MessageTag.java:358)
          at jsp_servlet._index._jspService(_index.java:81)
          at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
          at
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
          :105)
          at
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
          :123)
          at
          weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
          l.java:742)
          at
          weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
          l.java:686)
          at
          weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
          Manager.java:247)
          at
          weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
          at
          weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
          at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
          Code)
          I looked at the source code for MessageTag.java and it fails at the point
          where it is trying to get a "bundle" object (instance of MessageResources)
          out of the PageContext application scope.
          // Acquire the resources object containing our messages
          MessageResources resources = (MessageResources)
          pageContext.getAttribute(bundle, PageContext.APPLICATION_SCOPE);
          If I'm not mistaken, the MessageResources object should contain name/value
          pairs from ApplicationResources.properties. I have that file in its default
          location
          (/WEB-INF/classes/org/apache/struts/example/ApplicationResources.properties)
          . I have not seen any FileNotFoundException's so I think it is finding it
          OK. However, the MessageResources object is either not getting created, or
          is not making it into the application scope. Is there something I need to
          configure in weblogic.properties to insure that the application is
          initializing properly?
          By the way, this is the "struts-example" application that came with the
          struts binary distribution. It works fine under my tomcat installation but
          we use weblogic in production.
          Any suggestions would be helpful.
          Thanks,
          Jeff
          

          So this gets the example working but how do i begin to use it in my application?
          I created a simple web application. - copy index.jsp from example
          Modifed it.
          Created a simple web.xml
          Now when i try to run it i get
          Thu Dec 14 15:25:06 GMT 2000:<E> <WebAppServletContext-mkb> Root cause of Servle
          tException
          javax.servlet.ServletException: runtime failure in custom tag 'message'
          at jsp_servlet._index._jspService(_index.java:133)
          at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
          pl.java:123)
          at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
          textImpl.java:761)
          at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
          textImpl.java:708)
          at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
          ContextManager.java:252)
          at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
          a:346)
          at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
          at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
          which seams to be back where i started - unless I'm expected to use the public-html for keeping my site?
          Any help please.
          P.S. does WL6.0 have this problem with struts!
          "Gregory Bush" <[email protected]> wrote:
          >
          >Like everyone else, I had a hell of a time getting the Struts framework to work in Weblogic, but I'm committed to using it and I'm stuck with the Weblogic servlet engine (for now), so I kept with it until I got the demo app working nicely.
          >
          >Don't even bother attempting this unless you are familiar with Weblogic configuration.
          >
          >Here's how it can be done:
          >
          >1) Re-install Weblogic 5.1 in a clean directory and enable JSP support by uncommenting the JSP-related tags in the weblogic.properties file, and change the weblogic.system.listenPort to 80.
          >
          >2) Install service pack 6. Early versions of Weblogic 5.1 are packed with Servlet bugs, and you will get nowhere with them.
          >
          >3) Empty the public_html and serverclasses directories. You might as well clean out clientclasses and servletclasses and any straggling files in myserver while you are at it.
          >
          >4) Un-jar the struts-example.war file into a temporary directory. Weblogic claims to fully support Servlet 2.2 and .war files, etc., but as anyone who has actually tried to use them has found out, that support is so spotty one wonders how they ever get J2EE certification in the first place. WE WILL DEPLOY USING THE weblogic.properties FILE, NOT A web.xml FILE!
          >
          >5) Take the JSPs from the exploded .war file and copy them to your public_html directory.
          >
          >6) Create a WEB-INF directory under your public_html directory and copy action.xml, database.xml and *.tld from the example application's WEB-INF directory into it. DON'T COPY web.xml OR THE DIRECTORIES.
          >
          >7) Copy the org folder from the sample application's WEB-INF/classes directory into your serverclasses directory.
          >
          >8) Un-jar the example app's WEB-INF/lib/struts.jar file into your serverclasses directory and delete the META-INF directory it creates.
          >
          >9) From your Tomcat installation's lib directory, get jaxp.jar and parser.jar and un-jar them into your serverclasses directory, deleting the META-INF directories. If you haven't installed Tomcat, you can get these JARs from Sun.
          >
          >10) Add the following lines to your weblogic.properties file (up to the ****):
          >
          ># Register the DatabaseServlet
          >weblogic.httpd.register.db=org.apache.struts.example.DatabaseServlet
          >weblogic.httpd.initArgs.db=\
          > debug=2
          >
          ># Register our Struts ActionServlet
          >weblogic.httpd.register.*.do=org.apache.struts.action.ActionServlet
          >weblogic.httpd.initArgs.*.do=\
          > application=org.apache.struts.example.ApplicationResources,\
          > config=/WEB-INF/action.xml,\
          > debug=2,\
          > detail=2
          >
          ># Start these servlets when the app server starts
          >weblogic.system.startupClass.StartDatabaseServlet=\
          >     weblogic.servlet.utils.ServletStartup
          >weblogic.system.startupArgs.StartDatabaseServlet=\
          >     servlet=db
          >
          >weblogic.system.startupClass.StartActionServlet=\
          >     weblogic.servlet.utils.ServletStartup
          >weblogic.system.startupArgs.StartActionServlet=\
          >     servlet=*.do
          >
          >****
          >
          >You should now be able to start Weblogic, connect to http://localhost, see the main page and explore the sample application.
          >
          >Note that the database servlet is now exposed to the world as /db, so I wouldn't use that kind of connection pool access in a real application.
          >
          >Also, you wouldn't have to un-jar the library files if you put them on your Weblogic classpath, but that can be painful.
          >
          >Now that you have a clean demo app running, you can integrate your existing application back into the clean installation. It's much easier doing it this way than trying it the other direction.
          >
          

Similar Messages

  • Re: Running Struts on weblogic - more info

    Below is a response that was snipped from the struts-user mail list. Yet
              another case of BEA dis-information! When will you guys finally admit that you
              don't totally support the JSP1.1/Servlet2.2 specification. SOS. (Same old
              S..t)
              The responses below are from Craig McClanahan who is one of the guys in involved
              in struts. I believe he is responsible for the effort, but don't quote me on
              that!
              WebLogic wrote:
              > You should be able to get past this point with service pack 5. One of the
              > problems with struts is that some of
              > the pages take advantage of non-standard behaviour in Tomcat, however. For
              > example, in the bean-cookie.jsp
              > test they attempt to set a property on a bean that was never useBeaned.
              > Section 2.13.2, JSP 1.1 spec:
              >
              ---------------------------- Begin Quote
              The "bean-cookie.jsp" actually uses <jsp:getProperty>, not <jsp:setProperty>.
              In this particular case the relevant spec language is Section 2.13.3:
              "An <jsp:getProperty> action places the value of a Bean instance
              property, converted to a String, into the implicit out object, from
              which you can display the value as output. The Bean instance
              must be defined as indicated in the name attribute before this point
              in the page (usually via a useBean action).
              Note the word "usually" -- the reason it is here is because custom tags can be
              defining elements as well, as long as they use the corresponding TagExtraInfo
              class and, in the tag, call pageContext.setAttribute() appropriately. In this
              page, the call
              <bean:cookie id="sess" name="JSESSIONID"/>
              is the defining element that looks up the cookie named "JSESSIONID" (more on
              that
              name below) and exposes it as a JSP bean. This tag precedes the use of the bean
              in statements like this:
              <jsp:getProperty name="sess" property="domain"/>
              which looks up the "domain" property of the cookie (i.e. it calls getDomain())
              and
              writes that to the output stream.
              Thus, this page conforms to the JSP 1.1 spec requirements.
              ---------------------------- End Quote
              >
              > The name of a Bean instance defined by a <jsp:useBean> element or some other
              > element. The Bean instance must contain the property you want to set. The
              > defining element (in JSP 1.1 only a <jsp:useBean> element) must appear
              > before the <jsp:setProperty> element in the same file.
              >
              ---------------------------- Begin Quote
              Note the phrase "or some other element" -- again, custom beans can be defining
              elements, so this page would be valid even if it had been using
              <jsp:setProperty>
              instead. It is interesting to note that the corresponding paragraph in the JSP
              1.2 draft specification (Section 4.2.2.1, p. 63) has been clarified to indicate
              this:
              "The name of a Bean instance defined by a <jsp:useBean>
              or some other element. The Bean instance must contain the
              property you want to set. The defining element must appear
              before the <jsp:setProperty> element in the same file.
              so the confusing parenthetical comment about <jsp:useBean> has been removed.
              Even
              if it's a little inconsistent in 1.1, the intent is clear -- custom tags can be
              defining elements for JSP-accessible beans. That is the whole point of the
              TagExtraInfo functionality.
              ---------------------------- End Quote
              > They also hard-code the Tomcat session identifier into the tests. If you
              > want them to work either change the weblogic cookie name to JSESSIONID or
              > change the references to JSESSIONID to WebLogicSession.
              >
              ---------------------------- Begin Quote
              Servlet API Specification, Version 2.2, Section 7.1.2, p. 35:
              "Session tracking through HTTP cookies is the most used
              session tracking mechanism and is required to be supported
              by all servlet containers. The container sends a cookie to the
              client. The client will then return the cookie on each subsequent
              request to the server unambiguously associating the request
              with a session. The name of the session tracking cookie must
              be JSESSIONID.
              Prior to 2.2, the servlet container could use whatever cookie name it wanted.
              However, for 2.2 onwards, the cookie name is fixed for all containers.
              There may well be spec compliance issues with Struts that need to be fixed (such
              as the current question over whether body content can be accessed in the
              doEndTag() method of a custom tag). However, on these two issues, Struts
              complies
              with the specification.
              ---------------------------- End Quote
              Sam, it interesting that OTHER application servers can support struts. It's
              probably just a case that you don't handle the specification very well. Is this
              also why your server has not passed the J2EE compatibility tests? Oh, I'm sure
              that you guys will complain about SUN and licensing. I understand your
              complaints and I agree, but that doesn't have to do with specification
              compliance! ;^)
              BTW, everyone, there is a serious ClassCastException that should be fixed in
              service pack 6. This particular exception illustrates that BEA Weblogic 5.1 sp5
              does not support web applications properly. I created an web application under
              Tomcat3.1 and moved it to Weblogic5.1sp5. I was receiving ClassCastExceptions
              when I was trying to access an object that was passed in my JSP request and
              display it on a JSP page. I'm grateful that one of the support people finally
              fixed the problem. However, this was only a temporary patch. I'm told the
              "official patch" will be included with sp6.
              Let's hope that some day BEA Weblogic will be compliant. BTW, why is it you are
              charging so much. Oh it must be for the great support! ;-)
              If you BEA Weblogic users would like some addition links to application servers
              that support JSP1.1/Servlet2.2 specification better than Weblogic, here are two.
              http://www.orionserver.com (This is actually a full J2EE class application
              server. It has not passed the compatibility test, but they do a hell of a
              better job than BEA Weblogic. BTW, it's much cheaper too.)
              http://www.caucho.com/ (This is an open source effort. They are only in beta
              with EJB support and they are using Servlets and XML to implement the EJB
              specification. There is a charge for commercial use. Many people are using
              this engine to do the JSP/Servlets and Weblogic to do EJBs. Wonder what will
              happen when they provide EJB support?)
              You know I thought this news group was to help solve problems with Weblogic. It
              has turned into a newsgroup that tries to hide problems and respond with
              dis-information. However, this is just my opinion, just as Sam expressed his
              opinion about struts. That's assuming Sam's email was an opinion, I just
              figured it was since he did not know the JSP1.1/Servlet2.2 specification. Sorry
              if I was wrong.
              Steve
              > Sam
              >
              > "kevinx" <[email protected]> wrote in message
              > news:[email protected]...
              > > "kevinx" <[email protected]> wrote:
              > > >
              > > >I'm trying to get the Struts examples from Apache Group
              > (http://jakarta.apache.org/struts) to run on Weblogic server but getting no
              > where. The examples run perfectly on Tomcat 3.1.
              > > >
              > > >Has anyone successfully ported struts on Weblogic? Any hint is
              > appreciated.
              > > >
              > > >Thanks
              > > >Kevin
              > >
              Steven D. Wilkinson, [email protected]
              President, Elkhorn Creek Software, Inc.
              Co-author: Professional JSP, Wrox Press Inc.; ISBN: 1861003625
              Silent author: Developing Java Servlets, Sams; ISBN: 0672316005
              

    Has anyone had any luck getting struts to run with later service packs? I've got SP6 installed and now get the following when trying to run the struts-example app:javax.servlet.jsp.JspException: Missing resources attribute org.apache.struts.action.MESSAGE at org.apache.struts.taglib.MessageTag.doStartTag(MessageTag.java:360)
              

  • How to find out version of Jakarta-ORO in Weblogic.jar

    Our environment is Weblogic 6.1 SP3 on Win2k professional with JDK 1.3.1_03 (build
    1.3.1_03-b03). We use Protomatter Syslog in our application and it uses Jakarta
    ORO classes for regexp parsing. Since Weblogic jar already has the classes we
    do not have a separate jar for ORO in our classpath.
    We have seen ArrayIndexOutOfBounds exceptions in ORO code and the bug is listed
    as solved in version 2.0.7 & later versions. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17707
    I appreciate someone letting me know how to find the version of ORO in Weblogic
    6.1 SP3. I could try placing the Jakarta jar before Weblogic jar on my classpath,
    but I would like to figure out the problem instead of trial and error.
    Thanks,
    Nitin
    [ArrayIndexOutOfBounds.txt]

    I don't find it with a quick scan of the src610 code line, you might have to
    open a support case, unless you can give me a class name for some more
    hints.
    mbg
    "Nitin Shenoy" <[email protected]> wrote in message
    news:[email protected]..
    >
    Our environment is Weblogic 6.1 SP3 on Win2k professional with JDK1.3.1_03 (build
    1.3.1_03-b03). We use Protomatter Syslog in our application and it usesJakarta
    ORO classes for regexp parsing. Since Weblogic jar already has the classeswe
    do not have a separate jar for ORO in our classpath.
    We have seen ArrayIndexOutOfBounds exceptions in ORO code and the bug islisted
    as solved in version 2.0.7 & later versions.http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17707
    >
    I appreciate someone letting me know how to find the version of ORO inWeblogic
    6.1 SP3. I could try placing the Jakarta jar before Weblogic jar on myclasspath,
    but I would like to figure out the problem instead of trial and error.
    Thanks,
    Nitin

  • Running Struts on Weblogic

    Hi,
    I've just started to explore Struts, and am trying to set up a very simple example with one simple Action, one Form Bean using the validate() method to manually validate inputs.
    I've gotten the example working in Tomcat. However when I tried to run the same example on Weblogic, I ran into some problems with the message resources for the validation.
    On Tomcat, if I trigger a validation error, I got this message on my form page:
    Wrong Login NameHowever when I tried the same code on Weblogic, I got this instead.
    ???en_US.errors.wrongLoginName???The error key in my .properties file is errors.wrongLoginName. So it seems like Weblogic prefixes the key with the locale before it tries to look for the key. Any ideas how to stop Weblogic from doing that? Or are there better ways to code my application so that it works without modifications on both Tomcat and Weblogic?
    Also anyone familiar with what I may need to take note of when developing Struts application for Weblogic?
    I'm sorry if this is not exactly the right forum to post this, but I can't find a more appropriate one to post this. Anyone knows of any good Struts forum that I can join?
    Thanks in advance for any replies!

    Hi all,
    Just found out what's wrong with this. Apparently the weblogic deploy script that I was using (I'm developing on Eclipse, and am using Ant deploy scripts to deploy to Tomcat and Weblogic) had some problems. It didn't deploy the .properties files.
    Sorry, my bad :-(
    I would still however hope to get some advice on the Struts forums and also if there are any known issues anyone has encountered when running Struts with Weblogic.

  • JSP - Nested Jakarta Struts Logic Tags

    Hi,
    Simple question....
    Can Jakarta Struts Logic tags be nested when coding JSP's
    i.e.
    ==========================================
    <logic:iterate id="searchSizeTracker" name="searchSizeTracker" type="uk.co.troutlure.bom.SearchTrackerObject" scope="request">
    <logic:greaterEqual name='searchSizeTracker' property='page_no' value='<%searchActionForm.getCurrentPage()%>'>
    <logic:lessEqual name='searchSizeTracker' property='page_no' value='<%searchActionForm.getMaxPage()%>'>
    <logic:equal name='searchSizeTracker' property='page_no' value='<%searchActionForm.getCurrentPage()%>'>
    <jsp:getProperty name="searchSizeTracker" property="page_no"/>
    </logic:equal>
    <logic:notEqual name='searchSizeTracker' property='page_no' value='<%searchActionForm.getCurrentPage()%>'>
    <a href="<%=request.getContextPath()%>/performSearch.do?pageRequired=<bean:write name='searchSizeTracker' property='page_no'/>&action_id=<bean:write name='searchActionForm' property='currentActionId'/>&searchType=<bean:write name='searchActionForm' property='searchType'/>&currentScreen=search_reorder"><jsp:getProperty name="searchSizeTracker" property="page_no"/>
    </a>
    </logic:notEqual>
    </logic:lessEqual>
    </logic:greaterEqual>
    </logic:iterate>
    =========================================
    The above code sample seems to fail to get past the first <logic:greaterEqual tag even though the conditions are met. And the iterator just loops throught the rest of the SearchTrackerObjects.
    I'm not sure whether logic tags can be nested as shown???
    Thanks in advance.

    Yes you should be able to nest logic tags like that.
    However you seem to be wanting to limit the values that are iterated through using the greaterEqual and lessEqual tags.
    I would suggest you use the offset and length attributes on the logic:iterate tag:
    something like:
    <logic:iterate id="searchSizeTracker" name="searchSizeTracker" type="uk.co.troutlure.bom.SearchTrackerObject" scope="request" offset ="<%searchActionForm.getCurrentPage()%>" length="<%searchActionForm.getMaxPage() - searchActionForm.getCurrentPage()%>">Cheers,
    evnafets

  • Jakarta slide with weblogic

              Hello
              Has anyone used jakarta slide with weblogic 6.1. I am trying to find some installation
              and configuration instructions.
              Also is webDAV supported now? I came across posts that it will be supported in
              the future.
              I am using a SQL server database
              Thankyou
              

    Any solution??? I am also curious about the same...

  • Any good site for learning struts using weblogic

    Hi all,
    Please tell me any good website for learning struts using weblogic. I mean how to creat page and deploy , run it .....
    Thanks in advance

    Hi,
    here is the link for RMI tutorial.
    http://java.sun.com/docs/books/tutorial/rmi/index.html

  • Struts in Weblogic Cluster 8.1?

              Hi,
              I want to know whether WebLogic 8.1 cluster support Struts framework ? ie, does
              it support loadbalancing and failover?
              rgds,
              ramesh
              

    On 3 Jun 2004 05:23:39 -0700, "ramesh" <[email protected]>
              wrote:
              >
              >Hi,
              >
              >I want to know whether WebLogic 8.1 cluster support Struts framework ? ie, does
              >it support loadbalancing and failover?
              >
              >
              >rgds,
              >ramesh
              It's a web application framework. I don't see why it wouldn't behave
              like any other clustered web application.
              ~Ryan Upton
              

  • Jakarta struts

    whatz a good way to start learning struts framework ? bookd articles tutorials...
    thanks

    whatz a good way to start learning struts framework ?
    bookd articles tutorials...
    thanksI'd go straight to the horse's mouth: http://jakarta.apache.org/struts/index.html

  • Jakarta struts and validation

    I have a working validatorform form that uses the struts validation framework (mostly handled through xml files).
    but i want it to instead of just saying "email is invalid"... i want it to also highlight the text infront of the field in red. any ideas as to the best way to implement this?
    My code can be seen at this experts exchange thread: http://www.experts-exchange.com/Web/Web_Languages/JSP/Q_21078788.html
    THANKS!

    The field label? If you have it in a tag (say, an inline DIV or SPAN), and it has an ID, you can get a reference using Javascript and modify the foreground color. That's some Javascript and CSS stuff.
    Tying this into Struts is a different issue... you'd have to do something to the Javascript that Struts uses to validate those values.

  • Compare Sun Blueprints vs Jakarta Struts

    I currently use Sun Blueprints for my projects, following the Petstore application.
    But I never use Struts.
    So, I'd like to know what is the different between them?
    Which is the mostly use in the market?

    I would answer this question by asking another question. What is the difference between plain and spicy food?
    The answer lies in the taste and some improvements to your palate. I can and am trying to realte the same to the Sun Blue Prints and Struts.
    Sun Blue Prints are the base for developing and nurturing your applications using the best practices and industry standards being developed/suggested by the Gurus working at SUN.
    Struts on the other hand is the next step to MVC architecture(another blue print from SUN) eveloved over time with some new features added to it to make the development easier with a differnt paradigm all together.
    As for the question, what is used more in the industry, SUN blueprints are used invariably everywhere whether you use Struts or not. I have come across many companies and friends using Struts as the new framework for developing J2EE applications.
    I guess this is the next step in evolution of J2EE applications. But all said and done, the business needs, budgets, time and resources are some of the factors to keep in mind before jumping on to the bandwagon of using struts for applications which can be developed easily and at a relatively lower cost by using plain Blue Prints from SUN without any gizmos on to it.
    Hope i was able to answer some of the queries and concerns.
    Thanks

  • Jakarta Struts Validation MASK

    Can anyone tell me if it is possible to use the Struts validation defeinitions in validation.xml to validate a user input to only allow either numeric values or the following strings 'NA' or 'na' to be submitted via an input field.
    I assume I would have to use some validation mask to acheive this?
    Thanks.

    Anyone help with this?
    I'm currently using the following:
    ^[0-9.NA]*$
    However, that allows AN to be entered or 989NA etc where the input must be restricted to integer or double values or the exact phase 'NA'. Can this be achieved using the struts validator framework or will I have to write some custom valiudation?
    Thanks.

  • Struts, Ant, Weblogic & Java Beans! (whats going on?)

    Dear all
    Could anyone who can spend some time for me, tell me how I should I go about to use Srtuts, Ant, Java Bean and Web Logic.
    I have joined my team newly, couldn�t cope up with the technology they are using.
    Basically im struggling to use Ant to build the files for Weblogic. Any help will be of much use for me.
    Pls don�t try to give me nose-cut by �go and do google search�.
    Ihv done enough of it(dont want to test my PLs patiance), before coming to sun!
    Thanks & regards
    Vijay

    WebLogic datasource may be created in the Administration Console. build.xml script and build.properties are not required.
    http://java.sys-con.com/node/325151

  • Weblogic 8.1 SP2 + Struts + Internal Servlet Session Process Error Found!

    Hi,
              I have developed a struts 1.1 based webapplication which runs fine on
              weblogic 7 (for one year in production), tomcat 4.1,5 and others but
              refuses to function in weblogic 8.1 sp2!
              This is the stacktrace I get when I try to call an action via the browser:
              java.lang.IllegalStateException: Internal Servlet Session Process Error
              Found!
                   at
                   weblogic.servlet.internal.session.SessionData.checkProcess(SessionData.java:1148)
                   at
                   weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:501)
                   at
                   org.apache.struts.action.RequestProcessor.processLocale(RequestProcessor.java:638)
                   at
                   org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:230)
                   at
                   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
                   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:502)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
                   javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
                   weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
                   at
                   weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
                   at
                   weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
                   at
                   weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
                   at
                   weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
                   at
                   weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
                   at
                   weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
                   at
                   weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at
                   weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              Just out of curiosity I deployed the struts-examples webapplication from
              the apache jakarta struts distribution and it also fails to run with the
              same error!
              Can anybody help me out with this one? Does anybody experience the same
              thing?
              regards,
              oliver
              p.s. I will also post this message on the struts user list.
              

    Hi,
              I have developed a struts 1.1 based webapplication which runs fine on
              weblogic 7 (for one year in production), tomcat 4.1,5 and others but
              refuses to function in weblogic 8.1 sp2!
              This is the stacktrace I get when I try to call an action via the browser:
              java.lang.IllegalStateException: Internal Servlet Session Process Error
              Found!
                   at
                   weblogic.servlet.internal.session.SessionData.checkProcess(SessionData.java:1148)
                   at
                   weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:501)
                   at
                   org.apache.struts.action.RequestProcessor.processLocale(RequestProcessor.java:638)
                   at
                   org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:230)
                   at
                   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
                   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:502)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
                   javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
                   weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
                   at
                   weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
                   at
                   weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
                   at
                   weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
                   at
                   weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
                   at
                   weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
                   at
                   weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
                   at
                   weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at
                   weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              Just out of curiosity I deployed the struts-examples webapplication from
              the apache jakarta struts distribution and it also fails to run with the
              same error!
              Can anybody help me out with this one? Does anybody experience the same
              thing?
              regards,
              oliver
              p.s. I will also post this message on the struts user list.
              

  • Exception running STRUTS examples from JAKARTA...

    Hi,
              I'm looking into the JAKARTA STRUTS framework for JSP. I saw the message
              from Kevin X. about problems he has. I've downloaded service pack 5 and I
              get the following error message:
              javax.servlet.jsp.JspException: Missing resources attribute
              org.apache.struts.action.MESSAGE
              at
              org.apache.struts.taglib.MessageTag.doStartTag(MessageTag.java:360)
              at jsp_servlet._logon._jspService(_logon.java, Compiled Code)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              , Compiled Code)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              , Compiled Code)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:760)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:707)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              Manager.java:251)
              at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:369)
              at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              Code)
              Does anyone knows what's up with this?
              Thanks in advance.
              Regards,
              HC.
              

              As promised, here is the latest from Bea Customer Support....
              Kevin, <load-on-startup> is not honored by WebLogic Server 5.1.0. It is scheduled to be implemented in our next major release. I will check on the feasability of adding this feature to a 5.1.0 service pack, but in the meantime, I wonder if you can accomplish what you need by setting up a startup class <http://www.weblogic.com/docs51/classdocs/API_startup.html>?
              "kevinx" <[email protected]> wrote:
              >
              >Bea is looking into this as I've filed a support request. I will post the solutions, if available. In the mean time, you can subscribe to struts user group mailing list to get some inspiration. Unfortunately, no one has an easy solution for running Strats on Weblogic.
              >
              >Kevin
              >
              >"Henry Chin" <[email protected]> wrote:
              >>Hi,
              >> I'm looking into the JAKARTA STRUTS framework for JSP. I saw the message
              >>from Kevin X. about problems he has. I've downloaded service pack 5 and I
              >>get the following error message:
              >>
              >>javax.servlet.jsp.JspException: Missing resources attribute
              >>org.apache.struts.action.MESSAGE
              >> at
              >>org.apache.struts.taglib.MessageTag.doStartTag(MessageTag.java:360)
              >> at jsp_servlet._logon._jspService(_logon.java, Compiled Code)
              >> at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              >> at
              >>weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              >>, Compiled Code)
              >> at
              >>weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              >>, Compiled Code)
              >> at
              >>weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              >>l.java:760)
              >> at
              >>weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              >>l.java:707)
              >> at
              >>weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              >>Manager.java:251)
              >> at
              >>weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:369)
              >> at
              >>weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
              >>
              >> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              >>Code)
              >>
              >>Does anyone knows what's up with this?
              >>Thanks in advance.
              >>Regards,
              >>HC.
              >>
              >>
              >
              

Maybe you are looking for

  • HP Officejet 5610 all in one Communication Error Message on Mac with 10.10.2

    Hi, I got a new MAC computer running 10.10.2 Yosemite. I own the HP 5610 Officejet all in one printer. The new computer doesn't recognize the printer or scanner. I went to my applications folder and tried to uninstall the HP software but the printer

  • Blur with gradient tool / Lens blur

    Hi everybody, I want to make some blur effects like miniature effect or open apperature lens blur. Currently I'm using the gradient tool with negative sharpness. But I think in 100% zoom, the effect looks a litte bit like on/off. Or is the visible ef

  • ABAP Objects Casting error

    Hi, I have declared two classes with names, ZCL_ONE, ZCL_TWO. ZCL_TWO is inhering ZCL_ONE. Now i am using them in the se38 program. While i use it, Narrow casting is working fine, But widening casting is not working. It is throwing an exception or a

  • N95 Battery Indicator on 31.0.017

    Hi, I got a new N95 and installed software 31.0.017 via NSU. I noticed that the battery indicator stays at 100% a long time and suddenly there are low battery warnings. I searched several forums and found out that this bug exists for a long time. Is

  • MacBook Pro 2009 13'': Slow preformance

    So, I got this computer in November of 2009, and since then I have used it practically daily. When I got the computer it ran smooth, and I barely noticed any problems regarding speed or freezing. Now, a little over one year later, this computer can b