illegalargumentexception thrown

2004-08-26 Thread Sebastian Ho
Hi I have this exception but i don't remember editing my struts-config. Where to start debugging? Sebastian java.lang.IllegalArgumentException: Path CreateProject.jsp does not start with a "/" character at org.apache.catalina.core.ApplicationContext.getRequestDispatcher(ApplicationContex

RE: Which is better? Auto validate or Manual validate?

2004-08-26 Thread Yves Sy
When you use DynaValidatorForm, you don't really have a choice other than to use the Validator framework as you cannot override the validate() method. You can only override when you write your own ActionForm. Validating using the validator framework can help off-load traffic from the server when y

Re: Question about upload multi files ???

2004-08-26 Thread Eric Chow
Have you tried GMail ??? In the Compose Mail part, it can dynamic add Attach file as I said in my question. What technology will they use ?? Eric - Original Message - From: "David Friedman" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Eric Chow" <[EMAIL

RE: Question about upload multi files ???

2004-08-26 Thread David Friedman
Eric, You should do a search on the list. I remember reading, many months ago, that this wasn't possible with the Commons FileUpload - you have to use multiple file fields (one per file to upload), not select multiple files for one file field. Regards, David -Original Message- From: Eri

Question about upload multi files ???

2004-08-26 Thread Eric Chow
Hello, It is easy to use Struts to upload multi files, right? There is also an example in the struts example. My question is that, how can I dynamic add the file for upload? For example, there is only one button "Add file", when click on it, it will open the file browser for selecting which file

RE: Question about authentication

2004-08-26 Thread Leandro Melo
If you write a servlet filter that checks for any request if the user is authenticated and then set some httpsession data, you can easily handle this redirection thing of tomcat. That's how i do it. --- Joe Hertz <[EMAIL PROTECTED]> escreveu: > My gripe with container managed authentication fo

Re: Struts login with JAAS (Part 2)

2004-08-26 Thread Leandro Melo
You don't need to learn, it's an option. If you need a secure system though you may want to use some kind of authentication and authorization service. You can learn just a little of JAAS which is enough to use container managed security, or you can write your own security mechanism (using or not ja

RE: Question about authentication

2004-08-26 Thread Joe Hertz
My gripe with container managed authentication for Tomcat was the inability to have a login page I could show the user myself (it redirected the user to one, but showing one yourself wasn't possible). I would have used it myself if it did what I wanted. :-/ Your point is bigger than Container Mang

Re: Struts login with JAAS (Part 2)

2004-08-26 Thread struts Dude
Is it really necessary to learn JAAS in order to authenticate users in complex J2EE systems?? More API to learn, more complication and headache. I would try to get away with it if I can. Regards - Original Message - From: "Leandro Melo" <[EMAIL PROTECTED]> To: "struts jakarta" <[EMAIL P

Re: Question about authentication

2004-08-26 Thread struts Dude
Thanks Joe. Geee I wander why someone would advocate for container managed security since it's not portable between servers. :D - Original Message - From: "Joe Hertz" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Friday, August 27, 2004 3:02 PM Subject:

Re: JSTL and Struts Tags

2004-08-26 Thread Can Zheng
Hi Bill, Make sure you have activated El evaluation. My suggestion: add "<%@ page isELIgnored="false"%>" on top of your JSP file. This precedes any settings in the web.xml file BTW, this script is OK, at least it works on my machine. On Thu, 26 Aug 2004 17:30:03 -0400, Bill Taylor <[EMAIL PROTE

RE: Question about authentication

2004-08-26 Thread Joe Hertz
Take a look at http://www.securityfilter.org > Can u show me some links of tutorial on how to authenticate > users using > servlet filter?? > > I think servlet filter may be the most portable way for > authenticating user > since declarative authentication on web.xml is dependent on Tomcat.

Re: Question about authentication

2004-08-26 Thread struts Dude
- Original Message - From: "Emmanouil Batsis" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, August 26, 2004 12:57 AM Subject: Re: Question about authentication > I usually perform complex authentication/authorization related checks in > a servl

Re: Question about authentication

2004-08-26 Thread struts Dude
- Original Message - From: "David Suarez" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, August 27, 2004 2:35 AM Subject: RE: Question about authentication > My question is, does it really matter? Does it really represent a > security issue? Umm

Which is better? Auto validate or Manual validate?

2004-08-26 Thread Gao Ye Wei
Hi, all: Which validate method is better? Declare the validate conditions in the validation.xml or override the ActionForm.validate()?Thanks for your respose! Best regards! Gao Yewei Email: [EMAIL PROTECTED] - T

Re: [OT] File IO

2004-08-26 Thread Wendy Smoak
From: "Barnett, Brian W." <[EMAIL PROTECTED]> > Can someone point me to, or show me some sample java code, that opens, > reads, writes files using the relative path of the web application? What happens if you're running out of an un-exploded war file? There may not *be* a relative path to the web

Re: date parsing/validation...newbie 23/Jan/2004 and 23/JAN/2004

2004-08-26 Thread O. Oke
Thanks for your advice, I will do as you suggested. I am confident that this will work. However, I am unable to test it straight away because I have just come accross another unrelated problem. Regards. Ola. --- Erik Weber <[EMAIL PROTECTED]> wrote: > Hmm, sorry, I don't use client-side f

Re: [OT] File IO

2004-08-26 Thread jthompson
Brian, Not exactly what you're after, but close. The following code creates a directory called 'home' in the root directory of a context. (Class 'File' can be used for manipulating directories as well as files) // create home directory if none String homedirName=serv

[OT] File IO

2004-08-26 Thread Barnett, Brian W.
Hello, Can someone point me to, or show me some sample java code, that opens, reads, writes files using the relative path of the web application? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Problems with Struts - newbie

2004-08-26 Thread "Sebastião Carlos Santos"
I am starting to work with struts, however I come facing some problems that I will describe to follow: I have the following code in the archive index.jsp <%@ taglib uri="/WEB-INF/tags/struts/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/tags/struts/struts-bean.tld" prefix="bean" %

Re: date parsing/validation...newbie 23/Jan/2004 and 23/JAN/2004

2004-08-26 Thread Erik Weber
Hmm, sorry, I don't use client-side form validation. For one, I found that the scripts generated by the Validator plugin measured 38K, which is ridiculous. This is my validation.xml config for a date field that I tried for you: datePatternStrict dd/MMM/ I tested it

Re: date parsing/validation...newbie 23/Jan/2004 and 23/JAN/2004

2004-08-26 Thread Research labs
Erik, I have just tried datePatternStrict; the client side validator now tells me that 23/Jan/2004 and 23/JAN/2004 are not dates. Thank you. Ola. --- Erik Weber <[EMAIL PROTECTED]> wrote: > Try "datePatternStrict" as the var-name instead of > "datePattern". > > Erik > > > Research labs

Re: date parsing/validation...newbie

2004-08-26 Thread Research labs
Thanks Erik, 'would do so. --- Erik Weber <[EMAIL PROTECTED]> wrote: > Try "datePatternStrict" as the var-name instead of > "datePattern". > > Erik > > > Research labs wrote: > > >Hi, > > > >Please help me. > > > >I am trying to force users to enter dates in the > >format 23/JAN/2003, ther

JSTL and Struts Tags

2004-08-26 Thread Bill Taylor
I haven't been successful with using the tag and using this output value within a Stuts tag. The variable "engineTest" (below) does not seem to output correctly as a boolean value to the tag. However, as a test, I can succesfully use the scriptlet variable "val" which invokes the disable attribu

Re: can a non struts application be called from inside stuts application.

2004-08-26 Thread Erik Weber
ActionForward forward = mapping.findForward("LegacyServlet"); String path = forward.getPath(); path += "?param=value"; return new ActionForward(path); Erik Shilpa Nalgonda wrote: The old servlets takes lots of parameters, how and where can i pass those parameters in struts config... -Original M

RE: can a non struts application be called from inside stuts application.

2004-08-26 Thread Shilpa Nalgonda
The old servlets takes lots of parameters, how and where can i pass those parameters in struts config... -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow Sent: Thursday, August 26, 2004 1:59 PM To: [EMAIL PROTECTED] Subject: Re: can a non struts application

Re: How to stop the first validation when a web page first displays?

2004-08-26 Thread Shyam Anand
Hi, If you are doing validation in the validate() method of your Action Form, just check for "submit" action inside the method. i.e, public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { if( method.equals("submit")) { //do validation

Re: date parsing/validation...newbie

2004-08-26 Thread Erik Weber
Try "datePatternStrict" as the var-name instead of "datePattern". Erik Research labs wrote: Hi, Please help me. I am trying to force users to enter dates in the format 23/JAN/2003, therefore, I have the setting below in the validator.xml. The maxlength bit works, but date parsing does not wor

Re: Back Button

2004-08-26 Thread struts lover
Hi, I removed the POST. And used the GET method. Now it works. Thanks everyone. :) --- Hubert Rabago <[EMAIL PROTECTED]> wrote: > The browser tells you the page has expired because > you're trying to > get to a page that was produced by doing a POST. > The browser won't > re-POST form informa

Re: Back Button

2004-08-26 Thread Jason King
Comment all those out, and your problem should go away. Jim Barrows wrote: -Original Message- From: struts lover [mailto:[EMAIL PROTECTED] Sent: Thursday, August 26, 2004 12:47 PM To: Struts Users Mailing List Subject: RE: Back Button Hi, I have the following settings in my jsp. respon

Re: Back Button

2004-08-26 Thread Hubert Rabago
The browser tells you the page has expired because you're trying to get to a page that was produced by doing a POST. The browser won't re-POST form information as a security precaution. If you want to be able to get around this, use GET in your search. On Thu, 26 Aug 2004 12:14:12 -0700 (PDT), s

RE: date parsing/validation...newbie

2004-08-26 Thread Jim Barrows
> -Original Message- > From: struts lover [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 26, 2004 12:49 PM > To: Struts Users Mailing List > Subject: Re: date parsing/validation...newbie > > > Hi, > I think it should be > > dd/MM/ > instead of > > dd/MMM/ He wants the mon

RE: Back Button

2004-08-26 Thread Jim Barrows
> -Original Message- > From: struts lover [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 26, 2004 12:47 PM > To: Struts Users Mailing List > Subject: RE: Back Button > > > Hi, > I have the following settings in my jsp. > > response.setHeader("Cache-Control", "no-cache"); > response

Re: date parsing/validation...newbie

2004-08-26 Thread struts lover
Hi, I think it should be dd/MM/ instead of dd/MMM/ --- Research labs <[EMAIL PROTECTED]> wrote: > Hi, > > Please help me. > > I am trying to force users to enter dates in the > format 23/JAN/2003, therefore, I have the setting > below in the validator.xml. The maxlength bit > work

RE: Back Button

2004-08-26 Thread struts lover
Hi, I have the following settings in my jsp. response.setHeader("Cache-Control", "no-cache"); response.setHeader("Pragma", "no-cache"); response.setDateHeader("max-age", 0); response.setDateHeader("Expires", 0); And the error is : Warning: Page has Expired The page you requested was created usi

Re: date parsing/validation...newbie

2004-08-26 Thread Research labs
Hi, Please help me. I am trying to force users to enter dates in the format 23/JAN/2003, therefore, I have the setting below in the validator.xml. The maxlength bit works, but date parsing does not work, for example the validator does not complain if I enter an invalid date such as 23/JJJ/199

RE: Back Button

2004-08-26 Thread Jim Barrows
> -Original Message- > From: struts lover [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 26, 2004 12:14 PM > To: Struts Users Mailing List > Subject: RE: Back Button > > > Hi :), > > It gives me the following error. > > Warning: Page has Expired Starting with the obvious: Do you

RE: Back Button

2004-08-26 Thread struts lover
Hi :), It gives me the following error. Warning: Page has Expired Thanks. --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: struts lover [mailto:[EMAIL PROTECTED] > > Sent: Thursday, August 26, 2004 12:04 PM > > To: Struts Users Mailing List > > Subje

RE: Back Button

2004-08-26 Thread Jim Barrows
> -Original Message- > From: struts lover [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 26, 2004 12:04 PM > To: Struts Users Mailing List > Subject: Back Button > > > Hi, > I am developing a web application. There is a search > page where user enters a search parameter. Then it > d

Back Button

2004-08-26 Thread struts lover
Hi, I am developing a web application. There is a search page where user enters a search parameter. Then it displays search results. Each search result has a hyperlink to view its details. But when I click, on the back button, it gives me error. Any one knows why and how to solve it. Thanks.

RE: can a non struts application be called from inside stuts appl ication.

2004-08-26 Thread Pingili, Madhupal
In Struts Action, the Servlet URL is prepared like this: String requestUrl = request.getRequestURL().toString(); String webAppUrl = requestUrl.substring(0, requestUrl.lastIndexOf("/") ); String servlet1Url = webAppUrl + "/servlet1"; This URL is passed to the method getUrlResponse(String url) that

Re: can a non struts application be called from inside stuts application.

2004-08-26 Thread Bill Siggelkow
I wouldn't use HttpClient for this if what you want to do is call the business logic called by the servlets -- particularly if you have access to the source code of the servlets. My 3 cents ... Shilpa Nalgonda wrote: from where do i get this package, and where exactly will doPost method go...i h

RE: can a non struts application be called from inside stuts appl ication.

2004-08-26 Thread Pingili, Madhupal
Check this site: http://jakarta.apache.org/commons/httpclient/ --- Reddy Pingili > -Original Message- > From: Shilpa Nalgonda [SMTP:[EMAIL PROTECTED] > Sent: Thursday, August 26, 2004 2:31 PM > To: Struts Users Mailing List > Subject: RE: can a non struts application be ca

Re: Help with Cactus StrutsTestCase

2004-08-26 Thread Bill Siggelkow
Mick, I don't think I have explicitly tested LookupDispatchAction under CactusStrutsTestCase but I see no reason why it shouldn't work -- Here are some suggestions: - Check the log files, etc. - Determine if you can test a conventional action (just dummy one up if you don't have one) - Get out y

RE: can a non struts application be called from inside stuts application.

2004-08-26 Thread Shilpa Nalgonda
from where do i get this package, and where exactly will doPost method go...i have never used httpClient Package, so can you point me to the correct resource.. -Original Message- From: Pingili, Madhupal [mailto:[EMAIL PROTECTED] Sent: Thursday, August 26, 2004 2:17 PM To: 'Struts Users Mai

RE: can a non struts application be called from inside stuts application.

2004-08-26 Thread Shilpa Nalgonda
No the three servlets do not forward each other in the old application, now there is a new requirement where i have to combine all the 3 servlets functionality. So i guess i can write helper classes as u suggested. -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Thurs

Re: [OT-humor] What does GA mean?

2004-08-26 Thread Erik Weber
When Friday graciously arrives, I have no doubt there will be gamesmanship aplenty around here, with so many gifted aficionados of mail-list wordplay. But I'm hoping to get away with a few gratuitous acrostics of my own; I ain't generally afeard o' even the foremost glossal athlete. Erik Emman

RE: can a non struts application be called from inside stuts appl ication.

2004-08-26 Thread Pingili, Madhupal
How about using HTTP Client package like this: public static String getUrlResponse(String url) { String result = null; HttpClient client = new HttpClient(); // Create a method instance. HttpMethod method = new GetMethod(url); // Execute the method. try {

RE: can a non struts application be called from inside stuts application.

2004-08-26 Thread Jim Barrows
> -Original Message- > From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 26, 2004 11:03 AM > To: Struts Users Mailing List > Subject: RE: can a non struts application be called from inside stuts > application. > > > O.k thats great, but i have make a 3 different s

Re: How to stop the first validation when a web page first displays?

2004-08-26 Thread Research labs
As Joe Germuska advised, it is more conventional to to have two different Actions mappings. set validation=false in one and use it for the displaying the JSP the first time. Use the other Actions mappings (with validation set to true) for subsequent displays of the JSP. Ola. the --- Bryce Fisc

RE: Help with Cactus StrutsTestCase

2004-08-26 Thread Mick.Knutson
Yes: /** * This is the method that defines the different button text items in a hashMap * for the BaseLookupDispatchAction to use. * * TODO: Need to externalize this, so these are not hard coded. */ protected Map getKeyMethodMap() { log.info( "getKeyM

RE: can a non struts application be called from inside stuts application.

2004-08-26 Thread Shilpa Nalgonda
O.k thats great, but i have make a 3 different servlet calls one by one in my action class. Like gotoservlet1 then gotoServlet2 and then gotoServlet3, how can i achieve that in one action forward... -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Thursday, August 26,

RE: can a non struts application be called from inside stuts application.

2004-08-26 Thread Jim Barrows
> -Original Message- > From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 26, 2004 10:53 AM > To: Struts Users Mailing List > Subject: RE: can a non struts application be called from inside stuts > application. > > > > > Servlets are accessed by URLs, action clas

Re: can a non struts application be called from inside stuts application.

2004-08-26 Thread Bill Siggelkow
Well, you can't call a servlet from an Action with a Java method call but you can easily forward the request to the servlet from the action. I suggest creating a local or global forward element for the servlet. Then in the MyAction.execute() ... // business logic //... // now forwar

RE: can a non struts application be called from inside stuts application.

2004-08-26 Thread Shilpa Nalgonda
Servlets are accessed by URLs, action classes forward to URLs. So you can forward to them, but call them directly akin to a method call... I don't think so... not without a lot of handwaving and chanting anyway. >> so you mean to say that i have to rewrite my old servlet class into an action cl

Re: Help with Cactus StrutsTestCase

2004-08-26 Thread Bill Siggelkow
Is your LookupDispatchAction implementing getKeyMethodMap()? [EMAIL PROTECTED] wrote: I am trying to write test cases for my Struts app, but can't seem to figure it out. I have used the examples, but I don't seem to get the correct outcome when I run them. I am using LookupDispatchAction's exclusiv

RE: can a non struts application be called from inside stuts application.

2004-08-26 Thread Jim Barrows
> -Original Message- > From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 26, 2004 10:37 AM > To: Struts Users Mailing List > Subject: can a non struts application be called from inside stuts > application. > > > i have a shopping cart struts application, when upd

can a non struts application be called from inside stuts application.

2004-08-26 Thread Shilpa Nalgonda
i have a shopping cart struts application, when update button of a jsp is clicked, some action is performed and after the successful excution of that action, a servlet which takes certain parameters should be called from the action class. The servlets which i am talking about are non-struts based

Re: More than 5 Arguments

2004-08-26 Thread James Mitchell
More than 5 ArgumentsIf you really need more than 5, then combine them. I would recommend doing this in your action prior to forwarding to the jsp. messages.properties --- global.msg.final = Please {0} and click {1} when you are done. global.msg.finish = finish global.msg1 = ente

More than 5 Arguments

2004-08-26 Thread Bharat Bhushan
Title: More than 5 Arguments Hi My question is how to print a message on the page through resource bundle which has more than 5 arguments. Tag support only 4 arguments. Any help with example will be appreciable. Thanks Bharat ###

RE: Customizable View For A Given Action

2004-08-26 Thread Pilgrim, Peter
You would need to write a view handler to handle in direction. Basically a wrapper framework around the basic ServletRequest.getRequestDispatcher() code. This would produce one view per one page. If you are wanted to customise what is inside the view then that is different, e.g. skinning controls

Re: How to stop the first validation when a web page first displays?

2004-08-26 Thread Bryce Fischer
This is similar to the issue I had last night. What was suggested to me, and it worked, was to turn automatic validation off by specifying validate=false in the action mapping, and manually validating in my DispatchAction. PC Leung wrote: The web page displays at the first time with the followi

Re: Help with Cactus StrutsTestCase

2004-08-26 Thread Bill Siggelkow
Check out "Struts The Complete Reference" by James Holmes -- I hear the chapter on Testing absolutely ROCKS ;) Bill Siggelkow Leandro Melo wrote: Sorry for the confusing sentence. I meant to say that i don`t know the answer, but i`d like to use the opportunity and also ask a basic question. Whe

RE: Help with Cactus StrutsTestCase

2004-08-26 Thread Mick.Knutson
I have a Delegate pattern layer that all actions communicate with. But this action in particular, does not need anything except to create a POJO and add it to session. -Original Message- From: Leandro Melo [mailto:[EMAIL PROTECTED] Sent: Thursday, August 26, 2004 9:23 AM To: Struts User

Re: Help with Cactus StrutsTestCase

2004-08-26 Thread Leandro Melo
Sorry for the confusing sentence. I meant to say that i don`t know the answer, but i`d like to use the opportunity and also ask a basic question. Where can i find a good tutorial do test struts applications? Is it true that for good testing the actions must delegate their work to POJOs ?? ---

Re: Instance variable is not recommended to be used in Action class

2004-08-26 Thread Bill Siggelkow
IIRC, if you use the Struts integration included with Spring (DelegatingProxyAction) you can use instance variables in your actions. Others more wiser than I may can clarify Limitations known Bill Joe Germuska wrote: Action classes are pooled, not created anew for each request. Therefore, use of

Re: Re: Instance variable is not recommended to be used in Action class

2004-08-26 Thread Craig McClanahan
On Thu, 26 Aug 2004 11:01:33 -0500, Joe Germuska <[EMAIL PROTECTED]> wrote: > Action classes are pooled, not created anew for each request. > Therefore, use of instance variables runs a risk of synchronization > problems, in much the same way as does the use of instance variables > in servlets. >

Re: Help with Cactus StrutsTestCase

2004-08-26 Thread Leandro Melo
Doesn`t know the answer, where can i find a good tutorial do test struts applications? Is it true that for good testing the actions must delegate their work to POJOs ?? --- [EMAIL PROTECTED] escreveu: > I am trying to write test cases for my Struts app, > but can't seem to figure it out. > I h

Help with Cactus StrutsTestCase

2004-08-26 Thread Mick.Knutson
I am trying to write test cases for my Struts app, but can't seem to figure it out. I have used the examples, but I don't seem to get the correct outcome when I run them. I am using LookupDispatchAction's exclusively. So here is the method I am testing: == public void

Re: Instance variable is not recommended to be used in Action class

2004-08-26 Thread Joe Germuska
Action classes are pooled, not created anew for each request. Therefore, use of instance variables runs a risk of synchronization problems, in much the same way as does the use of instance variables in servlets. It seems as though there's not a whole lot of gain from pooling Action classes, bu

Re: How to stop the first validation when a web page first displays?

2004-08-26 Thread Joe Germuska
At 11:13 PM +0800 8/26/04, PC Leung wrote: Can I set validation on or off in ValidatorForm dynamically? In the first place, set it off. Later on, set it on. Not in ValidatorForm, although you could certainly subclass it or write your own subclass of ActionForm which chose whether to validate or n

Re: How to stop the first validation when a web page first displays?

2004-08-26 Thread Erik Weber
If you are using ValidatorForm with declarative form validation, I think you are going to have to do it this way, or similar: 1) Define your "add" form at the top of struts-config.xml (name=userProfileForm, type=YourFormType) 2) Define two action mappings, the first being a "setup" or "view" ac

Re: Is struts interfering with Runtime.exec() calls?

2004-08-26 Thread Christian Riedel
On 26.08.2004 17:28, James Mitchell wrote: What container are you using? Apache Tomcat 5.0.19 What user or process is kicking off the jvm? My normal system-user-account (sarek) is running Tomcat. So running the JVM as well. What permissions and/or groups does that user or process have or belong t

Re: Customizable View For A Given Action

2004-08-26 Thread Wendy Smoak
From: "Marty Jones" <[EMAIL PROTECTED]> > I was wondering if Struts supports a way of supporting customized views for a > given action? For instance, a particular group of users may have a different > look and feel to a given web application that another group of users. Looking > at the Struts con

Re: Customizable View For A Given Action

2004-08-26 Thread James Mitchell
What you are wanting can be implemented 100 different ways, with 150 different approaches. Struts does not have any direct support for doing this. There are 3rd party tools out there for doing this. If I had to do it, I would use a customized Tiles layout. -- James Mitchell Software Engineer

Customizable View For A Given Action

2004-08-26 Thread Marty Jones
I was wondering if Struts supports a way of supporting customized views for a given action? For instance, a particular group of users may have a different look and feel to a given web application that another group of users. Looking at the Struts configuration file, it seems that you have to spec

Re: Is struts interfering with Runtime.exec() calls?

2004-08-26 Thread James Mitchell
What container are you using? What user or process is kicking off the jvm? What permissions and/or groups does that user or process have or belong to? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "Chris

Re: SV: strange behavior: bug or me?

2004-08-26 Thread Michael McGrady
Paul McCulloch wrote: No disrespect intended - but I'd be inclined to look at my own code/environment before I started blaming the struts taglibs! No disrespect intended in reply either, Paul, but of course I did that. I am not a blooming idiot or a self-important, egomanical, twit. I have n

Why not use MappingDispatchAction in 1.2? Was: how to use DispatchAction?

2004-08-26 Thread Nathan Maves
On a bit of a side note... I would suggest using MappingDispatchAction in the 1.2 builds. This has made the use of dispatch actions much much easier. It allows you to move the "method" parameter into the action mapping itself. This way you do not need to send the parameter in the request. Na

Re: Instance variable is not recommended to be used in Action class

2004-08-26 Thread Hubert Rabago
As far as instances go, you should treat an Action the way you would a servlet. The same instance is reused by Struts in responding to multiple requests. Because of this, you can easily get conflicting data when you use an Action instance variable for purposes specific to a certain request. For e

R: Instance variable is not recommended to be used in Action class

2004-08-26 Thread disalle
The problem is related to Thread problem in the servlet. Try to see http://www.javaworld.com/javaworld/jw-07-2004/jw-0712-threadsafe.html BR /Amleto -Messaggio originale- Da: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED] Inviato: giovedì 26 agosto 2004 17.09 A: Struts Users Mailing List

Re: How to stop the first validation when a web page first displays?

2004-08-26 Thread PC Leung
Can I set validation on or off in ValidatorForm dynamically? In the first place, set it off. Later on, set it on. On Thu, 26 Aug 2004 11:05:30 -0400, Erik Weber <[EMAIL PROTECTED]> wrote: > Well, that looks fine -- /addUserProfile is the path the user will > access to submit the form, but what pa

Re: Is struts interfering with Runtime.exec() calls?

2004-08-26 Thread Christian Riedel
James, On 26.08.2004 16:48, James Mitchell wrote: Short answer to your question.no, Struts has nothing to do with this. I can't understand how someone would take a week to try and get this working in JSP page, and even go so far as to write this email and send it to this list without first tryi

Instance variable is not recommended to be used in Action class

2004-08-26 Thread Zhang, Larry \(L.\)
Can some one tell me why the above is correct? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to stop the first validation when a web page first displays?

2004-08-26 Thread PC Leung
Same path and single form. On Thu, 26 Aug 2004 11:05:30 -0400, Erik Weber <[EMAIL PROTECTED]> wrote: > Well, that looks fine -- /addUserProfile is the path the user will > access to submit the form, but what path does your user access to view > the blank form in the first place? > > Erik > > >

Re: How to stop the first validation when a web page first displays?

2004-08-26 Thread Erik Weber
Well, that looks fine -- /addUserProfile is the path the user will access to submit the form, but what path does your user access to view the blank form in the first place? Erik PC Leung wrote: How can I define it in struts-config.xml as you suggest. my current fragment of struts-config.xml is t

Re: How to stop the first validation when a web page first displays?

2004-08-26 Thread PC Leung
How can I define it in struts-config.xml as you suggest. my current fragment of struts-config.xml is the following. On Thu, 26 Aug 2004 10:55:13 -0400, Erik Weber <[EMAIL PROTECTED]> wrote: > Is validation turned on in the action mapping for your setup action?

Re: How to stop the first validation when a web page first displays?

2004-08-26 Thread Erik Weber
Is validation turned on in the action mapping for your setup action? If you are using the same form bean for both setup and save actions, the action mappings should have validation turned off for the former and on for the latter. Erik PC Leung wrote: The web page displays at the first time with

How to stop the first validation when a web page first displays?

2004-08-26 Thread PC Leung
The web page displays at the first time with the following error. java.lang.NullPointerException java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1108) java.text.DateFormat.parse(DateFormat.java:333) com.erp.quotation.AddUserProfileForm.getSqlJoinDate(AddUserProfileFo

Re: Is struts interfering with Runtime.exec() calls?

2004-08-26 Thread James Mitchell
Short answer to your question.no, Struts has nothing to do with this. I can't understand how someone would take a week to try and get this working in JSP page, and even go so far as to write this email and send it to this list without first trying this (almost)verbatim in a simple test class.

RE: Question about authentication

2004-08-26 Thread David Suarez
My question is, does it really matter? Does it really represent a security issue? The structure of struts jsp's are generally that they read the values from the "Form" object. So if someone goes directly to a jsp, they get a jsp. The jsp will try to read the values from the "form" object that

RE: SV: strange behavior: bug or me?

2004-08-26 Thread Paul McCulloch
No disrespect intended - but I'd be inclined to look at my own code/environment before I started blaming the struts taglibs! When I get into this sort of position I tend to remove all traces of my jsp from the container (including the generated servlet etc), redeploy & restart the container. If th

RE: Question about authentication

2004-08-26 Thread Paul McCulloch
That's my approach too - the JSPs will either break or do nothing if called directly. Pau; > -Original Message- > From: David Suarez [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 26, 2004 2:21 PM > To: Struts Users Mailing List > Subject: RE: Question about authentication > > > I m

Re: Struts 1.2.x

2004-08-26 Thread James Mitchell
GA is short for General Availability which describes the perceived quality of a certain piece of software. Alpha Beta Release Candidate etc -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "David Durham"

Re: SV: strange behavior: bug or me?

2004-08-26 Thread Michael McGrady
[EMAIL PROTECTED] wrote: Hi Have you tried to convert this into JSTL and use c:if ? Yah, I guess it is time to make that transition. Do you think that JSTL is more reliable? I am mainly trying to find out at this time if it is me (I am pretty rigorous in my coding) or the tag. I usually don'

Re: [OT-humor] What does GA mean?

2004-08-26 Thread Emmanouil Batsis
Bill Siggelkow wrote: Giant Aardvark (duh!) Hey it's not friday yet. Go Away ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts 1.2.x

2004-08-26 Thread Nicolas De Loof
General Availability: http://struts.apache.org/acquiring.html > Ted Husted wrote: > > > GA grade > > Pardon my ignorance; what does GA stand for? > > I assume that it's not General Admission? > > > Thanks, > > Dave > > > >

[OT-humor] What does GA mean?

2004-08-26 Thread Bill Siggelkow
Giant Aardvark (duh!) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: how to reset form

2004-08-26 Thread Qinjian Jian
I have to call reset method explicitly if you have no choice Tim Jian -Original Message- From: Ruben Cepeda [mailto:[EMAIL PROTECTED] Sent: Thursday, August 26, 2004 9:42 AM To: [EMAIL PROTECTED] Subject: RE: how to reset form Hi Sabastian, I came across the same problem when I fir

Re: Struts 1.2.x

2004-08-26 Thread David Durham
Ted Husted wrote: GA grade Pardon my ignorance; what does GA stand for? I assume that it's not General Admission? Thanks, Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

  1   2   >