Re: Oracle 9i BC4J and Struts
There have been a number of posts on this forum regarding this, which you can search. I am someone who has also considered using both as my customer is very pro Oracle ,on the basis that they WILL survive the tight conditions hitting other app server providers. You will note some postings on this forum from Oracle employees saying that they are the best thing since sliced bread. As usual you ahve to take all this with a wee ( I'm Scottish) pince of salt. So due to the views of my customer I use JDeveloper (Oracle) for struts development. Now there are of course good general design patterns for building sites and if these are say EJB based ( controller delegates to EJB session bean say) then there are nice wizards for creating session beans if you are new to all this. Then we have lots of design patterns reagrding say EJB performance where you might want say a Fast Reader to read the data from whichever database. This was indeed the view that there was none better than us in Oracle 4J for doing this. (Again search this forum ,it was less than a week ago that he posted this view). I queried his views on whether the lightweight data objects provided by this toolset were really superior to say just using nice Open standards like local interfaces, but to date no reply. My own views on reading the references he provided and related documentation is that they do have good design patterns implemented in their toolset (4J) , but I really wonder when the general standards offer me nearly the same performance whether it is now worth it. I agree that before interfaces like local interfaces became available many providers wrote such fast access objects to get round the rmi overhead. So I was interested, but not convinced, in using their addons. I have trawled though their site for documents on accessing EJB local interfaces via JNDI. In particular I wanted the interface between my action object and the session bean to be local. My experience with non working links on their site, i gave up posting to themlinks which go nowhere, or examples which are all 404s, and decided that probably somewhere out there there is a very usefultoolset, but the documentation and examples are absolute cks. As usual, the opinions of this writer are his/her own ,and not that of my customer or employeer, but the rest of the development team would back me to the hilt on this in any UK court case. Happy New Year ,or as they say in Scotland a guid new year to yin and awe Colin C --- Alireza Fattahi [EMAIL PROTECTED] wrote: Hi, Did any one have any experience with Oracle 9i BC4J and struts? I found it complicated Am I right? Does it make things more complicated or it worth a complete RD :) Alireza -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] = __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
html:form action attribute not set correctly
I'm having some problems with a form not setting its action attribute as expected. For example html:form action=/search method=get ... /html:form generates form name=search-form method=get action=/application ... /form rather than form name=search-form method=get action=/application/search ... /form or form name=search-form method=get action=search ... /form '/search' is a correctly configured action, if randomly changed to something else there is a 'cannot retrieve action mapping' message, as expected, and besides '/application/search' works perfectly if accessed directly. What am I doing wrong? -- Eric Jain -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: html:form action attribute not set correctly
Can you add the struts-config.xml mapping? -Original Message- From: Eric Jain [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 01, 2003 5:47 PM To: struts-user Subject: html:form action attribute not set correctly I'm having some problems with a form not setting its action attribute as expected. For example html:form action=/search method=get ... /html:form generates form name=search-form method=get action=/application ... /form rather than form name=search-form method=get action=/application/search ... /form or form name=search-form method=get action=search ... /form '/search' is a correctly configured action, if randomly changed to something else there is a 'cannot retrieve action mapping' message, as expected, and besides '/application/search' works perfectly if accessed directly. What am I doing wrong? -- Eric Jain -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: html:form action attribute not set correctly
Can you add the struts-config.xml mapping? = struts-config.xml = ?xml version=1.0 encoding=UTF-8? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd; struts-config form-beans form-bean name=search-form type=org.apache.struts.action.DynaActionForm form-property name=dataset type=java.lang.Integer / /form-bean /form-beans action-mappings action path=/search type=test.SearchAction name=search-form scope=request / /action-mappings /struts-config = web.xml = ... servlet-mapping servlet-nameaction/servlet-name url-pattern/search/url-pattern /servlet-mapping ... Note that I use /search for displaying the initial query form as well as showing the results. -- Eric Jain -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [STRUTS] Detecting multiple users with the same login
- Original Message - From: Galbreath, Mark [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, September 23, 2002 1:35 PM Subject: RE: [STRUTS] Detecting multiple users with the same login Store their login names and IPs in a context-scope hashtable upon login and remove them when their session expires. I'm not sure if Tomcat/JBoss has some kind of tracking mechanism that provides concurrent session info, but the documentation should tell you this. Mark -Original Message- From: kiuma [mailto:[EMAIL PROTECTED]] Sent: Monday, September 23, 2002 8:18 AM how can I detect multiple logged users in my system at the same time but from differen ip? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
datasource problem
When I try to get a datasource which has been defined in the struts-config.xml no matter what I do the datasource returns back null. My struts-config.xml for data-sources is: data-sources data-source key= conPool set-property property = autoCommit value = false/ set-property property = description value = database source/ set-property property = driverClass value = oracle.jdbc.driver.OracleDriver/ set-property property = user value = theuser/ set-property property = password value = thepassword/ set-property property = url value = jdbc:oracle:thin:@192.192.192.192:1675:inst/ /data-source /data-sources In the section of code used for initialization of the datasource there is the following: ServletContext context = actSrv.getServletContext(); dsSrc= ( DataSource ) context.getAttribute( ConPool ); The context is captured but the datasource remains null. Any suggestions? Thanks, Steve
conPool -- ConPool / Re: datasource problem
Will the data-source key case-sensitive? conPool -- ConPool Try dsSrc= ( DataSource ) context.getAttribute( conPool ); Good luck ! - Original Message - From: Steven Dahlin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 01, 2003 3:42 PM Subject: datasource problem When I try to get a datasource which has been defined in the struts-config.xml no matter what I do the datasource returns back null. My struts-config.xml for data-sources is: data-sources data-source key= conPool set-property property = autoCommit value = false/ set-property property = description value = database source/ set-property property = driverClass value = oracle.jdbc.driver.OracleDriver/ set-property property = user value = theuser/ set-property property = password value = thepassword/ set-property property = url value = jdbc:oracle:thin:@192.192.192.192:1675:inst/ /data-source /data-sources In the section of code used for initialization of the datasource there is the following: ServletContext context = actSrv.getServletContext(); dsSrc= ( DataSource ) context.getAttribute( ConPool ); The context is captured but the datasource remains null. Any suggestions? Thanks, Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
interaction between jstl and struts
I'm trying to conver some existing jsp's to Struts but confused about the interaction between JTSL looping constructs and Struts tags. I''ve got a session attribute containing a list of subjects which get output as the options in a select. The Struts version complains that that the attribute subj has no value, while everything works fine in the original. Anybody have any advice? Here's my original jsp-based form: form method=post action=/grumpy/Controller select name=topic c:forEach items=${subjects} var=subj poption value= c:out value=${subj}/ c:out value=${subj}/ /option/p /select input type=submit value=Choice name=action / /form Here's my attempt at a struts version html:form action=/choice name=choiceForm type=carl.struts.ChoiceForm html:select property=topic c:forEach items=${subjects} var=subj phtml:option value= c:out value=${subj}/ c:out value=${subj}//html:option/p /c:forEach /html:select html:submitChoose Subject/html:submit /html:form -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: interaction between jstl and struts
Carl == Carl Schwarcz [EMAIL PROTECTED] writes: Carl I'm trying to conver some existing jsp's to Struts but confused about Carl the interaction between JTSL looping constructs and Struts tags. I''ve Carl got a session attribute containing a list of subjects which get output Carl as the options in a select. The Struts version complains that that the Carl attribute subj has no value, while everything works fine in the Carl original. Anybody have any advice? Carl Here's my original jsp-based form: Carl form method=post action=/grumpy/Controller Carl select name=topic Carl c:forEach items=${subjects} var=subj Carl poption value= c:out value=${subj}/ c:out Carl value=${subj}/ /option/p Carl /select Carl input type=submit value=Choice name=action / Carl /form Carl Here's my attempt at a struts version Carl html:form action=/choice name=choiceForm Carl type=carl.struts.ChoiceForm Carl html:select property=topic Carl c:forEach items=${subjects} var=subj Carl phtml:option value= c:out value=${subj}/ c:out Carl value=${subj}//html:option/p Carl /c:forEach Carl /html:select Carl html:submitChoose Subject/html:submit Carl /html:form You can't nest custom tags in the attribute values of custom tags. If you instead used the Struts-EL library (check contrib/struts-el in Struts distribution), your excerpt would look like this: html-el:form action=/choice name=choiceForm type=carl.struts.ChoiceForm html-el:select property=topic c:forEach items=${subjects} var=subj html-el:option value=${subj}/ /c:forEach /html-el:select html-el:submitChoose Subject/html-el:submit /html-el:form This might be better if you could use the options or optionsCollection tags, instead of iterating through a collection and explicitly creating option tags. However, this may have a wrinkle, as I believe those two assume the collection is a collection of beans, not strings, as I think you have here. -- === David M. Karr ; Java/J2EE/XML/Unix/C++ [EMAIL PROTECTED] ; SCJP -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: conPool -- ConPool / Re: datasource problem
That was a misttype on my part. In the code both have conPool. - Original Message - From: Liu Jian [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, January 01, 2003 2:25 PM Subject: conPool -- ConPool / Re: datasource problem Will the data-source key case-sensitive? conPool -- ConPool Try dsSrc= ( DataSource ) context.getAttribute( conPool ); Good luck ! - Original Message - From: Steven Dahlin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 01, 2003 3:42 PM Subject: datasource problem When I try to get a datasource which has been defined in the struts-config.xml no matter what I do the datasource returns back null. My struts-config.xml for data-sources is: data-sources data-source key= conPool set-property property = autoCommit value = false/ set-property property = description value = database source/ set-property property = driverClass value = oracle.jdbc.driver.OracleDriver/ set-property property = user value = theuser/ set-property property = password value = thepassword/ set-property property = url value = jdbc:oracle:thin:@192.192.192.192:1675:inst/ /data-source /data-sources In the section of code used for initialization of the datasource there is the following: ServletContext context = actSrv.getServletContext(); dsSrc= ( DataSource ) context.getAttribute( ConPool ); The context is captured but the datasource remains null. Any suggestions? Thanks, Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
HTML Table navigation
Hello, Is there a sample showing a set of objects navigation (previous page/next page) using html tables and struts? Thanks in advance, ++ Juan Jose Velazquez Garcia Information System Developer www.htmlspider.com.br ++ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: datasource problem
Steven == Steven Dahlin [EMAIL PROTECTED] writes: Steven When I try to get a datasource which has been defined in the struts-config.xml no matter what I do the datasource returns back null. My struts-config.xml for data-sources is: Steven data-sources Steven data-source key= conPool Steven set-property property = autoCommit Stevenvalue = false/ Steven set-property property = description Stevenvalue = database source/ Steven set-property property = driverClass Stevenvalue = oracle.jdbc.driver.OracleDriver/ Steven set-property property = user Stevenvalue = theuser/ Steven set-property property = password Stevenvalue = thepassword/ Steven set-property property = url Stevenvalue = jdbc:oracle:thin:@192.192.192.192:1675:inst/ Steven /data-source Steven /data-sources Steven In the section of code used for initialization of the datasource there is the following: Steven ServletContext context = actSrv.getServletContext(); Steven dsSrc= ( DataSource ) context.getAttribute( ConPool ); Steven The context is captured but the datasource remains null. Are you using modules? The data-source is put into the ServletContext with a key that is constructed by appending the module prefix to the given key. -- === David M. Karr ; Java/J2EE/XML/Unix/C++ [EMAIL PROTECTED] ; SCJP -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HTML Table navigation
http://edhill.its.uiowa.edu/display-0.8/ -Original Message- From: Juan José Velázquez Garcia [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 01, 2003 5:41 PM To: [EMAIL PROTECTED] Subject: HTML Table navigation Hello, Is there a sample showing a set of objects navigation (previous page/next page) using html tables and struts? Thanks in advance, ++ Juan Jose Velazquez Garcia Information System Developer www.htmlspider.com.br ++ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: html:form action attribute not set correctly
The problem seems to be with org.apache.struts.util.RequestUtils.getActionMapping, as the following simply prints '/application' instead of '/application/search'. %-- RequestUtils.getActionMappingURL(/search, pageContext) --% Looking through the code of this method, I see: if (servletMapping.startsWith(*.)) { value.append(actionMapping); value.append(servletMapping.substring(1)); } else if (servletMapping.endsWith(/*)) { value.append(servletMapping.substring(0, servletMapping.length() - 2)); value.append(actionMapping); } else if (servletMapping.equals(/)) { value.append(actionMapping); } This will of course not work if the servlet mapping is done in the following way: servlet-mapping servlet-nameactionServlet/servlet-name url-pattern/search/url-pattern /servlet-mapping servlet-mapping servlet-nameactionServlet/servlet-name url-pattern/browse/url-pattern /servlet-mapping ... Is there any problem with adding something like the following line of code? else value.append(actionMapping); -- Eric Jain -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to get a reference to an Action instance
Hi, In a few words, what I'm writing is a Struts version of my own Form Validation Framework. My validation framework provides it's own Action, ActionForm and form taglibs. Form taglibs are a seamless extension of Struts ones, because the tags preserve exactly the same naming and attributes. I am facing the problem while writing my own extension of org.apache.struts.taglib.html.FormTag, when it comes to considering the following scenario: 1- the client is asking for the form by directly typing the path to the form presentation jsp, and not through the respective Action. In this case, it is the duty of the FormTag to get the ActinForm, put it in the designated scope, and perform whatever else needed before presenting the form. 2- The form going to be presented, has one or more fields with initial values, but the initial values are 'DYNAMIC' in the meaning that they might be different from client to client, they might depend on overall system's state, and so on. My framework's Action class provides the following method for the framework users to implement (if they need to): public String getDynamicInitialValue(String fieldName, HttpServletRequest request) { return null; } There is also another method for multiple value fields, but the idea is the same. So, in order to prepare fields for display, my FormTag needs to have a reference to the respective Action simply for the sake of calling this method. By the way, I do not know how Struts itself handles the dynamic initial values? This is the whole story, and I hope it is clear, my New Years Eve drink permitting -:). Thanks to you guys for the previous answers, and I'm looking forward to any further opinion. Lirian - Original Message - From: Kris Schneider [EMAIL PROTECTED] Date: Monday, December 30, 2002 8:57 am Subject: Re: How to get a reference to an Action instance As others have said, it's unclear exactly what it is you need to do, but here's a general suggestion for having a tag handler and action play nicely together - use scoped attributes. In other words, if your tag handler needs some information from your action, have the action place the information in a request (or session or application) attribute that the handler can access through its current PageContext. Of course, this implies that the action operates on the request before the JSP... Quoting Martin Cooper [EMAIL PROTECTED]: On Sun, 29 Dec 2002, Lirian Ostrovica wrote: Hi, I need to access an Action instance (I have its class name) while writting a Tag. I have seen that ActionServlet stores Action instances in a 'protected' variable (FastHashMap), and so far the only way I can see, is to extend ActionServlet and write my own 'public' method to do the job. But of course I do not prefer to extend ActionServlet just for that... Even if you know the class name, there is no guarantee that an instance of that Action exists, since Action instances are created as needed. And even if an instance does exist, what would be the purpose of accessing it? An Action instance should not maintain state, since that will cause threading problems, and if you need to access class data, then you do not need an instance. Perhaps if you tell us what you are trying to achieve, we can help you find the right way to do that. -- Martin Cooper If there is any other way, can someone please let me know thanks a lot lirian -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Techtarget=lhttp://www.dotech.com/ -- To unsubscribe, e-mail: mailto:struts-user- [EMAIL PROTECTED]For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Dynamic Forms
Hi, In my project, I am displaying all exisiting data in row format, user can update any row(We don't know how many rows will come every time, it depends upon the records exist in database). For this type of project shall I use Struts, If yes how can I create FormBeans for this type of forms. Please give your suggestion on this. Thanks Regards, Ashok.D
Re: Dynamic Forms
ashokd == ashokd [EMAIL PROTECTED] writes: ashokd Hi, ashokd In my project, I am displaying all exisiting data in row format, user can update any row(We don't know how many rows will come every time, it depends upon the records exist in database). ashokd For this type of project shall I use Struts, If yes how can I create FormBeans for this type of forms. ashokd Please give your suggestion on this. Well, you'll likely be using at least indexed properties, and perhaps indexed tags. The former is defined in the JavaBeans specification, and the latter is specific to Struts. The Struts web site has a FAQ/How To area that has a section on indexed properties and tags. -- === David M. Karr ; Java/J2EE/XML/Unix/C++ [EMAIL PROTECTED] ; SCJP -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Dynamic Forms
You have quite a few options for this scenario. Either use Map-backed form bean properties. Or use Nested Extension. I would prefer the latter. Affan - Original Message - From: ashokd [EMAIL PROTECTED] To: Struts [EMAIL PROTECTED] Sent: Tuesday, April 30, 2002 1:36 PM Subject: Dynamic Forms Hi, In my project, I am displaying all exisiting data in row format, user can update any row(We don't know how many rows will come every time, it depends upon the records exist in database). For this type of project shall I use Struts, If yes how can I create FormBeans for this type of forms. Please give your suggestion on this. Thanks Regards, Ashok.D -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
struts-related exception on tomcat startup
I'm getting the exception below whenever I start tomcat. It looks like it has to be one of the struts apps deployed on tomcat, but I don't know which one, and I don't know which file it's complianing about. I started getting this as soon as I switched tomcat over to the xml jars included with FOP 2.0.5, which I assume are a little more recent that the xml jars that come with tomcat. Btw, the trace seems to be harmless, all the webapps I care about still work, but I'd still like to fix the bad comment wherever it is to get rid of this exception, just for peace of mind. :) I suspect the tomcat admin webapp as the culprit, but I've checked all its config files very carefully, no bad comments on line 551... Does anyone recognize this trace and know which webapp/file is to blame? Or, can I get tomcat to tell me more info while it's booting up? Darrel -- stacktrace below -- Starting service Tomcat-Standalone Apache Tomcat/4.1.18 Parse Fatal Error at line 551 column 44: The string -- is not permitted within comments. org.xml.sax.SAXParseException: The string -- is not permitted within comments. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLScanner.scanComment(Unknown Source) at org.apache.xerces.impl.XMLDTDScannerImpl.scanComment(Unknown Source) at org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown Source) at org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDExternalSubset(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.apache.struts.digester.Digester.parse(Digester.java:755) at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1434) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:474) at org.apache.webapp.admin.ApplicationServlet.init(ApplicationServlet.java:152) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:934) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:529) 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.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:228) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260) at org.apache.commons.digester.Digester.endElement(Digester.java:1036) 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.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.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:1514) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:335) at
Validator Error
Validator (structs 1.1 B3) gives me an error with the this configuration in validator.xml form-validation formset form name=newsletterForm field property=firstName depends=required,mask,minlength,maxlenght arg0 key=label.firstname/ arg1 name=minlength key=${var:minlength} resource=false/ arg2 name=maxlength key=${var:maxlength} resource=false/ var var-namemask/var-name var-value^\w+$/var-value /var var var-nameminlength/var-name var-value2/var-value /var var var-namemaxlength/var-name var-value30/var-value /var /field /form /formset /form-validation
RE: Validator Error
depends=required,mask,minlength,maxlenght Perhaps it wouldn't if you spelled maxlength correctly. Been there, done that too :-) James -Original Message- From: Nuno Maia [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 01, 2003 11:27 PM To: [EMAIL PROTECTED] Subject: Validator Error Validator (structs 1.1 B3) gives me an error with the this configuration in validator.xml form-validation formset form name=newsletterForm field property=firstName depends=required,mask,minlength,maxlenght arg0 key=label.firstname/ arg1 name=minlength key=${var:minlength} resource=false/ arg2 name=maxlength key=${var:maxlength} resource=false/ var var-namemask/var-name var-value^\w+$/var-value /var var var-nameminlength/var-name var-value2/var-value /var var var-namemaxlength/var-name var-value30/var-value /var /field /form /formset /form-validation -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Repeating SessionID (newbie)
My project login procedures are recycled from the struts-example code. I'm finding that the same sessionID e.g. BFDDDC81ECBFC3720ACB48FED74B970A is being assigned to every session when I have simultaneous logins with different users. End result, the session-scope bean retrieval grabs the wrong UserView, (or perhaps the only one remaining) Any thoughts as to what could cause the sessionID to repeat like this are greatly appreciated? thanks in advance, Loren [American Airlines saved $40,000 in 1987 by eliminating one olive from each salad served in first-class.] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
problem with bean:size
Hi All, I am using something like below in my jsp - bean:size id=recPerPage name=recurserBean property=images scope=session/ where, recurserBean is my form bean and images is a property of bean, that is a vector. Now I am looking to get the size of vector. I am trying to get this value as Object showRec = (Object) pageContext.getAttribute(recPerPage); Now, the problem is that sometime it returns me value as Java.lang.Integer and sometimes as String. I dont know why this is happenning. Any idea. Please help.
Re: datasource problem
I am a little unclear what you mean by using modules? Steve - Original Message - From: David M. Karr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 01, 2003 3:45 PM Subject: Re: datasource problem Steven == Steven Dahlin [EMAIL PROTECTED] writes: Steven When I try to get a datasource which has been defined in the struts-config.xml no matter what I do the datasource returns back null. My struts-config.xml for data-sources is: Steven data-sources Steven data-source key= conPool Steven set-property property = autoCommit Stevenvalue = false/ Steven set-property property = description Stevenvalue = database source/ Steven set-property property = driverClass Stevenvalue = oracle.jdbc.driver.OracleDriver/ Steven set-property property = user Stevenvalue = theuser/ Steven set-property property = password Stevenvalue = thepassword/ Steven set-property property = url Stevenvalue = jdbc:oracle:thin:@192.192.192.192:1675:inst/ Steven /data-source Steven /data-sources Steven In the section of code used for initialization of the datasource there is the following: Steven ServletContext context = actSrv.getServletContext(); Steven dsSrc= ( DataSource ) context.getAttribute( ConPool ); Steven The context is captured but the datasource remains null. Are you using modules? The data-source is put into the ServletContext with a key that is constructed by appending the module prefix to the given key. -- === David M. Karr ; Java/J2EE/XML/Unix/C++ [EMAIL PROTECTED] ; SCJP -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
form problem
Hello, Happy new year to u all. I needed some help. My problem we are using struts and the form is being called for generating some report . Now this strut is being called from a HREF tag and there is no way I can intialise my form to generte the correct report. I have tried this % MyForm form = (MyForm)pageContext.getAttribute(form_name, PageContext.SOME_SCOPE); form.setSomething(something); % But this too gives me problems that it genrates the page on the next request That is the first time i go to the page the form is not initialized .Now when i go back using the browser back button and click on the href again the report is there :( Can some one help where I am missing some improtant property of struts. Thanx for ur help in advance. cheers ss -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]