RE: BUG!!! FormFile

2003-12-18 Thread Ben Janes
HI Dan, That would make sense, in my browsered enlightenment I never use IE, only Opera 7.2.. Anyway, I wrote a work around in the PropertyUtils class and now it all works fine... Same thing I had wit mime types, IE: image/pjpeg Opera image/jpeg : you tell me Mvh Benjamin A. Janes

Are httpSessions thread safe?

2003-12-18 Thread Joe Hertz
Not sure how OT this question is. My current plan (unless this is bad for some reason, but if so, Ted H should change his example app :-) is to stash the hibernate Session for a user into his httpSession, and reuse it on each request. A Hibernate Session instance isn't threadsafe. I imagine if

Re: Check-boxes and formbeans

2003-12-18 Thread Gurpreet Dhanoa
hi Just declare a property field with the datatype as array like String[] mycheckBox It will automatically populate all of the checkbox selected into the array property Regards Gary - Original Message - From: vasudevrao gupta [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL

RE: Check-boxes and formbeans

2003-12-18 Thread Andrew Hill
And it wont populate the unchecked ones... which means if each checkbox doesnt have a unique value (ie: they all have value true or on) you will get an array containing n instances of on where n is equal to the number of checked checkboxes of that name. Not very helpful. Best bet is to give them

RE: Are httpSessions thread safe?

2003-12-18 Thread Andrew Hill
The sessions essentially just a sort of Map. Access to it may be threadsafe, but the stuff thats in it is another matter entirely. Multiple requests associated with the same session will execute simultaneously. If you have 1 threads playing with the same unsafe object (which you just happened to

RE: validation and DynaActionForm / concrete question

2003-12-18 Thread Marco Mistroni
Hi man, Nice 2 find u on the list. As u have noticed...i am getting along with struts and trying To discover possibilities to do different kind of stuff that Can save me from writing code :-) Thanx 4 suggestion. marco -Original Message- From: Yves Sy [mailto:[EMAIL

RE: Cannot find message resources under key org.apache.struts.act ion.MESSAGE

2003-12-18 Thread Derek Colley
Hello, I have been trying to get Tomcat5 and Struts1.1 to play nice... I have the following config in web.xml: servlet servlet-nameaction/servlet-name servlet-class org.apache.struts.action.ActionServlet /servlet-class init-param

Re: Enhancement Request or Possible Alternative?

2003-12-18 Thread Vic Cekvenich
I have a commercial Struts product that includes an event that is generated when a new action is called. I built it so that one can clean up any session stuff when going to another action for large projects. We could work out something VERY reasonable. .V Hookom, Jacob wrote: We are doing a lot

Data transfer From Struts to JavaScript

2003-12-18 Thread Gede Indrawan
Hi All, I have jsp code below try to implement dynamic dropdown list I utilize javascript code Dynamic Option List from http://www.mattkruse.com/javascript/ I want 4 line hard code below (from that jsp code) listB.addOptions(1,bpp2,7,bpp3,8); listB.addOptions(2,bdl1,4,bdl3,5);

Question dynamic value for a logic:iterate

2003-12-18 Thread struts
How can i have a dynamic value ? eg: logic:equal name=element property=weightType value= should be something like logic:equal name=element property=weightType value=bean:write name=operator property=operatorWeightType/ but that is not working. Any Idea ? Thanks

Re: Question dynamic value for a logic:iterate

2003-12-18 Thread Nicolas De Loof
use this : bean:define id=foo name=operator property=operatorWeightType/ logic:equal name=element property=weightType value=%= foo % ... Nico - Original Message - From: struts [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, December 18, 2003 11:09 AM

Re: Question dynamic value for a logic:iterate

2003-12-18 Thread struts
Got the following error. symbol : method setValue (java.lang.Object) location: class org.apache.struts.taglib.logic.EqualTag _jspx_th_logic_equal_1.setValue(foo); ^ 1 error Thx ! - Original Message - From: Nicolas De Loof

RE: Enhancement Request or Possible Alternative?

2003-12-18 Thread shirishchandra.sakhare
Hi, Did you have a look at the workflow extention for struts?I wil advice you to have alook at the demo application to see if this is what you are looking for. http://www.livinglogic.de/Struts/demoApp.html And also the site has some introductory material...And best of all it is Open Source as

Re: Question dynamic value for a logic:iterate

2003-12-18 Thread Nicolas De Loof
Oups, sory : bean:define id=foo name=operator property=operatorWeightType type=String/ logic:equal name=element property=weightType value=%= foo % On a jsp1.2+ container you can use jstl and struts-el tags too. Nico. - Original Message - From: struts [EMAIL PROTECTED] To:

Re: Cannot find message resources under key org.apache.struts.action.MESSAGE

2003-12-18 Thread Francesco Di Candia
Hi, i've in my strut-config.xml this line message-resources parameter=ApplicationResources/ instead of your init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param and it works fine. Francesco - Original Message - From:

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-18 Thread Robert Taylor
I bet your missing the JSTL taglib directive in your page. Try adding %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c % and then your c:x .../ actions will work. -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 9:45 PM

html:select default value problem

2003-12-18 Thread Keith C. Klopfer
Hi, I know this has been talked about before, and I'm pretty sure I understand the concept, but I don't know why this is not working. The default option for an html:select is not being displayed. I have an ActionForm in request scope called BusinessForm that is populated. The status property

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-18 Thread Robert Taylor
Hi, thank you for your attention to my problem. First all, I think that I am missing someting. In order to use the c:set and c:out ... tags, I think that I have to import a taglib into my JSP and assign it with a prefix c. Which taglib should I import? Right now, I have these:

RE: Help needed in form beans

2003-12-18 Thread Robert Taylor
You may want to consider creating a separate object to hold these values in the session and use your form beans for data input. This way you can decide when to populate your form beans with the data that you've captured in the session. To control when reset() affects my form properties I

RE: html:select default value problem

2003-12-18 Thread Robert Taylor
Try this: html:select property=status html:option value=00 - INACTIVE/html:option html:option value=11 - ACTIVE/html:option /html:select The regular HTML option/ element doesn't communicate with Struts. You need to use html:option / robert -Original Message- From: Keith C.

RE: Connection Pooling

2003-12-18 Thread Edgar P Dollin
Drop connection pooling in struts and either go to Container pooling or use a product like Poolman (on sourceforge). Struts DataSource is no longer supported. Edgar -Original Message- From: hernux [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 1:39 AM To: [EMAIL

RE: Generate Java class from xml?

2003-12-18 Thread Edgar P Dollin
Castor from exolab http://www.castor.org/ is an excellent xml parser. There is also an interesting project for xml - beans http://xml.apache.org/xmlbeans. Edgar -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 8:31 PM To: Struts Users

RE: Are httpSessions thread safe?

2003-12-18 Thread Kris Schneider
If Hibernate sessions are not thread-safe by design, then stuffing one in a web app session and wrapping it with your own synchronization doesn't seem like the right approach. I've never actually used Hibernate, so I could be way off base, but it sounds more like a job for a filter. The filter

RE: Error using Struts Validation on Weblogic 8.1 platform

2003-12-18 Thread rahul.chaudhary
Indeed it was the problem with the path of the DTD Thanks Rahul -Original Message- From: Milon Krejca [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 7:58 PM To: Struts Users Mailing List Subject: Re: Error using Struts Validation on Weblogic 8.1 platform Seems like you do

Off-topic : Calendar Struts

2003-12-18 Thread Gonzalez Comesaña, Sergio Eduardo
I know that it's off topic, but I've need find a calendar similar Outlook make it in Struts and i was looking in a web and I didn't find nothing similar. If somebody know, have, make it someone pls, send me an email Thanks sergio

Using Iterate Tag !

2003-12-18 Thread Rama, Shreekanth (K.)
Hi All, I am new to struts world. I have a problem in the iterate tag. Here's the code snippet.. logic:iterate id=currRecord name=createAbstractForm property=reqdEquipmentList indexId=rowCount TR CLASS=V10B TD html:text name=currRecord

Re: Validate method in action form

2003-12-18 Thread Ted Husted
Another approach would be to create a base ActionForm with the properties, and then extend it for each validation instance. You can also use the came ActionForm class in multiple form-bean elements, and then use the Struts Validator to give each form-bean it's own validation suite. HTH, Ted.

Re: Off-topic : Calendar Struts

2003-12-18 Thread Martin Gainty
I assume you checked out http://jakarta.apache.org/taglibs/doc/datetime-doc/intro.html Saludos, Martin - Original Message - From: Gonzalez Comesaña; Sergio Eduardo [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, December 18, 2003 8:20 AM Subject:

how to not insert javascript into forms

2003-12-18 Thread konf
Hallo, when I use html:form tag in page, struts inserts some javascript into this page. How I can disable it? Thanks, Jiri - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Generate Java class from xml?

2003-12-18 Thread John Ferguson Smart
Must be a new anti-spam filter on the mail server, I guess... Adam Hardy wrote: John, this is off-topic, but why does your message header contain the word ***SPAM** ? On 12/17/2003 08:43 PMnbsp;John Smart wrote: There's also XMLBeans (http://xml.apache.org/xmlbeans/) , which, unlike

Test tiles attribute presence

2003-12-18 Thread Franck
Hi, In a tiles template I would like to test if a tiles attribute should be inserted or not : Example : td width=220 valign=top tiles:insert attribute=menu2 ignore=true/ /td I would like to code something like tiles:notEmpty attribute=menu2 td width=220 valign=top tiles:insert

Re: Tiles in Struts 1.1 - TilesRequestProcessor

2003-12-18 Thread Joe Germuska
The PlugIn takes the liberty of setting your RequestProcessor to the TilesRequestProcessor for you. You only really need to worry about it if you choose to use a custom RequestProcessor of your own; in that case, you'd need to extend the TilesRequestProcessor if you want to use Tiles

RE: Are httpSessions thread safe?

2003-12-18 Thread Joe Germuska
At 4:09 PM +0800 12/18/03, Andrew Hill wrote: The sessions essentially just a sort of Map. Access to it may be threadsafe, but the stuff thats in it is another matter entirely. Multiple requests associated with the same session will execute simultaneously. There's nothing in the specs that

Re: Weblogic 8.1 - Error in using tag library

2003-12-18 Thread aashra
I am sending this message so that if somebody else faces a similar problem they will have an answer to it instead of a hanging thread. The project I am dealing with was purchased and I pulled that project from a version control system on to JBuilder. Since I wanted to use the struts

RE: [Tiles] tiles controller not processing tiles request

2003-12-18 Thread Craig Tataryn
Thanks David, I did end up figuring it out, thanks for the tip about the controller, I noticed in the plugin source that it would instantiate it if it was not already present. I should add that when I posted my solution, I had the wrong class used on my action, it should read: action

RE: BUG!!! FormFile

2003-12-18 Thread Dan Payne
Ben, So is the bug in Opera or Struts? This problem is extremely annoying. Also, do you mind posting your work around? Thanks, Dan -Original Message- From: Ben Janes [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 1:19 AM To: Struts Users Mailing List Subject: RE: BUG!!!

Possible to add or change Validatorrules at runtime?

2003-12-18 Thread Martin Grüneberg
Hi all, I will write a application with fully dynamic htmlforms which i can configure at runtime. For each of the fields of such a form I will define a type (String,Number...) and Constraints like in the validator.xml (range etc.). My question is, is it possible to add form and fielddefinitions

Re: Question about back button on forward.

2003-12-18 Thread Shrihas Shah
Hi Khalid: Thanks for your reply. I just found out some info. If I want to force to send request upon the hitting back button I can put following lines in my jsp and it does force back the request to server. % response.setHeader(Expires,0);response.setHeader(Cache- Control,no-cache);% Thanks

URGENT - Help defending Struts

2003-12-18 Thread russell . c . friedberg
All: Our CIO is currently fighting the use of Struts by saying that it is not widely used in B2C sites. Does anyone know of any sites, preferably commerce sites that are using Struts? This would be extremely helpful. The issue is that the CIO is looking for sites that may be similar to

RE: URGENT - Help defending Struts

2003-12-18 Thread Long, Robert
www.travelocity.com (flight + hotel search section) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 9:49 AM To: [EMAIL PROTECTED] Subject:URGENT - Help defending Struts Importance: High All: Our CIO is

RE: URGENT - Help defending Struts

2003-12-18 Thread Ben Anderson
http://www.paychex.com/demos/s125/index.html you can't directly access it, because it's a subsription service, but there's a flash tour of the site. From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: URGENT - Help defending Struts Date:

Re: URGENT - Help defending Struts

2003-12-18 Thread ian_d_stewart
http://www.paymentech.com Also, IBM uses Struts for the WebSphere Admin Console HTH, Ian [EMAIL PROTECTED]

Re: URGENT - Help defending Struts

2003-12-18 Thread Andrew Shirk
www.roomandboard.com http://www.retrospecthome.com At 09:48 AM 12/18/2003, you wrote: All: Our CIO is currently fighting the use of Struts by saying that it is not widely used in B2C sites. Does anyone know of any sites, preferably commerce sites that are using Struts? This would be extremely

Re: URGENT - Help defending Struts

2003-12-18 Thread Andy Engle
[EMAIL PROTECTED] wrote: Our CIO is currently fighting the use of Struts by saying that it is not widely used in B2C sites. Does anyone know of any sites, preferably commerce sites that are using Struts? This would be extremely helpful. It looks like www.verizonwireless.com has their

Re: URGENT - Help defending Struts

2003-12-18 Thread Brice Ruth
http://www.fiskars.com/ - our buy online functionality is launching later this evening, integrating with a 3rd-party fulfillment vendor. All aspects of the site, including the localization to French German (with 12 more localizations to launch in Q1/Q2 of '04) are driven through Struts.

RE: URGENT - Help defending Struts

2003-12-18 Thread Fullam, Jonathan
www.verizonwireless.com -Original Message- From: Ben Anderson [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 10:53 AM To: [EMAIL PROTECTED] Subject: RE: URGENT - Help defending Struts http://www.paychex.com/demos/s125/index.html you can't directly access it, because it's a

Re: URGENT - Help defending Struts

2003-12-18 Thread Max Cooper
http://www.fiskars.com/ is using Struts, too. -Max - Original Message - From: Andy Engle [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, December 18, 2003 7:58 AM Subject: Re: URGENT - Help defending Struts [EMAIL PROTECTED] wrote: Our CIO is

Re: URGENT - Help defending Struts

2003-12-18 Thread Brice Ruth
I believe that major portions of the kraft.com and saralee.com consumer sites are also driven using J2EE/Struts, based on a training session I went to yesterday with the consulting group that is helping/developing their sites. Brice Ruth wrote: http://www.fiskars.com/ - our buy online

Re: Are httpSessions thread safe?

2003-12-18 Thread Max Cooper
Two threads can access and use the same object from the session at the same time. Struts does not prevent this from occurring. It is something to worry about unless you want to be woken up with bug reports in the middle of the night. :-) -Max - Original Message - From: Joe Hertz [EMAIL

RE: URGENT - Help defending Struts

2003-12-18 Thread Chappell, Simon P
This question comes up periodically, so I started a list of Struts-powered sites. http://simonpeter.com/techie/java/struts/sites.html I hope this helps. I know that I wouldn't like to think about not using it on the Intranet application that I head up the development team for. It has greatly

Re: URGENT - Help defending Struts

2003-12-18 Thread daniel
what frame work does he want to use then? Im not a struts user yet, but from what i see the framework is not BtoC / BtoB specific. imo. im guessing the cio hasnt even looked at struts to see if it would help provide support to the project. next my question is how big is the site? if its just a few

RE: Are httpSessions thread safe?

2003-12-18 Thread Kris Schneider
Synchronizing on the session object may cause you all sorts of grief...or it may not. It all depends on your container. The spec makes no guarantees about the identity of the object returned by methods like PageContext.getSession or HttpServletRequest.getSession. For example, here's a test JSP:

Re: URGENT - Help defending Struts

2003-12-18 Thread Joe Germuska
Our CIO is currently fighting the use of Struts by saying that it is not widely used in B2C sites. Does anyone know of any sites, preferably commerce sites that are using Struts? This would be extremely helpful. The CIO of a company as big as Accenture is going to decide whether Struts should

Re: Possible to add or change Validatorrules at runtime?

2003-12-18 Thread Oliver Thiel
Hi Martin, I try achieve something comparable. But I did not use the xml validation, cause as far as I know you have to reload the xml files - which means you have to change the web.xml timestamp so that the server is aware of the change and reloads . bla bla. Here you are two articles

Re: URGENT - Help defending Struts

2003-12-18 Thread Steven J. Owens
On Thu, Dec 18, 2003 at 10:13:24AM -0600, Joe Germuska wrote: Our CIO is currently fighting the use of Struts by saying that it is not widely used in B2C sites. Does anyone know of any sites, preferably commerce sites that are using Struts? This would be extremely helpful. The CIO of a

Re: Are httpSessions thread safe?

2003-12-18 Thread Max Cooper
Even though you got a few different objects with those calls, they all represent the same conceptual session underneath. The concept of a session would be worthless otherwise. In other words, if you stash a reference to some object in the session, you will be able to get a reference to that same

RE: URGENT - Help defending Struts

2003-12-18 Thread russell . c . friedberg
Sorry about that - Joe caught a Freudian slip in my mail. It is the client CIO (I tend to slip that way and think of him as mine). Accenture uses Struts all of the time (we use it in our base offering - that is why we want to use it here). Sorry for the confusion. Thanks again to everyone,

Re: URGENT - Help defending Struts

2003-12-18 Thread Max Cooper
I am sure part of it is just that he doesn't want to choose something that doesn't have a lot of mind/market share. How many people use something is a decent (but not perfect) indicator of how likely it will be that support will be available in the future, and that the skills acquired in learning

Re: Are httpSessions thread safe?

2003-12-18 Thread Kris Schneider
The point is about synchronizing on the session object, in which case it makes all the difference in the world that different instances are used to represent the same conceptual session. Quoting Max Cooper [EMAIL PROTECTED]: Even though you got a few different objects with those calls, they all

RE: Are httpSessions thread safe?

2003-12-18 Thread Joe Hertz
Yuck. And may I say, Yuck, again? It's not the Session object per se, as much as it is the particular attribute I want to store there. It does strike me that the storage of a Hibernate Session in the httpSession is a fairly common thing, so I doubt this bites people very often. It does seem to

Re: Are httpSessions thread safe?

2003-12-18 Thread Joe Germuska
At 8:22 AM -0800 12/18/03, Max Cooper wrote: Even though you got a few different objects with those calls, they all represent the same conceptual session underneath. The concept of a session would be worthless otherwise. In other words, if you stash a reference to some object in the session, you

Re: URGENT - Help defending Struts

2003-12-18 Thread Andreas Steinwachs
Hello Russell, you might want to have a look at http://nagoya.apache.org/wiki/apachewiki.cgi?StrutsWebLinks I also found the following site: http://www.isdcards.com ..but you'll probably find many more searching the Internet (for example, if you search google for powered by Struts). HTH

RE: Are httpSessions thread safe?

2003-12-18 Thread Kris Schneider
Poked aroung on the Hibernate site for a few minutes and found these: http://www.hibernate.org/42.html http://www.hibernate.org/43.html Quoting Joe Hertz [EMAIL PROTECTED]: Yuck. And may I say, Yuck, again? It's not the Session object per se, as much as it is the particular attribute I

Re: URGENT - Help defending Struts

2003-12-18 Thread Mark Lowe
just smile a little bit in a yeah right manner. he's just challenging you or plain old bulshiting.. Sure struts isn't used in all b2c sites, but so what, is that a point ? IMO If his team take to it then why not, its more a question of java/jsp or not that struts. On 18 Dec 2003, at 16:03, Max

[OT] Numeric Overflow

2003-12-18 Thread Raj Yadav
Hi All, I have a SQL query which give me sum from a Number column. The number is huge. It is 44515445719. I use rs.getInt(1) and it gives me Numeric Overflow Exception at Run time. I tried to use rs.getLong and rs.getDouble and they both give me compile time error. Can some one please help as to

Re: [OT] Numeric Overflow

2003-12-18 Thread ian_d_stewart
What is the compile time error you're seeing? Ian Raj Yadav

RE: [OT] Numeric Overflow

2003-12-18 Thread Raj Yadav
Found Double Required int -raj -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 10:56 AM To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: Re: [OT] Numeric Overflow What is the compile time error you're seeing? Ian

RE: [OT] Numeric Overflow

2003-12-18 Thread Voinea, Marina
can you get a BigDecimal() ? -Original Message- From: Raj Yadav [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 11:49 AM To: [EMAIL PROTECTED] Subject: [OT] Numeric Overflow Hi All, I have a SQL query which give me sum from a Number column. The number is huge. It is

Struts test cases

2003-12-18 Thread Ovidiu EFTIMIE
Hi, Has anyone used WSAD 5.0 with StrutsTestCase 2.0 ? I've only succeded to make it work after several operation which don't inspire me much confidence, or maybe is just me taking the hard way. Is there anyone there who used this and can give me some hints? Thanx, Ovidiu PS: For anyone

Re: Are httpSessions thread safe?

2003-12-18 Thread David Erickson
Another question along the same vein.. each httpRequest that comes into say Tomcat is given a seperate thread to operate under correct? -David - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, December 18, 2003 1:09

logic:iterate inside a logic:iterate ??

2003-12-18 Thread gentyjp
Hi I'am a Struts newbie, sorry if it is a classic question. My question is about logic:iterate I have a vector of documents. In my application a document is a vector of LabelValueBean. I wish to write both the label and the value. I wish to write all my documents so I iterate

RE: Are httpSessions thread safe?

2003-12-18 Thread Joe Hertz
I saw these. I just had this grand idea of minimizing the Hibernate connections by doing what Ted did in his example -- not actually discarding a user's Hibernate Session until his httpSession expired. I've never messed with ThreadLocals before but I suspect that the attempt to put a ThreadLocal

Re: Are httpSessions thread safe?

2003-12-18 Thread Max Cooper
Agreed. I wasn't thinking that the question was to literally synchronize on the session object itself. I see now that that may have been the original intent. Synchronizing on the session object itself seems like a really dangerous idea to me (invitation for deadlock, performance issues). And

Re: Are httpSessions thread safe?

2003-12-18 Thread David Erickson
That second one actually works great, 43.html. Since each request is running in its own thread it has the possiblity to create a new hibernate session for every request, but it only creates it if you call the getSession method on the filter. And at the end of the request that session is

Re: Are httpSessions thread safe?

2003-12-18 Thread Adolfo Miguelez
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]msgId=149353 From: David Erickson [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED],[EMAIL PROTECTED] Subject: Re: Are httpSessions thread safe? Date: Thu, 18 Dec 2003

RE: logic:iterate inside a logic:iterate ??

2003-12-18 Thread Robert Taylor
logic:iterate id=document name=formName property=documents logic:iterate id=lv name=document property=labelValueBeans bean:write name=lv property=label/ bean:write name=lv property=value/ /logic:iterate /logic:iterate You should probably use JSTL for this. c:forEach var=document

RE: Are httpSessions thread safe?

2003-12-18 Thread Joe Hertz
I guess creating Hibernate Sessions and Destroying them on every request isn't as bad as I imagine it is? I figured creating the session when the user showed up, destroying it when his httpSession expired, and reconnecting/disconnecting on each request was strictly better. I guess doing this

RE: [OT] Numeric Overflow

2003-12-18 Thread ian_d_stewart
Makes sense. I'm guessing you have something like: int num = rs.getDouble(1); From your earlier e-mail, it looks like num is actually a long (i.e., it is a whole number that will not fit into Java's 32-bit int). Try this instead: long num = rs.getLong(1); HTH, Ian

Re: Are httpSessions thread safe?

2003-12-18 Thread Max Cooper
Most (all?) containers pool the request-handler threads, so it won't be creating hibernate sessions for each request. It would still be thread safe, since a single thread won't be used to process two requests simultaneously. This sounds like a good approach to me -- safe and likely to perform just

Re: Are httpSessions thread safe?

2003-12-18 Thread David Erickson
Well what that plugin does is IF you request a session from it, it binds a Hibernate Session to your current executing thread. thus if you are using actions, anywhere in that action and in the resulting jsp the same session is used if you requested it again. And on requests for images or

RE: URGENT - Help defending Struts

2003-12-18 Thread Greg Ludington
TiVO Central Online (the service by which people log in and schedule programs and other operations on their TiVOs through the web) runs on Struts. https://www3.tivo.com/tivo-com/tco/index.do Of course, you have to have a TiVO with Home Media Option to log in and do anything meaningful on the

Is there a way to set variable using Struts?

2003-12-18 Thread Clark Kent
I have the following scriptlet code : if(tableCounter == 1){ tableCounter = 2; } else { tableCounter = 1; } How do I achieve the above code using Struts tags (without using JSTL)? Thanks, CK - Do you Yahoo!? New Yahoo! Photos - easier uploading and

No Action

2003-12-18 Thread Mauricio T. Ferraz
Help, please!!! My application dont execute the action anymore, I don´t know what happened The method validate() of the ActionForm is executted return null rigth, but it don´t go to the Action. Any Action im my application work anymore! And I dont get ANY message error on server and ANY log.

No Action

2003-12-18 Thread Mauricio T. Ferraz
I got the HTTP 500 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: URGENT - Help defending Struts

2003-12-18 Thread Paananen, Tero
The UK National Lottery at http://www.national-lottery.co.uk/ runs on Struts. Let me assure you that Struts works JUST fine on B2C sites. That site has gone to hell and back during the testing period, including thorough security audits and performance testing to make sure the performance

RE: Enhancement Request or Possible Alternative?

2003-12-18 Thread Hookom, Jacob
Vic, I did notice that there is pattern matching now available on the CVS head, but I was wondering if your solution was done with Struts as is, or if you had to make modifications to the Struts Config DTD and/or RequestProcessor? The solution of using a workflow to enforce pathways is not

RE: Is there a way to set variable using Struts?

2003-12-18 Thread Syed, Nazeer
I have not seen the if-else in Struts Tag. logic:equal property=tableCounter value=1 tableCounter = 2; /logic:equal logic:notEqual property=tableCounter value=1 tableCounter = 1; /logic:notEqual Thanks Nazeer -Original Message- From: Clark Kent [mailto:[EMAIL PROTECTED] Sent:

Re: DOTs, wild cards, and action mapping

2003-12-18 Thread Thomas E Enebo
David Friedman wrote: Thomas, (Probably a) Dumb question From the ${area.name} it looks like you're using Velocity Templates. I thought Velocity couldn't mix with JSP's like that (My impression from ch 17 of 'Struts in Action'. How are you mixing the two? (Or is there a Velocity update

Re: logic:iterate inside a logic:iterate ??

2003-12-18 Thread Jan Vervecken
try something similar to this (of course all the Java code to construct the lists should be in (or called by) a Struts Action class, so focus on the use of the logic:iterate tag) --8loop.jsp-- %@ page import=java.util.* % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib

Runtime Generation of DynaValidatorActionForms

2003-12-18 Thread Hookom, Jacob
Runtime Generation of DynaValidatorActionForms, is it possible? We have forms defined in the DB and I want to generate a DynaActionForm that would use Validator. I checked the main struts books we have at the office and couldn't find any reference to something like this, I'm sure others have

Re: Enhancement Request or Possible Alternative?

2003-12-18 Thread Vic Cekvenich
Hookom, Jacob wrote: Vic, I did notice that there is pattern matching now available on the CVS head, but I was wondering if your solution was done with Struts as is, or if you had to make modifications to the Struts Config DTD and/or RequestProcessor? The solution of using a workflow to enforce

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-18 Thread Caroline Jen
Thank you for your time and support. It is the JSTL taglib directive I missed in my page. Now, everything works as expected. --- Robert Taylor [EMAIL PROTECTED] wrote: I bet your missing the JSTL taglib directive in your page. Try adding %@ taglib uri=http://java.sun.com/jsp/jstl/core;

Re: Is there a way to set variable using Struts?

2003-12-18 Thread Janusz Dziadon
I think that this way is not good. First step (if=1) woks fine, but after that it always will have value equal 2 so not equal 1 then second step will always be executed and finally counter will have value 1. I would prefer defining another bean on start, something like this bean:define

action local forward to a tile

2003-12-18 Thread Ebersole, Steven
hey all, i'm running into an issue I just cannot seem to figure out. It deals with trying to define an action local forward whose path is a tile. I searched the mailing list and found all sorts of questions and comments on this, but none of the solutions helped with my problem. I am using

Disable INFO Log messages in struts

2003-12-18 Thread Gerald_Beattie
I have set DEBUG to Zero in the action init parms. I am still getting too many INFO messages from struts INFO util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true I am using a commons-logging.properties file which points to a

RE: Disable INFO Log messages in struts

2003-12-18 Thread Ebersole, Steven
The debug action init param has no effect. Struts totally does logging through commons logging, which you've said you've set up to use log4j. So in your log4j config file, add a logger for org.apache.struts and set it to an appropriate level. You may also have to set additivity appropriately

RE: Disable INFO Log messages in struts

2003-12-18 Thread Dalmia, Swati
In Log4J properties file you can add this lines # # # Print only messages of level WARN or above in the package struts # #

ClassCastException coming from DynaValidatorForm.validate()

2003-12-18 Thread Janice
Hello all, I did have validation, etc, working in another application, but now I'm starting a new application and I'm getting an error that I can't explain. When I submit my form, I call: ActionErrors errors = form.validate(mapping, request); which spits up this error: ** error stuff starts

RE: URGENT - Help defending Struts

2003-12-18 Thread Dalmia, Swati
First Bank is B2C . they are using https://www.efirstbank.com/ibank1/logonload.do -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 8:49 AM To: [EMAIL PROTECTED] Subject: URGENT - Help defending Struts Importance: High All:

RE: Disable INFO Log messages in struts

2003-12-18 Thread Gerald_Beattie
Any suggestions this is not working to remove struts INFO messages # Set root category priority to DEBUG and set its only appender to A1 log4j.rootCategory=ERROR, A1 # A1 is set to be a ConsoleAppender (writes to system console). log4j.appender.A1=org.apache.log4j.ConsoleAppender # A1 uses

  1   2   >