RE: Hidden Variables

2004-06-03 Thread Andrew Hill
Is is a session or request scoped form? -Original Message- From: Joshi, Naveen [mailto:[EMAIL PROTECTED] Sent: Thursday, 3 June 2004 21:48 To: Struts Users Mailing List Subject: RE: Hidden Variables It was based on log files that we found this error. This has happened for couple of scree

AW: Semi-OT: Organizing WEB-INF/lib dir...

2004-06-03 Thread Rosenberg, Leon
You can't split the lib in web-inf, but you can hold the libs in separate folders in your project and have ant to copy it into web-inf. So if you update to a newer version, just update the project and ask ant to build (deploy) :-) Something like this:

RE: Hidden Variables

2004-06-03 Thread Joshi, Naveen
It was based on log files that we found this error. This has happened for couple of screens. It will work through out well, pass all the variables properly and all of a sudden it will not pass one such varaible whereas all other variables will be passed in the same screen. This is killing me. We

Re: State in Struts.

2004-06-03 Thread DGraham
Either use session scoped form(s) or hidden variables. "Miquel Angel" <[EMAIL PROTECTED]> 06/03/2004 06:04 AM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To <[EMAIL PROTECTED]> cc Subject State in Struts.                  Hi. I'm developing an appl

Saving state.

2004-06-03 Thread SEGUI MUNAR
Hi. I'm developing an application with Struts 1.1, Tomcat 5 and Eclipse. I explain my problem: This situation is: I have 1 jsp (jsp1) that shows information in a grid. From this grid I can go to the jsp2, where I can see the details of 1 row of the previous grid. From jsp2 I can go to jsp3, w

Sorry : Semi-OT: Organizing WEB-INF/lib dir...

2004-06-03 Thread brati . sankarghosh
I think I am wrong. my experiment went a little wrong. soory about that. I think lib cannot be subdivided. Brati Sankar Ghosh Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com "Dan Tran" <[EMAIL PROTECTED]> 06/04/2004 11:23 AM Please respond to "Struts User

Re: Semi-OT: Organizing WEB-INF/lib dir...

2004-06-03 Thread Dan Tran
Dont think jsp/servlet specs allows splitting of the lib dir. You may want to take a look at maven.apache.org or use the way Maven names it dependencies jar files good luck. -Dan - Original Message - From: "Joe Hertz" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTEC

RE: Semi-OT: Organizing WEB-INF/lib dir...

2004-06-03 Thread Joe Hertz
What IDE are you using? Can't it help you with this? JBuilder certainly spares me this hassle (okay, that's not all good. I've had some *other* hassles* because of it, but they are certainly worth it). > -Original Message- > From: Riyad Kalla [mailto:[EMAIL PROTECTED] > Sent: Thursday,

Scalability Problem in Struts 1.1

2004-06-03 Thread souravm
Hi All, We are facing a peculiar problem in Struts 1.1 implementation in our project. Actually we are migrating an existing application to Struts Framework. The existing application is to be compared with the struts implementation. The deployment is on Weblogic Server 8.1 SP1. When the exi

RE: Semi-OT: Organizing WEB-INF/lib dir...

2004-06-03 Thread brati . sankarghosh
Well I have done that. I have created a directory under lib and included struts.jar in it. This is running fine in JDeveloper when I added the path to the classpath. Brati Sankar Ghosh Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com "Frank Zammetti" <[EMAIL PR

RE: Semi-OT: Organizing WEB-INF/lib dir...

2004-06-03 Thread Frank Zammetti
I'm pretty sure the answer is no. I just took all the JARs for a test app I had installed and moved them from WEB-INF/lib to WEB-INF/lib/stuff, and the app no longer works. This is in Tomcat, so possibly it would work with another app server, but I tend to doubt it. One suggestion that I can

Semi-OT: Organizing WEB-INF/lib dir...

2004-06-03 Thread Riyad Kalla
Quick question for the people more versed in web apps than me, can you organized your libs in your WEB-INF/lib dir into separate sub dirs? I ask because my project is using Struts and Hibernate right now, and there is a such a mish-mash of JARs forming in my WEB-INF/lib dir, that its hard for m

Re: validating indexed properties

2004-06-03 Thread Ron Grabowski
> non-numeric cash value is entered. I would like to > display a little > exclamation point icon next to the field with the > bad cash value. > > Is this possible? I don't see any support in the > "messagesPresent" tag > for indexed properties, nor do I see any support for > indexed items in

[OT] The Case Against Extreme Programming

2004-06-03 Thread Mike Duffy
Very interesting: http://www.softwarereality.com/lifecycle/xp/case_against_xp.jsp Enjoy. Mike __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/

Re: Struts/tiles: Run-time definition of which tile to include

2004-06-03 Thread Ron Grabowski
> Standard scenario, a user can be logged in or out. I > want to determine which > Tile is included based on whether they're logged in. > This can be determined > from a bean in the session scope. > [snip] > From loggedinout.jsp (this is the file that I want > do do away with): > scope="session

RE: One Forward Action Multiple JSPs

2004-06-03 Thread Kunal H. Parikh
Hi Glenn! I would recommend creating an "Action", with two action-forwards: 1. TermsAndConditions_default 2. TermsAndConditions_fr In Action.execute, detect the appropriate locale and forward control to the appropriate action-forward. HTH, Kunal -Original Message- From: [EMAIL PROTE

Use Date or Calendar (GregorianCalendar) to store information?

2004-06-03 Thread Fabrício Garcia Imbrizi
All, Use Date to store data and Calendar to manipulate data is the best choice? What´s the advantage in store data with Calendar insted of Date? Thanks. Atenciosamente Fabrício Garcia Imbrizi Murah Technologies 11 8275 0199 ---

LazyDynaBean

2004-06-03 Thread Bill Siggelkow
I was looking at Nialls LazyDynaBean and was wanting good use cases for using these classes. I am working on a book and wanted to include something about using these. Niall feel free to e-mail directly at billsigg at bell south dot net. Bill Siggelkow ---

RE: Validating multiple DTO's within a single ActionForm.

2004-06-03 Thread Avinash Gangadharan
>>Now there are general validation needed at submit time for each Form Does this means that you save the data onto a persistent storage on each form submit. If that is the case, on a validation error of the final credit application all you have to figure out is which form does the error belong too

Validating multiple DTO's within a single ActionForm.

2004-06-03 Thread Mick . Knutson
I am trying to design my forms and the way I need to validate them. Here is what my Business Model Looks like: CreditApplication -->Business |>Business Account --->Banker --->Guarantor Each of the Items above has their own HTML page and DynaValidationForm. Now there are general validation

[ANN] Struts-Flow 0.1 Released

2004-06-03 Thread Don Brown
Struts Flow is a port of Cocoon's Control Flow to Struts to allow complex workflow to be implemented using continuations-capable JavaScript. It provides the ability to describe the orde

[ANNOUNCE] Struts articles on Tiles and Validator

2004-06-03 Thread James Holmes
I've recently had a couple of Struts articles published in Oracle Magazine that cover Tiles and Validator. The articles provide a nice introduction to getting started with Tiles and Validator and are perfect for someone wanting to understand how the two popular Struts extensions work. Here are th

RES: MySQL, iBatis, and mysql_insert_id

2004-06-03 Thread Fabricio Garcia Imbrizi
Andy, An example of using KeyGenerator: //Executes the given SQL statement and signals the driver with the // given flag about whether the auto-generated keys produced by // this Statement object should be made available for retrieval stmt.executeUpdate(th

Struts Web Services Enablement Project : version .02

2004-06-03 Thread Frank Zammetti
Ok, I just posted version .02 of the newly-named Struts Web Services Enablement Project (prounced 'SWISS EP' I guess?!?). Here's the address again: http://www.omnytex.com/wst.zip This version I think is considerably more useful, but I'm still eager to hear anyone's opinions, comments, suggesti

One Forward Action Multiple JSPs

2004-06-03 Thread gdeschen
Greetings, What I would like to do is to be able to display different JSPs for the same ForwardAction. I now have this: What I would like is based on the Locale show a different JSP. I cannot use the i18n for this with resource bundles since the page contains lots of text and the format is d

Re: MySQL, iBatis, and mysql_insert_id

2004-06-03 Thread Nathan Maves
iBatis 2.0 has this ability. The other option is to have a KeyGenerator class that handles all of this for you. Don't use the auto generated keys from mysql. Nathan On Jun 3, 2004, at 11:07 AM, Andy Engle wrote: Hi all, I am working on a Struts app where I will be slapping some stuff into a data

url rewriting

2004-06-03 Thread Lesaint Sébastien
Hi, I'm using the following code : logout The html code I get is the following : logout When I read the explanation about how the tag works, I understood the content of href attribute should be something more like : "http://www.myserver.com/lec/logoutAction.do"; I do have an

MySQL, iBatis, and mysql_insert_id

2004-06-03 Thread Andy Engle
Hi all, I am working on a Struts app where I will be slapping some stuff into a database table, and from there I will need to get an insert ID back. I am using a MySQL database, my database stuff is handled by iBatis, and I am assuming that I need to use the MySLQ command mysql_insert_id() to get

Re: Action messages.

2004-06-03 Thread Frank Zammetti
I'm not sure what you mean by "avoid 2 submit 's click". If your referring to the pooling method requiring a submit after the initial one (potential any number of submits really), then yes, you would avoid that. Here's an example off the top of my head (so the disclaimer is it might not be per

Re: Action messages.

2004-06-03 Thread Marcelo Epstein
Thanks Frank, Do you have any sample code of using ? I think this is also good to avoid 2 submit´s click. Am I right? - Original Message - From: "Frank Zammetti" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 03, 2004 11:57 AM Subject: RE: Action messages.

and get...()

2004-06-03 Thread Marcelo Epstein
Hi, When I use if the value is null, the tag returns "". But, when I try, for example, System.out.print(xxx.getProperty()) inside an Action and the property is null. It returns the String "null". What is the best practice to avoid printing "null" ? I have to check all values before printing? I

RE: Strus Web Service Enablement

2004-06-03 Thread Frank Zammetti
just curious..how do u pick the ActionForm from request? Each ActionForm has potentially a different name is it a struts trick? Take a look at the webServiceResponse.jsp... The pertinent lines are: ActionConfig mapping = (ActionConfig)request.getAttribute("org.apache.struts.action.mapping.i

RE: Why not Torque?

2004-06-03 Thread Julio Cesar De Salvo
I need to have the many-to-many relantionship properly set in the xml schema file for the torque generation engine, but once it is it works like charm. And with the experience I was able to write some tuned sql statements although Torque lacks of support for stored procedures and triggers. Howeve

property name repetition in one form

2004-06-03 Thread Samuel Rochas
Hello, I am using a form displaying properties from a bean. One property of this bean is named aProperty. The bean as another property which is a list of other beans (call it items), which one of the item has the property named aProperty too. In my form, I want to know which user is shown, so I u

R: [OT] Good env for struts-based-web-tier and ejb components development

2004-06-03 Thread Andrea M.
Mah Sincerely... there are features in IDEs that I don't know how would I do without.. like code insight... web descriptor (and even struts descriptor) editing.. and so on Of course I could do everything with notepad, but that often means getting crazy just to find a simple syntax error, or event

Re: Why not Torque?

2004-06-03 Thread Mark Lowe
I've used torque and hibernate. Torque gets you up and running very quickly, and has less files to maintain (mapping files) . In the case of hibernate to get around the mapping file maintenance a lot of folk including me use xdoclet. Hibernate gives you more control than Torque but has all that

RE: Action messages.

2004-06-03 Thread Frank Zammetti
You can "fake it" and do this... have a hidden in your page that, just before you submit your form, you display. You will probably also want to wrap everything else in your page in a and hide it at the same time. I say this is "faking it" because the browser won't have any idea what's going

RE: Strus Web Service Enablement

2004-06-03 Thread Marco Mistroni
Hello again, >Exactly! Actually...not sure about the template, but when u go via >WS (webservices) all the client is interested is in getting back XML... >The XML generated by you action class as a response... >That's the thing I want to avoid though... I don't want the Actions to be >altered at

Re: How to get requested path?

2004-06-03 Thread Frank Zammetti
Thanks Martin, it actually turns out that I needed request.getServletPath(). I completely forgot to look at what the request object offered, I was instead looking at the headers, parameters and attributes, and also seeing if the information was contained in RequestProcessor somewhere. I forgot

Re: How to get requested path?

2004-06-03 Thread Martin Gainty
Frank- the Path Follows the URI and precedes the Query String http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.HttpServletRequest.html#getPathTranslated() Does this help?? Martin - Original Message - From: "Frank Zammetti" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Th

Action messages.

2004-06-03 Thread Marcelo Epstein
Hi, I have a Action that takes 10s to execute. Is there any way to display messages in the browser during execution? Thx, Marcelo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: How to get requested path?

2004-06-03 Thread Frank Zammetti
Never mind... I told you it would be obvious... request.getServletPath(). Argh. WAKE UP FRANK!! Frank From: "Frank Zammetti" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: How to get requested path? Date: Thu, 03 Jun 2004 10:41:40 -0

How to get requested path?

2004-06-03 Thread Frank Zammetti
I've been looking through javadocs for a couple of hours and I haven't found the answer to what seems like a straight-forward question... Assume I am writing a sublcass of RequestProcessor... how can I, in the processPreprocess() method, get the path that was called? In other words, if I submi

RE: Strus Web Service Enablement

2004-06-03 Thread Frank Zammetti
I would say take a look at the readme for how this is currently working. Basically, the answer is this... When a Web Service request comes in (recognized by the presence of the SOAPAction header), the RequestProcessor parses the SOAP message contained in the body of the request. The parameter

RE: Strus Web Service Enablement

2004-06-03 Thread Frank Zammetti
Exactly! Actually...not sure about the template, but when u go via WS (webservices) all the client is interested is in getting back XML... The XML generated by you action class as a response... That's the thing I want to avoid though... I don't want the Actions to be altered at all (and the Action

Why not Torque?

2004-06-03 Thread Julio Cesar De Salvo
Hi, I ‘ve been using Torque with Struts for quite a while and performs very well. But I’ve seen that you guys usually uses Hibernate with Struts. Can you tell me what are the dis/ad vantages. Thanks Julio Cesar De Salvo - Project Leader iTechnolo

DynaValdatorForms and java.util.Dates

2004-06-03 Thread Tim Penhey
Hi All, If I have a property that is a java.util.Date, how can I provide it with a default value of today? Thanks, Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Override form action URL

2004-06-03 Thread Eric Jain
If so you can define a dummy action to which your form points. In the dummy just forward to your actual action. In the rendered jsp/html page you will see the dummy action. Thanks, unfortunately the example I gave was somewhat simplified. I'd rather avoid having to configure dozens of dummy acti

RE: How can i avoid the use of & in a drop down box ?

2004-06-03 Thread Daniel Perry
Daniel. > -Original Message- > From: John Antonakos [mailto:[EMAIL PROTECTED] > Sent: 03 June 2004 15:10 > To: Struts Users Mailing List > Subject: Re: How can i avoid the use of & in a drop down box ? > > > where should i put that ? > i never heard of it... > > please give more info,

RE: Strus Web Service Enablement

2004-06-03 Thread Marco Mistroni
Hi, One question... why would you put parameters as query string? Ideally what the client is sending is a SOAP request (or XML request), so The parameters are already embedded in the SOAP request. Only thing that you need is to open a connection to struts URL, for example http://myhost:mypo

Re: How can i avoid the use of & in a drop down box ?

2004-06-03 Thread John Antonakos
where should i put that ? i never heard of it... please give more info, where does it go ? to struts-config.xml or somewhere else ? In the Struts FormClass or inside the jsp tag ? - Original Message - From: "Rouven Gehm" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECT

Re: How can i avoid the use of & in a drop down box ?

2004-06-03 Thread Rouven Gehm
Have you tried to set filter="false" ??? Rouven - Original Message - From: "John Antonakos" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, June 03, 2004 3:40 PM Subject: Re: How can i avoid the use of & in a drop down box ? > I am re-writing th

RE: Strus Web Service Enablement

2004-06-03 Thread Marco Mistroni
Hi, nges entirely here. >At this point my belief is that probably the best way to handle this is to >have an element added to the Action mappings in Struts-Config.xml that >specifies the target JSP for a Web Service request. The default woudl be >the "generic" template I put together, although

RE: Strus Web Service Enablement

2004-06-03 Thread Frank Zammetti
Also, I realized on the drive in that there's no need to put the parameters as a query string as I'm doing... I can just put the parsed parameters directly into the request object as an attribute. Since only the second pass of a Web Service request would know or care about that object, it will

RE: [OT] Good env for struts-based-web-tier and ejb components development

2004-06-03 Thread Marco Mistroni
Hi there, Jedit+xdoclet+mysql+junit+dbunit+maven And u would write code, generate what u need, test it and deploy It with one click.. IDE r powerful, no doubt on that, but I prefer plain old notepad.. If u end up getting acquainted with a powerful IDE, then as soon As u change it u ge

RE: [OT] Good env for struts-based-web-tier and ejb components development

2004-06-03 Thread James Holmes
Yes, Struts Console will plug into MyEclipse as well as IBM WebSphere Studio Application Developer. -James http://www.jamesholmes.com/struts/ -Original Message- From: Kathy Zhou [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 8:36 AM To: 'Struts Users Mailing List' Subject: RE: [

RE: Strus Web Service Enablement

2004-06-03 Thread Frank Zammetti
Ah, I see. I'm not familiar enough with filters, but I had always thought they were on the input side only. If that belief is wrong, then it certainly becomes an option. I think at some point to make this really worth anything I'll have to break my "transparency rule" to some extent. I do li

Re: How can i avoid the use of & in a drop down box ?

2004-06-03 Thread John Antonakos
I am re-writing the question cause the stupid Outlook formatted my text and made it without any meaning to it. - We have some drop down boxes in our jsp's which take data straight from the DB. Some of those data contain the cha

RE: [OT] Good env for struts-based-web-tier and ejb components development

2004-06-03 Thread Kathy Zhou
Could I plug Struts Console into MyEclipse? Thanks. Kathy -Original Message- From: James Holmes [SMTP:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 7:04 AM To: 'Struts Users Mailing List' Subject:RE: [OT] Good env for struts-based-web-tier and ejb components development

RE: How can i avoid the use of & in a drop down box ?

2004-06-03 Thread Kathy Zhou
Have you tried to use & for &? just a thought. Kathy -Original Message- From: Srinivas Rao [SMTP:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 8:07 AM To: Struts Users Mailing List Subject:Re: How can i avoid the use of & in a drop down box ? Hi John, It is possible but

RE: How can i avoid the use of & in a drop down box ?

2004-06-03 Thread Kathy Zhou
Have you tried to use & for &? just a thought. Kathy > -Original Message- > From: Srinivas Rao [SMTP:[EMAIL PROTECTED] > Sent: Thursday, June 03, 2004 8:07 AM > To: Struts Users Mailing List > Subject: Re: How can i avoid the use of & in a drop down box ? > > Hi John, > It is poss

RE: Strus Web Service Enablement

2004-06-03 Thread Marco Mistroni
Hi, Well, main issue here is that if you want everything to be transparent To the user (including the forward) then whole stuff has to be done so that Something 'intercepts' the response when XML is contained in it (if I can explain myself correctly) In other way, to do same steps that you

Re: [OT] Good env for struts-based-web-tier and ejb components development

2004-06-03 Thread Martin Gainty
Not at all- I have worked in so many shops where something minor would popup like jsp wouldnt compile and the developer hadnt a clue what was going on Quite frankly (no pun intended) the developer should have vi and a shell if the application does not build and deploy properly in the shell then the

Re: Default methodName for DispatchAction

2004-06-03 Thread Ron Grabowski
I get the digest so I don't know if this thread has completely died. Most (all?) of my Struts 1.1 Actions use a variation of this base class: public abstract class BaseLookupDispatchAction extends LookupDispatchAction { protected Map getKeyMethodMap() { return null; } public Acti

Re: [OT] Good env for struts-based-web-tier and ejb components development

2004-06-03 Thread Mark Lowe
+1 On 3 Jun 2004, at 14:30, Frank Zammetti wrote: I'm going to pull a Bill Gates here... "UltraEdit and a command prompt should be enough for anybody!" Seriously though... I know many people swear by this IDE or that IDE, but I've done a large number of projects ranging from small ones to huge on

URL regd Servlet filter

2004-06-03 Thread Shilpa Vaidya
hey amit, the url is - http://prdownloads.sourceforge.net/securityfilter/securityfilter-1.0.1.z We really need sound help. I have less time.Also in the book struts in action they mention filtering. How wud i start making my own servlet filter.expersts pls advice. Regd. shilpa ip?download -Or

RE: Servlet filter

2004-06-03 Thread brati . sankarghosh
A filter will only work with servlet containers implementing servlet specifications 2.3. We have a general filter which is extended by other filters doing various actions like xml processing,session validations and security logic. Here is the generic filter code. import javax.servlet.Filter; impo

RE: Servlet filter

2004-06-03 Thread Shilpa Vaidya
Thanks brati, r u writing a servlet filter . how did u approach it. can u show me a starting point. shilpa -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 5:59 PM To: Struts Users Mailing List Cc: 'Struts Users Mailing List' Sub

Fw: Servlet filter

2004-06-03 Thread brati . sankarghosh
Can we have this user removed from the list. All the mail sent to the group fails to go to the user. Brati Sankar Ghosh Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com - Forwarded by Brati Sankarghosh/KOL/TCS on 06/03/2004 06:11 PM - Delivery Failure Repor

Re: Override form action URL

2004-06-03 Thread brati . sankarghosh
I donot know whether I have understood this properly but are you trying to mask your actual action mapping? If so you can define a dummy action to which your form points. In the dummy just forward to your actual action. In the rendered jsp/html page you will see the dummy action. Brati Sankar Gho

RE: Strus Web Service Enablement

2004-06-03 Thread Frank Zammetti
I have to be honest and say I've never used a filter except for one situation to do security on the input side, a very basic application. How would you envision it being used for the output? From: "Marco Mistroni" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To

problem with struts-tiles

2004-06-03 Thread SASIDHAR BUDAMPATI
hi, When working with struts-tiles i have been encountered with the problem as below. please, suggest me how to rectify the problem. javax.servlet.ServletException: Can't get definitions factory from context. org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:673)

Re: Servlet filter

2004-06-03 Thread brati . sankarghosh
Shilpa, We are doing just that. A filter comes into effect before the control goes to the servlet. So if you can stop the user at the filter level you are actually saving some processing. We are checking for the presence of session in the filter. Brati Sankar Ghosh Tata Consultancy Services Mailt

RE: [OT] Good env for struts-based-web-tier and ejb components development

2004-06-03 Thread Frank Zammetti
I'm going to pull a Bill Gates here... "UltraEdit and a command prompt should be enough for anybody!" Seriously though... I know many people swear by this IDE or that IDE, but I've done a large number of projects ranging from small ones to huge ones, and each and every one was done with nothing m

RES: Servlet filter

2004-06-03 Thread Fabrício Garcia Imbrizi
Hi, Create a generic Action class and for all another Action class created, extends the generic Action. Inside generic Action do anything, including authorizations user, log, etc. The generic Action class has the execute(...) method and the last method executed is an another execute() ex.: (exec

Re: How can i avoid the use of & in a drop down box ?

2004-06-03 Thread Srinivas Rao
Hi John, It is possible but i am not sure it is working or not before inset into the database we will use Single quate( ' ' ) to store the data, after u can access '&' symble from the database.. bye Srinivas John Antonakos <[EMAIL PROTECTED]> wrote: We have some drop down boxes in our jsp

Re: Hidden Variables

2004-06-03 Thread James Mitchell
How do you know it is 1 in 300? Is that based on tests or on browsing log files? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "Joshi, Naveen" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EM

How can i avoid the use of & in a drop down box ?

2004-06-03 Thread John Antonakos
We have some drop down boxes in our jsp's which take data straight from the DB. Some of those data contain the character &. (eg John & me). We use a javascript array to store these data for internal use in the page. The struts format those data. When we use these data in a drop down (html select) a

RE: [OT] Good env for struts-based-web-tier and ejb components development

2004-06-03 Thread James Holmes
Navjot, Eclipse + MyEclipse is a great setup and I can highly recommend it. If you're looking for an alternative to EasyStruts, you may want to look into Struts Console. Struts Console plugs nicely into Eclipse 3.0 and provides support for Struts, Tiles and Validator configuration files as well

R: Servlet filter

2004-06-03 Thread Andrea M.
Hi Shilpa I'm not sure you really need to use Filters for this purpose with Struts. I think if you make sure you never access pages directly (maybe putting them under WEB-INF... I've never done this but I know it's possible) but always thru actions, then it shouldn't be difficult to implement a cal

Newbie: Message Resources problem

2004-06-03 Thread Adam Lipscombe
Folks, I cant seem to fix this. I have 2 properties files: WEB-INF\classes\com\expensys\expensyswt\resources\ApplicationResources.prope rties WEB-INF\classes\com\expensys\expensyswt\resources\jdbc.properties My struts-config.xml snippet is: When I try to access the app I get: javax.servle

Mail not delivered messages

2004-06-03 Thread Matthias Wessendorf
hi, after a post i got mail from: [EMAIL PROTECTED] [EMAIL PROTECTED] that the messages is undeliverable anyone able, to delete them from list? -- Matthias Weßendorf Aechterhoek 18 D-48282 Emsdetten Email: matthias AT wessendorf DOT net URL: http://www.wessendorf.net

RE: Dynamic validation and dates

2004-06-03 Thread Matthias Wessendorf
usage in validation.xml: datePattern MM/dd/ API of Validator-Framework said (FieldChecks.validateDate() of org.apache.struts.validator-package): Checks if the field is a valid date. If the field has a datePattern variable, that will be used t

RE: Servlet filter

2004-06-03 Thread Vijay.Nair
We used a filter for the same purpose...works like a charm I presume the configuration is pretty simple.configure it in the web.xml using the filter tags and make sure the filter class is present in your web app -Original Message- From: Shilpa Vaidya [mailto:[EMAIL PROTECTED]

Override form action URL

2004-06-03 Thread Eric Jain
I have: which generates: This works, but I would like to avoid exposing the action URL and return this instead: There is a servlet filter that will internally forward '/test/a/' to '/test/search?dataset=a'. An obvious solution would be: Unfortunately this does not work as

Servlet filter

2004-06-03 Thread Shilpa Vaidya
hey all, Preventing users from accesing action. I am writing a web app to manage administrators and profiles. Administrators may access to the web app based on the profiles they have. The profiles, determine which pages the administrator might access. The profiles, and authorizations, might change

State in Struts.

2004-06-03 Thread Miquel Angel
Hi. I'm developing an application with Struts 1.1, Tomcat 5 and Eclipse. I explain my problem: This situation is: I have 1 jsp (jsp1) that shows information in a grid. >From this grid I can go to the jsp2, where I can see the details of 1 row of the previous grid. From jsp2 I can g

Filters and forwards...

2004-06-03 Thread Jose Ramon Diaz
Hi all, I am trying to wrap the HttpServletResponse to apply gzip compression on data sent to the client when gzip is supported. I'm using a filter,wrapper and custom ServletOutputStream based on published code. It seems to work except when I chain actions. If I call one action which exec

RE: Strus Web Service Enablement

2004-06-03 Thread Marco Mistroni
Hi, My 2 cents I think that is a great idea Do u think that using a filter for the response will help? Last year I did something similar (wrote a Struts-based webapp That I was talking to using J2ME and KSOAP..but all I was able To do was to extend existing action and dump the gen

Dynamic validation and dates

2004-06-03 Thread Tim Penhey
Does the DynaValidatorForm handle java.util.Date? If it does, how does it handle I18N for input? Thanks, Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: struts java script problem

2004-06-03 Thread Tim Penhey
Instead of having the tags just write the HTML, also include a // in here put your iterate tags whether they be JSTL or struts // then just use the standard javascript event handler to modify the pages. add onchange attributes to the form elements to call the javascript functions. Tim