RE: Auto-Confirmation

2003-08-22 Thread Bill Chmura
I would guess it is someone purposely subscribing it. Just a guess... > -Original Message- > From: Paananen, Tero [mailto:[EMAIL PROTECTED] > Sent: Friday, August 22, 2003 4:56 PM > To: 'Struts Users Mailing List' > Subject: RE: Auto-Confirmation > > > > Thank you for

RE: login request

2003-08-22 Thread David Friedman
Dear Eric, >From what I learned of interfaces, I would not need to redefine my checkLogin method in each Action subclass. By saying "public class NewAction extends Action implements LoginCheck", I am able to use the LoginCheck's "checkLogin(request)" method as if it were something I'd defined in

How to dynamically decide the properties of the DynaValidator/DynaActionForm

2003-08-22 Thread R Balaji
Dear All, I have an application which returns a varity of properties, which can not be decided at design time. I would like to populate the Business data into a dynaValidatorForm and display them. In this case, it is not possible to specify all the properties as . If i set properties, without

RE: HELP -- Problems Returning ResultSet

2003-08-22 Thread Greg Ludington
I am not entirely sure what your intentions are here, but it appears that you are missing a return statement in your OrgIdService execute() method -- the function only has one return statement, and it returns null. You need at least one return statement that returns an ArrayList. As a minimal cha

RE: blank screen when validation fails. appears to be related to html:options

2003-08-22 Thread David Friedman
Dear Rich, I had my javascript validation break the page like that when I had two conditions incorrect in my page: 1) I put my tag within my opening/closing tags 2) when I used #1 with the wrong formName="something" (i.e. no matching validation formset). When I fixed both of those problems on

Re: relative links and the tag

2003-08-22 Thread Travis Stevens
Use the tag. This will take care of everything for you. -Trav Fumo, Vince wrote: I'm using the tag in all my jsps so my images and css sheets get correctly referenced. However, when I add refs to my action mappings, I have to add a ../ before them for them to work. For example will get me t

RE: Bypassing Form Validation

2003-08-22 Thread Syed, Nazeer
There are 2 ways to solve this problem 1. through Javascript 2. in FormBean 1. Write the even on the Onsubmit of the form on this javascript method return false when cancel is clicked. 2. On Validate method of the form bean you can check the Cancel button clicked if yes then return or do valid

Re: Struts Validator mask

2003-08-22 Thread K.C. Baltz
I'm not familiar with the use of double quotes in regexes. However, you seem to have the right idea. Instead of quotes, try using \\ in place of each \ you want to match. E.g.: ^\\(\\[A-Za-z0-0_-]+)+\\?$ Quick explanation \\ - Must start with a single backslash (\\[A-Za-z0-0_-]+) - A patt

HELP -- Problems Returning ResultSet

2003-08-22 Thread Kapadia Mitesh-C23457
Hello. I am using a HashMap for inter-component communication from my ActionClass to my BLB (Business Logic Bean) which connects to an Oracle DB to execute a query and return a ResultSet. Any assistance you can provide would be most appreciated. Thanks in advance. - Mitesh Kapadia It seems

RE: Disallow user to modify URL in browser address bar

2003-08-22 Thread Craig R. McClanahan
On Fri, 22 Aug 2003, Andrew Hill wrote: > Date: Fri, 22 Aug 2003 19:31:18 +0800 > From: Andrew Hill <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: RE: Disallow user to modify URL

RE: [OT] - Bread Crumb navigation

2003-08-22 Thread Steven Santiago
Thanks Cal. I will have a look. steve -Original Message- From: Holman, Cal [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2003 4:04 PM To: Struts Users Mailing List Subject: RE: [OT] - Bread Crumb navigation I created an example .war using two different techniques that I posted on

ActionForm null after context restart?

2003-08-22 Thread Sasha Borodin
I've been beating my head against this for a couple of days now, if someone can help me out, that would really make my weekend :-) I am having a problem with an ActionForm after restarting the context. Here's some details: 1. I have a jsp with struts form tags. 2. This form has an ActionForm as

log4j:WARN No appenders could be found for logger...

2003-08-22 Thread Bjørn T Johansen
I just upgraded to Struts 1.1 from rc2 and now I am getting this error msg when I start Tomcat.: log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources). log4j:WARN Please initialize the log4j system properly. I remember reading about something like th

blank screen when validation fails. appears to be related to html:options

2003-08-22 Thread Rich
I am having a problem with validating a html:select drop down. I think. The problem: after validation fails the JSP is blank (the browser is blank) not just an empty drop down. To be more specific...I load the page then without filling out any field I do a submit. It then does the javascript va

Re: Authentication Filter not working

2003-08-22 Thread Jing Zhou
I would prefer to use the security constraints to protect sensitive area. And in the logout action class, invalidate the user's session and then forward to /logout.html. In the logout.html page, you could add JavaScript statement on top of it: location.replace('/thank_you.html'); Once the thank_

Re: [FRIDAY] BeanUtils.populate and Booleans

2003-08-22 Thread Jing Zhou
If you look at the Boolean Converter as shown below, you will find an empty string will be converted to false if useDefault is true. if (stringValue.equalsIgnoreCase("yes") || stringValue.equalsIgnoreCase("y") || stringValue.equalsIgnoreCase("true") ||

relative links and the tag

2003-08-22 Thread Fumo, Vince
I'm using the tag in all my jsps so my images and css sheets get correctly referenced. However, when I add refs to my action mappings, I have to add a ../ before them for them to work. For example will get me the follwing error: The request sent by the client was syntactically incorre

RE: Tiles Definition problem

2003-08-22 Thread Joe at Team345
I don't think you want the slash when you reference your page. try this: instead of: > -Original Message- > From: Bryce Fischer [mailto:[EMAIL PROTECTED] > Sent: Friday, August 22, 2003 4:23 PM > To: 'Struts Users Mailing List' > Subject: Ti

RE: Tiles Definition problem

2003-08-22 Thread David Friedman
Bryce, Try taking our your leading slash on the /default.layout tile reference: If you didn't put a slash in your tile name, don't use it with a slash in your definition. Tiles are specific to the 'name="something"', not path specific. Regards, David -Original Message- From: Bryce Fis

RE: Auto-Confirmation

2003-08-22 Thread Paananen, Tero
> Thank you for submitting your request to Quest Software > Technical Support. Who's the stupid [EMAIL PROTECTED]@ at Quest, who subscribed to the list with an Email address that's fed to their support systems? If the list owners are reading, why don't you unsubscribe this genius, please?

RE: Problem with Checkboxes using

2003-08-22 Thread Raghu.Ramakrishnan
Thanks David IN our case when we update, we do not want to reset the checkbox values. So we are going to read the values from the request parameter and then reset the checkboxes according and the others would be reset to blank. Raghu -Original Message- From: David Erickson

Tiles Definition problem

2003-08-22 Thread Bryce Fischer
I'm going to describe my problem, then list the appropriate files below. I'm new with tiles, and am trying to get a simple tiles-definition working. Here's what I did: 1. I create a file called tiles-def.xml, and put it in my WEB-INF directory (listed below) 2. Make sure my definitiions-config

Re: Bypassing Form Validation

2003-08-22 Thread Sloan Seaman
If you want to validation to be turned off in both javascript and server side you ahve to use the tag You will not be able to set the property for this tag because if you do, struts won't know where to look to find the submittal to see if it should or shouldn't do the server side validation. Yo

RE: problems

2003-08-22 Thread Fumo, Vince
ah.. You know I've been messing with this all day and that was something I didn't try.. I figured the property names from the struts website were up to date...but now that I look, the setters for BasicDataSource are diffent that what I had. Thank you, this works great now... v -Original Messa

TEST

2003-08-22 Thread Kapadia Mitesh-C23457

RE: Resetting of Checkbox when using logic:iterate Tag

2003-08-22 Thread Raghu.Ramakrishnan
Hi Susan, In my application, I do not have to reset the entire form, as I do an update and return to the same page... The user should be able to see the checkboxes that he set or disabled. Do you have any ideas??? One idea given to me was to read the request parameters and then set the c

RE: problems

2003-08-22 Thread David Graham
--- "Fumo, Vince" <[EMAIL PROTECTED]> wrote: > Thank you David, I gave that a shot and I made some headway, however, > now at > Tomcat startup (and obvioulsy Struts startup) I'm getting an exception > that > basicly states "Cannot load JDBC driver class 'null'" (full startup is > below). I'm sure I

RE: [OT] - Bread Crumb navigation

2003-08-22 Thread James Childers
I was looking at the source for Roller a couple of weeks ago, it had a BreadCrumb class in it. I didn't investigate it or use it, but I do remember it being there: http://www.rollerweblogger.org/page/project If I rememer correctly, it was a servlet filter that used a simple push/pop mechanism f

RE: login request + ActionServlet RequestProcessor Action

2003-08-22 Thread David Friedman
By sub-classing requestProcessor, I can now do my own authentication within Struts. I believe my solution is both simple and i18n compatible so I am sharing it. Sometime later, I'll probably update it to set a session attribute, "refererPage", where I've stored request.getServetPath() so I can us

RE: JSTL messages & bundles Gotcha

2003-08-22 Thread Raghu.Ramakrishnan
Hi, I had one issue, that is I have some checkboxes within my , and 1) When the user clicks on the checkbox, the property corresponding to the checkbox is set to 'on'. 2) When the user de-clicks the checkbox(removes the check), the checkbox is still set to 'on', how do we reset t

Re: Model 1 & Struts

2003-08-22 Thread Mark Lowe
Shouldn't be any trouble at all having scriptlets and struts stuff on the same container. You could just map all the old jsp's as forwards to have everything controlled from a centralized place. Then if you ever got time you could start thinking about porting the old stuff, moving some code ou

Re: Problem with Checkboxes using

2003-08-22 Thread David Erickson
I am assuming you are using this form in a session scope then.. check back through the archives on the reset function of the form there have been numerous posts within the last few weeks on this topic.. Essentially what happens is that if you deselect a checkbox and then submit the form, nothing is

Auto-Confirmation

2003-08-22 Thread Quest Software
Thank you for submitting your request to Quest Software Technical Support. We are unable to process your request because our records indicate that you are not registered for Technical Support. To register, logon to our Supportlink web site http://www.quest.com/support , and self-register from

Auto-Confirmation

2003-08-22 Thread Quest Software
Thank you for submitting your request to Quest Software Technical Support. We are unable to process your request because our records indicate that you are not registered for Technical Support. To register, logon to our Supportlink web site http://www.quest.com/support , and self-register from

Auto-Confirmation

2003-08-22 Thread Quest Software
Thank you for submitting your request to Quest Software Technical Support. We are unable to process your request because our records indicate that you are not registered for Technical Support. To register, logon to our Supportlink web site http://www.quest.com/support , and self-register from

Auto-Confirmation

2003-08-22 Thread Quest Software
Thank you for submitting your request to Quest Software Technical Support. We are unable to process your request because our records indicate that you are not registered for Technical Support. To register, logon to our Supportlink web site http://www.quest.com/support , and self-register from

Auto-Confirmation

2003-08-22 Thread Quest Software
Thank you for submitting your request to Quest Software Technical Support. We are unable to process your request because our records indicate that you are not registered for Technical Support. To register, logon to our Supportlink web site http://www.quest.com/support , and self-register from

Auto-Confirmation

2003-08-22 Thread Quest Software
Thank you for submitting your request to Quest Software Technical Support. We are unable to process your request because our records indicate that you are not registered for Technical Support. To register, logon to our Supportlink web site http://www.quest.com/support , and self-register from

RE: problems

2003-08-22 Thread Jimmy Emmanual
Try "driverClassName" as the property. -Original Message- From: Fumo, Vince [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2003 3:32 PM To: 'Struts Users Mailing List' Subject: RE: problems Thank you David, I gave that a shot and I made some headway, however, now at Tomcat startup (

RE: [OT] - Bread Crumb navigation

2003-08-22 Thread Holman, Cal
I created an example .war using two different techniques that I posted on my site - it depends on tiles to function. Try http://www.calandva.com/holmansite/do/blog/blogging?date=20030701 Cal http://www.calandva.com/Last update 08/01/03 -Original Message- From: Steven

RE: problems

2003-08-22 Thread Fumo, Vince
Thank you David, I gave that a shot and I made some headway, however, now at Tomcat startup (and obvioulsy Struts startup) I'm getting an exception that basicly states "Cannot load JDBC driver class 'null'" (full startup is below). I'm sure I have my struts-config correct and I have the JDBC driver

Model 1 & Struts

2003-08-22 Thread Michael Korolyov
Hello, What is a way to add Struts to Model 1 App? The App is implemented as Model 1 and I have no time to transform it to Model 2 (and Struts). What is a way for new functionality to be implemented with Struts? How make possible for co-exist Model 1 and Struts in one App? Something like a put Str

[OT] - Bread Crumb navigation

2003-08-22 Thread Steven Santiago
I'm hoping to be able to do some dynamic breadcrumb trail stuff. I see some vague references to them when I search, but I don't see anything good. Anybody have any good links? thanks, steve - To unsubscribe, e-mail: [EMAIL PRO

RE: Horizon: a view management plugin

2003-08-22 Thread Pedro Emanuel de Castro Faria Salgado
Hi Hue, > I must confess to being a bit confused! What is the difference between > your approach and getting an instance of a Dyna, viz: > > DynaActionFormClass dafc = > DynaActionFormClass.getDynaActionFormClass("Dyna-Definition-Name-In-Struts-C > onfig"); With a form bean your goal i

Authentication Filter not working

2003-08-22 Thread Cezar Nasui
Hi all, I try to use a filter for the authentication so I created a class which implements filter with the following doFilter method (I found this in a post) public void doFilter(ServletRequest _request, ServletResponse _response, FilterChain _chain) throws IOException, ServletException {

Problem with Checkboxes using

2003-08-22 Thread Raghu.Ramakrishnan
Hi, I have one issue, that is I have some checkboxes within my , and 1) When the user clicks on the checkbox, the property corresponding to the checkbox is set to 'on'. 2) When the user de-clicks the checkbox(removes the check), the checkbox is still set to 'on', how do we reset the c

Re: Resetting of Checkbox when using logic:iterate Tag

2003-08-22 Thread Susan Bradeen
Are you using the reset() method of your ActionForm to set the checkbox to null or false? http://jakarta.apache.org/struts/faqs/newbie.html#checkbox Susan Bradeen On 08/22/2003 12:32:17 PM "Raghu.Ramakrishnan" wrote: > Hi, > > I have one issue, that is I have some checkboxes within my > , and

Help on pagination!!!!!!!!!!!!!!!!

2003-08-22 Thread Monajit Choudhury
Hi I have a question regarding pagination. I have say 40 records, and I am displaying them as 10 per page.Now I go to the 2nd page and delete a record, say record no 11.How do i make sure that i remains in the 2nd page and shows the records from 12-21?

RE: Quick Java question

2003-08-22 Thread Marco Tedone
Well, the number of arguments is part of the method signature. In your case a dynamic object would be ideal, and if you don't want to use an array you could ever use a Collection, which offers the add(Object element), remove(Object element) methods, thus allowing for dynamicity. The Collection p

RE: problems

2003-08-22 Thread David Graham
--- "Fumo, Vince" <[EMAIL PROTECTED]> wrote: > Yes..I know that I can include the legacy jar but I don't want to. I'd > prefer to not use depreciated librarys in my app. The thing I'm confused > about is that I'm not sure how I'm even using GenericDataSource at all. > I > thought that by explicitly

Re: login request + ActionServlet RequestProcessor Action

2003-08-22 Thread Andy Richards
Hi david I spent a little to much allocated time on this so I had to move on, and I am going to come back to it at a later date. I have a quick 'hack' (a taglib which checks the session in each jsp) for my prototype to present to the client..Anyway, when i do it i will let you know. W

Re: [OT] JNDI datasource lookup to test classes

2003-08-22 Thread Adam Hardy
On 08/22/2003 04:43 PM Leonardo Francalanci wrote: I read the JNDI tutorial, but is the worse thing I've ever read. You've obviously never read any of my poetry. -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To uns

Formatting data for Struts form tags at the JSP layer - is thisright/possible?

2003-08-22 Thread Sasha Borodin
I would like to state a basic assumption I deduced in learning struts, then pose a question. Assumption: ActionForm property getters and setters should return and take Strings. My initial impulse was to try passing the actual data types (Dates, Numbers, etc.); however, the Struts mechanism see

RE: Validating uploaded file as an image only

2003-08-22 Thread Brian McSweeney
Cool, Thanks Adam :-) -Original Message- From: Adam Levine [mailto:[EMAIL PROTECTED] Sent: 22 August 2003 15:27 To: [EMAIL PROTECTED] Subject: RE: Validating uploaded file as an image only Use of the MediaTracker is way to "track" the status of any "media". >From the MediaTracker javado

RE: Problem build war using Ant

2003-08-22 Thread Gandle, Panchasheel
thats cause you mentioned it like that it would take the base dir as ./pages add multiple fileset if you want some other dir too... Panchasheel -Original Message- From: deepaksawdekar [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2003 12:48 PM To: Struts Users Mailing List Subject

Re: Validator with property String array problem

2003-08-22 Thread David Graham
Commons Validator was recently modified to allow the required validation in Struts to run on String[] or Collection objects. You can download the latest Validator nightly build to try it out. David --- java-dude <[EMAIL PROTECTED]> wrote: > Hi, > > I am having problems using Validator framewor

Re: Bypassing Form Validation

2003-08-22 Thread David Stemm
Tried that - it still performs the server-side validation. - Original Message - From: "Norm Deane" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Friday, August 22, 2003 12:07 PM Subject: RE: Bypassing Form Validation > Try > > > > > -- > Norm Deane

Resetting of Checkbox when using logic:iterate Tag

2003-08-22 Thread Raghu.Ramakrishnan
Hi, I have one issue, that is I have some checkboxes within my , and 1) When the user clicks on the checkbox, the property corresponding to the checkbox is set to 'on'. 2) When the user de-clicks the checkbox(removes the check), the checkbox is still set to 'on', how do we reset the

RE: problems

2003-08-22 Thread Fumo, Vince
Yes..I know that I can include the legacy jar but I don't want to. I'd prefer to not use depreciated librarys in my app. The thing I'm confused about is that I'm not sure how I'm even using GenericDataSource at all. I thought that by explicitly using the BasicDataSource I would be avoiding this pro

Re: Generating logs w/Log4J in ActionClass

2003-08-22 Thread Pedro Emanuel de Castro Faria Salgado
> I have the appropriate configurations completed to use Log4J w/Tomcat. > However, how would I invoke Log4J from within my action class to > generate DEBUG statements? > I have the following package imported: > import org.apache.log4j.*; > Any examples would be most appreciated. > Thanks in advan

Problem build war using Ant

2003-08-22 Thread deepaksawdekar
I am using Ant to build my war file. my build file is When i run the build only content of pages dir is included, Can some one help me to debug tht build file. Thanks and Regards Deepak ---

Re: [OT] JNDI datasource lookup to test classes

2003-08-22 Thread David Graham
--- Leonardo Francalanci <[EMAIL PROTECTED]> wrote: > In my DB tier I use an interface to get the connection. > When used under Tomcat, the class that implements the connection gets > the connecton through JNDI. > I want to test these classes outside of Tomcat. > Is there a simple way to put object

RE: Bypassing Form Validation

2003-08-22 Thread Norm Deane
Try -- Norm Deane MIS Consultant Vanderbilt University (615) 322-7855 [EMAIL PROTECTED] -Original Message- From: David Stemm [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2003 10:39 AM To: Struts Users Mailing List Subject: Bypassing Form Validation I'm having trouble trying

Re: problems

2003-08-22 Thread David Graham
--- "Fumo, Vince" <[EMAIL PROTECTED]> wrote: > Hi all. I'm sure this has been asked before but I can't seem to find it > in > the archives. > > I'm building a simple web app and I want to use a connection pool. I've > decided to use the commons dbcp BasicDataSource class > (org.apache.commons.dbcp

problems

2003-08-22 Thread Fumo, Vince
Hi all. I'm sure this has been asked before but I can't seem to find it in the archives. I'm building a simple web app and I want to use a connection pool. I've decided to use the commons dbcp BasicDataSource class (org.apache.commons.dbcp.BasicDataSource). Here is the struts-config I'm using (bas

Re: Generating logs w/Log4J in ActionClass

2003-08-22 Thread David Stemm
I have methods for debug, info, warn and error. Attached is a sample class I use. - Original Message - From: "Kapadia Mitesh-C23457" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, August 22, 2003 11:08 AM Subject: RE: Generating logs w/Log4J in Acti

RE: Nested tags and recursive inclusion

2003-08-22 Thread Yamini Krishnamurthi Ayyagari
I think it is. Probably because WSAD 4.x uses JSP1.1 which requires the flush attribute in jsp:include. And the flush attribute cannot be used with custom tags. I ran the application on Tomcat 5.0 and it worked fine. Thanks Yamini -Original Message- From: Paul McCulloch [mailto:[EMAIL

RE: Horizon: a view management plugin

2003-08-22 Thread Pedro Emanuel de Castro Faria Salgado
No, Richard that's it. :) I will be sending the example application for all who have replied (later today - i am working now - maybe then it will be more obvious the advantage of the framework. unfortunately, it will not make people earn more money by just using it, but it will surely be easi

Re: [OT] JNDI datasource lookup to test classes

2003-08-22 Thread Manolo Ramirez T.
Maybe this files can help you. Regards. Manolo Ramirez T. Leonardo Francalanci wrote: In my DB tier I use an interface to get the connection. When used under Tomcat, the class that implements the connection gets the connecton through JNDI. I want to test these classes outside of

Re: Logging to application directory

2003-08-22 Thread Adam Hardy
In java 1.4 logging, in the java logging.properties file, it says: # default file output is in user's home directory. java.util.logging.FileHandler.pattern = %h/java%u.log You can also log to the console and depending on what you have setup your app server scripts to do with output to the console

Bypassing Form Validation

2003-08-22 Thread David Stemm
I'm having trouble trying to cancel out of a form. I have a cancel button that looks like this: and while the onclick event does cancel out the javascript validation it still goes ahead and performs the server-side validation and I get errors saying certain fields are required, etc. I'm usi

Re: GenericDataSource best practise?

2003-08-22 Thread David Graham
--- Andy Cheng <[EMAIL PROTECTED]> wrote: > Hi, currently I have something like the code below on every action, is > this the normal way of getting the connection? And how would normal > people do if they want to make some data access objects, which contain > all the methods like insert, select et

GenericDataSource best practise?

2003-08-22 Thread Andy Cheng
Hi, currently I have something like the code below on every action, is this the normal way of getting the connection? And how would normal people do if they want to make some data access objects, which contain all the methods like insert, select etc, while the Action class will purely do logic, fo

RE: Telling Users to Wait

2003-08-22 Thread Yee, Richard K,,DMDCWEST
Mark, There is also another way to accomplish your goal that doesn't use the refresh header. Basically, a servlet or JSP outputs a partial HTML page using the flush() method. The partial page contains JavaScript that typically writes out HTML tags that produce a table inside a element using the do

Re: How to set charset UTF-8

2003-08-22 Thread Billy Ng
You know what, I was using the template. As long as I added <% request.setCharacterEncoding("UTF-8"); %> in the template. It works now. Thanks everybody Billy Ng This mailbox protected from junk email by Matador from MailFrontier, Inc. http

[FRIDAY] BeanUtils.populate and Booleans

2003-08-22 Thread Michael Ruppin
I know, I know, never use anything but Strings in an ActionForm to be populated from the request. I guess this is the same old argument for that. I recently thought it might be convenient to use a Boolean, and it worked fine, until I re-used the Form for a query jsp where this property was NOT re

RE: Generating logs w/Log4J in ActionClass

2003-08-22 Thread Kapadia Mitesh-C23457
Thanks David. Quick question -- do I just have the listed method you provided in my wrapper class? -Original Message- From: David Stemm [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2003 8:56 AM To: Struts Users Mailing List Subject: Re: Generating logs w/Log4J in ActionClass I j

[OT] JNDI datasource lookup to test classes

2003-08-22 Thread Leonardo Francalanci
In my DB tier I use an interface to get the connection. When used under Tomcat, the class that implements the connection gets the connecton through JNDI. I want to test these classes outside of Tomcat. Is there a simple way to put objects in the Context, I mean a simple way to emulate Tomcat behavi

RE: Validating uploaded file as an image only

2003-08-22 Thread Adam Levine
Use of the MediaTracker is way to "track" the status of any "media". From the MediaTracker javadoc: The MediaTracker class is a utility class to track the status of a number of media objects. Media objects could include audio clips as well as images, though currently only images are supported

Re: struts test info

2003-08-22 Thread Dan Tran
http://strutstestcase.sourceforge.net/ -Dan - Original Message - From: "ronanoc" <[EMAIL PROTECTED]> To: "Struts List" <[EMAIL PROTECTED]> Sent: Friday, August 22, 2003 6:13 AM Subject: struts test info > Can anyone point me in the direction of good examples and info about > using/writ

RE: Whats the security trick for not permiting the browser back button on SignOut?

2003-08-22 Thread Cezar Nasui
Hi Edgar, this is what I do but it will never diable the Back button. By any chance did you tried to : - do the log out then - click browser's Back right to the first page after signup, - do a Refresh and then - try your links from this page. Could you tell me the result please? I looked at many

RE: Generating logs w/Log4J in ActionClass

2003-08-22 Thread Navjot Singh
i just vaguely remember private Logger logger = Logger.getLogger(Test.class); logger.debug("Better Check log4j docs"); and keep the log4j.properties file in classpath. hth navjot singh |-Original Message- |From: Kapadia Mitesh-C23457 [mailto:[EMAIL PROTECTED] |Sent: Thursday, August 21,

RE: Struts Action or EJB session bean

2003-08-22 Thread Navjot Singh
file uploading is user front job and let the Struts handle it. Sessionbeans are bad choice!! |-Original Message- |From: Erez Efrati [mailto:[EMAIL PROTECTED] |Sent: Friday, August 22, 2003 5:33 PM |To: 'Struts Users Mailing List' |Subject: Struts Action or EJB session bean | | |My EJB/We

RE: Logging to application directory

2003-08-22 Thread Navjot Singh
use log4j or jdk1.4 logging. |-Original Message- |From: Louise Pryor [mailto:[EMAIL PROTECTED] |Sent: Friday, August 22, 2003 8:38 PM |To: Struts Users Mailing List |Subject: Logging to application directory | | |Is there any easy way of sending logs to somewhere in my application |directo

RE: Nested tags and recursive inclusion

2003-08-22 Thread Paul McCulloch
I use this all the time with Tomcat. Maybe this is a websphere bug? -Original Message- From: Yamini Krishnamurthi Ayyagari [mailto:[EMAIL PROTECTED] Sent: 22 August 2003 11:53 To: Struts Users Mailing List Subject: Nested tags and recursive inclusion Hello, I am trying to make recursive

RE: Quick Java question..

2003-08-22 Thread Chen, Gin
This question reminds me of an old virus. You can have file IO that creates a simple java class file with a method taking in as many parameters as you wanted to then invoke javac to rebuild it. Performance-wise it worked great for the virus but probably not a viable option for you ;) -Origina

Logging to application directory

2003-08-22 Thread Louise Pryor
Is there any easy way of sending logs to somewhere in my application directory, rather than eg Tomcat/logs? The latter is OK when I'm developing the application on my own machine, but when I deploy onto my shared host I don't have access to the Tomcat logs directory. And however carefully I test on

RE: Validating uploaded file as an image only

2003-08-22 Thread Brian McSweeney
Hi Adam, Cool! I had no clue that any of this was available. A few questions if you don't mind. What is the purpose of using the MediaTracker? I understand how using Image makeimg = Toolkit.getDefaultToolkit().createImage( image.getFileData() ); will show you if it's a proper image, but I don'

Re: problems with ActionConfig

2003-08-22 Thread Geronimo Ma. Hernandez
Andrew Hill wrote: > Based on the information you have provided it *should* work! Thanks ;-) I added some more logs and it looks like the action receives another instance from ActonConfig, than that was created during configuration-setup. I dumped the hashcode of the ActionConfig. At creation #

RE: Disallow user to modify URL in browser address bar

2003-08-22 Thread rajendra . x . yadav
This looks reliable enough, but still i would suggest to do a role and user chec on each page (only if the application requires it) thanks -raj

RE: Nested tags and recursive inclusion

2003-08-22 Thread PREETAM Balijepalli
Hi Yamini I am sorry that did not respond imeadetly got stuck in some work use this instead of jsp include it has to work.. cheer up preetam -Original Message- From: Yamini Krishnamurthi Ayyagari [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2003 4:23 PM To: Struts Users Mailing

Re: Generating logs w/Log4J in ActionClass

2003-08-22 Thread David Stemm
I just create a class that wraps the log statements and would have a function like this: public static void debug(String message, String aCategory) { Category cat = Category.getInstance(aCategory); cat.debug(message); } then when I need to use this I would call something like:

RE: Disallow user to modify URL in browser address bar

2003-08-22 Thread Syed, Nazeer
If testview_srchpost.do and testtwoview_srchpost.do are valid action then you cannot restrict. This means testview_srchpost.do, esttwoview_srchpost.do are in Struts Config File If that testtwoview_srchpost.do not Valid action then It will go default page or Error Page Thanks Nazeer -Orig

RE: Generating logs w/Log4J in ActionClass

2003-08-22 Thread Mike Jasnowski
Sorry, this is with commons logging not log4j specifically -Original Message- From: Mike Jasnowski [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2003 9:29 AM To: Struts Users Mailing List Subject: RE: Generating logs w/Log4J in ActionClass In your action class, retrieve your log ins

Re: [OT] Shopping cart best practices - Cookie, HttpSession or DB

2003-08-22 Thread Mark Lowe
Storing a few bits and pieces in a session is all storing a cart will do anyway. While I can see why some folks would consider it a clear benefit to save all carts to the db , i don't. But that can be layered on afterwards, especially with handy packages like beanutils. Given that most the folk

RE: Horizon: a view management plugin

2003-08-22 Thread Robert Taylor
Hue, one reason why I took this approach was because I felt that although DynaActionForms implement the DynaBean interface, they are meant to deal with user input where as the "views" described by Pedro are simply value objects used to transport data from the business tier to the web tier. I guess

RE: Generating logs w/Log4J in ActionClass

2003-08-22 Thread Mike Jasnowski
In your action class, retrieve your log instance Log LOG = LogFactory.getLog(YourAction.class); Then wherever you need to log: if (LOG.isDebugEnabled()) { LOG.debug("Log your debug msg here"); } Replace isDebugEnabled() with whatever level you want to use. HTH, Mike J -Orig

Re: Validating uploaded file as an image only

2003-08-22 Thread Adam L
I do it the brute force way: < snip -> FormFile image; java.awt.Image makeimg = null; try { makeimg = Toolkit.getDefaultToolkit().createImage( image.getFileData() ); // wait for the image to be loaded/created Canvas cv = new Canvas();

RE: Disallow user to modify URL in browser address bar

2003-08-22 Thread sriram
Rajendra, I've used the following code in my .jsp page: <% if ((request.getHeader("referer")=="") || (request.getHeader("referer")==null)) { %> <% } %> If the user tries to manipulate the URL in the address bar, "referer" becomes null. It works..but not sure how reliable is this! Sri

Re: Struts Action or EJB session bean

2003-08-22 Thread rajendra . x . yadav
Struts Upload Action. thanks -raj "Erez Efrati"

  1   2   >