Re: Advise How to set alternative raow background color

2005-01-26 Thread Kishore Senji
On Thu, 27 Jan 2005 12:49:00 +0530, senthil Kumar <[EMAIL PROTECTED]> wrote: > Hi all. > > I am getting more than 100 regards from database and print in a JSP by 15 > regards per Page. > Its is working fine. > Now i want to set alternative Row background color. I print all the rows > between

RE: Struts Security

2005-01-26 Thread hermod . opstvedt
Hi Take a look at SecurityFilter - http://securityfilter.sourceforge.net/ Works like a charm with Tomcat and JDBC realms. Then you do REAL declarative security - No coding needed. Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, January 27, 200

Advise How to set alternative raow background color

2005-01-26 Thread senthil Kumar
Hi all. I am getting more than 100 regards from database and print in a JSP by 15 regards per Page. Its is working fine. Now i want to set alternative Row background color. I print all the rows between the in Struts. any one help me. Here i am putting my code also. welcome anyone to giv

Re: Trying to understand Validate Date

2005-01-26 Thread j o s h !
thanks for the advise . much appreciated. josh On Wed, 26 Jan 2005 19:14:06 +, Ruben Cepeda <[EMAIL PROTECTED]> wrote: > Hello Josh, > > I have a thought about your problem with the "exception" thrown by Tomcat at > the command line. The first is that it might not be an exception it might

Re: Complex validation - comparing dates

2005-01-26 Thread Kishore Senji
On Wed, 26 Jan 2005 20:37:08 -0800 (PST), Norris Shelton <[EMAIL PROTECTED]> wrote: > I'm trying to ensure that the start date is less than the end > date. > > > > >test >((endDate > startDate) or (*this* > == null

Re: Tomcat in Virtual hosting environment

2005-01-26 Thread Andrew Hill
http://www.catb.org/~esr/faqs/smart-questions.html http://www.catb.org/~esr/faqs/smart-questions.html#forum http://www.catb.org/~esr/faqs/smart-questions.html#beprecise http://www.catb.org/~esr/faqs/smart-questions.html#explicit http://www.catb.org/~esr/faqs/smart-questions.html#id3002537 http://ww

Re: WEB-INF and non-JSP files

2005-01-26 Thread Martin Wegner
Thanks! --- Kishore Senji <[EMAIL PROTECTED]> wrote: > The primary purpose of storing JSP's under WEB-INF/ is to prevent user > to access them directly instead of going to an Action which might be > setting something which is required for the workflow, Authentication, > Authorization etc. whic

Re: Regarding LOGIC tags

2005-01-26 Thread Kishore Senji
On Thu, 27 Jan 2005 10:48:47 +0530, Krishna Mohan Radhakrishnan <[EMAIL PROTECTED]> wrote: > > Hi all, > I have a very simple doubt on struts equal tag. > > The tag is like this > > Here is one way: > > Here planDesc1 and planDesc2 are both beans of the same class planModel. > > Can I h

Re: WEB-INF and non-JSP files

2005-01-26 Thread Kishore Senji
The primary purpose of storing JSP's under WEB-INF/ is to prevent user to access them directly instead of going to an Action which might be setting something which is required for the workflow, Authentication, Authorization etc. which avoids putting that sort of logic in the JSP itself. I don't se

Re: WEB-INF and non-JSP files

2005-01-26 Thread Martin Wegner
Right. But what about non-JSP files under WEB-INF? Is there a trick to getting Struts to access them? Or is there no point in putting non-JSP files under WEB-INF? --Marty --- Dakota Jack <[EMAIL PROTECTED]> wrote: > All Struts Actions can access jsps within WEB-INF. I put everything > exce

Re: WEB-INF and non-JSP files

2005-01-26 Thread Dakota Jack
All Struts Actions can access jsps within WEB-INF. I put everything except the index page there, and my index page is merely a forward. Jack On Wed, 26 Jan 2005 21:59:53 -0800 (PST), Martin Wegner <[EMAIL PROTECTED]> wrote: > > I recently saw a post about moving all web app files underneath th

Tomcat in Virtual hosting environment

2005-01-26 Thread Kumar deepak
How to intall tomcat in virtual hosting environment. Regards Deepak Kumar __ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo

Re: PlugIn and the base URL

2005-01-26 Thread Craig McClanahan
On Wed, 26 Jan 2005 13:32:50 -0500, David G. Friedman <[EMAIL PROTECTED]> wrote: > A Devil's Advocate says: > > I agree with the theory that the webapp Context name within the application > server "/myapp" should be available to the servlet but not the > host/port/etc. The assumption that a parti

WEB-INF and non-JSP files

2005-01-26 Thread Martin Wegner
I recently saw a post about moving all web app files underneath the WEB-INF directory. Unfortunately the search mechanism on the Struts web site appears to be unavailable and I can't find those emails. So I understand why some would put Javascript, JSP, images, etc. under WEB-INF. But if you do

Re: PlugIn and the base URL

2005-01-26 Thread Martin Wegner
Thanks to everybody who contributed to this topic. There appears to be no foolproof solution to the particular problem that I have. I think I will have to go with an external installer/config program. Thanks again to everybody. --Marty --- Dakota Jack <[EMAIL PROTECTED]> wrote: > Anyway, if

RE: Struts Security

2005-01-26 Thread mohan.radhakrishnan
I think the logic:present tag will allow access to any of the roles mentioned. Mohan -Original Message- From: Tim Christopher [mailto:[EMAIL PROTECTED] Sent: Thursday, January 27, 2005 9:41 AM To: Struts Users Mailing List Subject: Re: Struts Security Just a quick question... What is

Re: How I decided to handle the dynamic titles/label problem with Tiles

2005-01-26 Thread Dakota Jack
On Wed, 26 Jan 2005 16:12:17 -0500, Rick Reumann <[EMAIL PROTECTED]> wrote: > If someone has a better way to handle this, please let me know. I don't know if this is "better" or not, but I really prefer having some sort of "module" or "area" or whatever you want to call it that handles state for

Regarding LOGIC tags

2005-01-26 Thread Krishna Mohan Radhakrishnan
Hi all, I have a very simple doubt on struts equal tag. The tag is like this Here planDesc1 and planDesc2 are both beans of the same class planModel. Can I have a comparison with 2 beans of the same class. I heard that logic equal comparison has to be done to a constant valu. Any other metho

Re: Complex validation - comparing dates

2005-01-26 Thread Erik Weber
As far as I know you need to implement your own pluggable validator (not difficult) -- unless Struts has a new feature that automates this (I don't know of one but I'm not using the latest version). Erik Norris Shelton wrote: I'm trying to ensure that the start date is less than the end date.

Complex validation - comparing dates

2005-01-26 Thread Norris Shelton
I'm trying to ensure that the start date is less than the end date. test ((endDate > startDate) or (*this* == null)) I already have validations to ensure that they are valid dates

Re: Struts Security

2005-01-26 Thread Tim Christopher
Just a quick question... What is gained by using code like this: >>> String[] roles = mapping.getRoleNames(); if(roles == null || roles.length == 0) return true for(int i=0; i? Or is that a check for all roles: roleA, roleB, and roleG? Tim On Wed, 26 Jan 2005 20:27:22 -070

Re: Struts Security

2005-01-26 Thread Nic Holbrook
I forgot to mention the reason I did this was because we already had a security mechanism in place and didn't have the liberty of using realms on the web or anything like that. It had to be a custom configuration. Nic Holbrook wrote: I kind of set our security up before the struts menu was in p

Re: Struts Security

2005-01-26 Thread Nic Holbrook
I kind of set our security up before the struts menu was in place. What I have done that seems to work well so far is extend the Action class with a SecureAction class that validates the users role before it lets the user into an action. The execute method actually validates and calls an abst

Re: Is there a way to determine if there is an error message for a specific property

2005-01-26 Thread Niall Pemberton
This was added in Struts 1.2.6 - you can specify errorStyle and errorStyleClass on your form fields to achieve this. Details of how to here: http://www.niallp.pwp.blueyonder.co.uk/strutshighlight.html Niall - Original Message - From: "Norris Shelton" <[EMAIL PROTECTED]> To: "Strutss" S

Is there a way to determine if there is an error message for a specific property

2005-01-26 Thread Norris Shelton
I wanted to change the background color of fields that have a validation error to red. Is there something that I can check to see if there is a message related to a specific field? = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisES

Re: Losing changed form value

2005-01-26 Thread William Stranathan
Can't promise this, but make SURE your Action Mappings specifically define the scope of your form bean. My HUNCH is that the one that displays the first time is in session scope, but your submit action is defining one in request scope. w Christopher Loschen wrote: Hi all, The action classes do

Re: html taglib usage

2005-01-26 Thread William Stranathan
Is it entirely necessary to use the Struts taglib for it? Wouldn't it be easier to use the JSTL (if available) or in a real pinch, the JSP syntax for bean access? Thorhauer, John (Contractor) wrote: Hi, Is it possible to use the struts html taglib from version 1.1 without using Struts? I would

Re: PlugIn and the base URL

2005-01-26 Thread Dakota Jack
Anyway, if an IP address is sufficient, and why wouldn't it be (?), then all you have to do is to provide a servlet to tell all machines that ask their IP address. That is simple. No? Jack On Wed, 26 Jan 2005 16:09:13 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote: > Since this is SOAP and a dyna

Losing changed form value

2005-01-26 Thread Christopher Loschen
Hi all, Sorry if this appears twice -- my last attempt hasn't made it after an hour, so I'm trying again. I'm working with a form called UserProfileForm which includes a property called email. I'm starting from a User Profile screen which displays the email address and offers a link to edit it. T

RE: html taglib usage

2005-01-26 Thread Karr, David
I don't think it's practical to do that. You would probably be better off just using the raw HTML elements, but using the JSTL to reference your bean values (and even the EL directly, if you have a JSP 2.0 container). > -Original Message- > From: Thorhauer, John (Contractor) > > Hi, >

Re: PlugIn and the base URL

2005-01-26 Thread Dakota Jack
Surely you can have your application issue the request once a SOAP knocking is heard? Jack On Wed, 26 Jan 2005 12:56:50 -0800 (PST), Martin Wegner <[EMAIL PROTECTED]> wrote: > David, > > Right. I cannot guarantee that any human will hit the web server before > an SOAP based application contact

Re: PlugIn and the base URL

2005-01-26 Thread Dakota Jack
Even if you did need to know it, why not get it at the first request and then cache it? Jack On Wed, 26 Jan 2005 16:59:17 +0100, Cedric Levieux <[EMAIL PROTECTED]> wrote: > > My Struts app contains an Axis-based SOAP service. The Struts app > > initializes the call dispatcher for the SOAP servi

Re: PlugIn and the base URL

2005-01-26 Thread Dakota Jack
Heck, I think this is one cut above a hack? ;-) Jack On Wed, 26 Jan 2005 07:21:52 -0800 (PST), Martin Wegner <[EMAIL PROTECTED]> wrote: > Frank, > > Yeah, that was the one hack that came to mind yesterday. It would > definitely work. If there is no alternative that is what I will have to > d

Re: PlugIn and the base URL

2005-01-26 Thread Dakota Jack
Since this is SOAP and a dynamic feature, wouldn't and IP address work as well, or better? Jack On Wed, 26 Jan 2005 07:12:03 -0800 (PST), Martin Wegner <[EMAIL PROTECTED]> wrote: > David, > > My Struts app contains an Axis-based SOAP service. The Struts app > initializes the call dispatcher fo

RE: PlugIn and the base URL

2005-01-26 Thread David G. Friedman
Marty, If you want to make major assumptions such as a) the client will always use port 80 AND b) the client will always use the same /whatever context name even when mapping through a web server to your Java application server, then this line in your plugIn.init() will solve your problems: url =

Re: [Very OT] Hypothetical challege

2005-01-26 Thread Larry Meadors
On Wed, 26 Jan 2005 14:40:11 -0800, Wiebe de Jong <[EMAIL PROTECTED]> wrote: > > If you don't like the performance hit of going to the database every time, > then add a plugin. When the application starts, the plugin will read all the > sessions from the database into memory. When the application

RE: [Very OT] Hypothetical challege

2005-01-26 Thread Wiebe de Jong
The simple answer is to store all your session data in a database, with a cookie value as the key. When the client connects, get the cookie value, read the session data from the database, do your stuff, update the database, and respond to the user. This will create a permanent session, which wil

Re: PlugIn and the base URL

2005-01-26 Thread Frank W. Zammetti
It sounds to me like you don't have much choice here, your going to need some sort of config file with the URL. I myself would prefer the suggestion I made about updating the WAR via batch/shell script. I think this would be the easiest for your clients, and gets around all the other problems

How I decided to handle the dynamic titles/label problem with Tiles

2005-01-26 Thread Rick Reumann
For those who care. The question I posed was how do people deal with the situation when using Tiles where they often need to create titles and or information for headers that is slightly dynamic. For example rather than simply have a Title or label that says... "User Selection" you might want

RE: html taglib usage

2005-01-26 Thread David G. Friedman
John, The name="" attribute works with many of the text fields. Forget using html:form, just type those in the old fashion tag way. Then, for most of your tags, at the name="..." attribute so the bean by that name will be obtained from scope (should check request then session automatically) and

RE: html taglib usage

2005-01-26 Thread Thorhauer, John (Contractor)
Yes. I am trying to use the html taglib. Here is a sample of what I am trying to do. The form is stored in the session with a name of "PreferencesForm": --- ---

Problem deploying to WebSphere

2005-01-26 Thread Daniel Kalcevich
I am currently trying to deploy a Struts 1.2.6 to a WSAD 5.0 Server. The application starts up correctly, but it appears the action mapping is not being picked up. I specify the following in the web.xml: action org.apache.struts.action.ActionServlet config

RE: PlugIn and the base URL

2005-01-26 Thread Martin Wegner
David, Right. I cannot guarantee that any human will hit the web server before an SOAP based application contacts the WS. So I am still stuck with the same problem: no access to a Request object until a human points their browser at the container. --Marty --- "David G. Friedman" <[EMAIL PROTE

RE: PlugIn and the base URL

2005-01-26 Thread David G. Friedman
Martin, Are you saying you can't even do my suggestion, which would only be required the very FIRST time the app is deployed? Further restarts or reboots, etc., wouldn't need that initial url with what I suggested. Not as long as you hooked the special first-time(only) url to hit the plugins' in

RE: html taglib usage

2005-01-26 Thread David G. Friedman
John, Which tags are you using? Have you added the name="..." attribute so it can lookup a bean in any scope by that name instead of trying to use an ActionForm bean? Regards, David -Original Message- From: Thorhauer, John (Contractor) [mailto:[EMAIL PROTECTED] Sent: Wednesday, January

Re: [OT] a java question

2005-01-26 Thread Rick Reumann
Erik Weber wrote the following on 1/26/2005 2:44 PM: It is useful to note that it is theoretically possible for two competing Threads to enter the setData method and get past the "if (! isInitialized)" statement before one of them changes the value to true, causing possible data corruption. This

Re: [OT] a java question

2005-01-26 Thread jlopez
Well, i put the main for the example... but you need the class Perro before you get the constant value i Hope some like this. Perro.setLoadMethod(theInitval); then su can obtain Perro.CONSTANT.uni.. Cordial Saludo John J López > Hi > how will this class work if there is no public sta

RE: PlugIn and the base URL

2005-01-26 Thread Martin Wegner
Yes, this is the scenario. The web container could change, the port number could change and the WAR filename could change. So the PlugIn needs to divine the URL completely at run time. Which is why it has stumped me to date. --Marty --- [EMAIL PROTECTED] wrote: > Well, I guess I made an ass

Re: [OT] a java question

2005-01-26 Thread PA
On Jan 26, 2005, at 21:34, Ashish Kulkarni wrote: how will this class work if there is no public static void main method and have to be initialized by some other class Hmmm... syntax error... question does not compute... What are you trying to do? Your original question was about setting and acces

RE: PlugIn and the base URL

2005-01-26 Thread Martin Wegner
This won't work becuase Struts is configuring the business objects behind the WS. This solution, while correct, relies on a human logging into the web site in order to trigger the action. This is not the case in this app. The WS is much more active than the web app. But it is a very good idea

[Very OT] Hypothetical challege

2005-01-26 Thread Chaikin, Yaakov Y.
Hi, This is a hypothetical question, but it's interesting to me if anyone can come up with a solution and what that solution would be. A few facts and requirements: 1) Suppose you have 2 machines. One must serve as your web server and the other must serve as your EJB server. 2) Suppose you must

Re: [OT] a java question

2005-01-26 Thread Ashish Kulkarni
Hi how will this class work if there is no public static void main method and have to be initialized by some other class Ashish --- [EMAIL PROTECTED] wrote: > i don't not it this is a good practice. . Maybe it's > a bad practice > but.. but this work > and int this way you can mantain the cons

RE: Action naming conventions and URL accuracy

2005-01-26 Thread fzlists
One possible solution to this "page X processes page X and then sets up page Y" situation is to (a) have an Action that logically branches based on the URL and (b) treat one Action as a delegate of another. For instance, let's say I have Action Mappings PageXSetup, PageXPRocess, PageYSetup, Pag

RE: DisplayTag

2005-01-26 Thread Daniel H. F. e Silva
Yaakov, Maybe i didn't make myself clear. As far as i know, Tomcat 4, for instance, isn't JSTL-enabled until you drop the jars in your webapp lib directory but Tomcat 5 is JSTL-enabled out of the box. That was what i meant. Hope it is clearer now. Cheers, Daniel Silva. --- "Chaikin, Yaa

html taglib usage

2005-01-26 Thread Thorhauer, John (Contractor)
Hi, Is it possible to use the struts html taglib from version 1.1 without using Struts? I would like to use it in conjunction with my own beans that I am using but can not use all of struts at this point. So I would like to simply put a bean into the session and then make it available to the for

Re: [OT] a java question

2005-01-26 Thread jlopez
i don't not it this is a good practice. . Maybe it's a bad practice but.. but this work and int this way you can mantain the constants public static and final . the other problem is tha if you get the value of the constant before yo initialize you allways obtain a null value well sorry fo

Re: [OT] a java question

2005-01-26 Thread PA
On Jan 26, 2005, at 20:37, Erik Weber wrote: By the way, real nice site you have there (I'm assuming it is yours). Great design. The design came with the stock content management system I'm using: http://www.textpattern.com/ Which perhaps not accidentally looks very much like the one of its creat

Re: [OT] a java question

2005-01-26 Thread PA
On Jan 26, 2005, at 20:20, Cedric Levieux wrote: if (! isInitialzed) Shouldn't you throw one exception or two for good measure? Cheers -- PA http://alt.textdrive.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: [OT] a java question

2005-01-26 Thread Erik Weber
It is useful to note that it is theoretically possible for two competing Threads to enter the setData method and get past the "if (! isInitialized)" statement before one of them changes the value to true, causing possible data corruption. This is why I prefer to initialize singletons either in

Re: [OT] a java question

2005-01-26 Thread PA
On Jan 26, 2005, at 20:28, Ashish Kulkarni wrote: that is what i am going to do, Gotta do what you gotta do. But at least don't use any spurious boolean to keep track if a variable has or has not been set. After all, Java doesn't define 'null' for nothing. Cheers -- PA http://alt.textdrive.com/

Re: [OT] a java question

2005-01-26 Thread Erik Weber
Yeah, in "bootstrapping" I often run a static initializer right off the bat that loads bootstrap properties from the jar, then I set constants using private static getters that access the loaded properties underneath. Don't know where I picked that up (it's more useful in Swing), but it makes i

Re: [OT] a java question

2005-01-26 Thread Will Stranathan
Or, keep all your static shared junk in your initializer class, then make the mutator private, accessor public. w On Wed, 26 Jan 2005 11:29:53 -0800 (PST) [EMAIL PROTECTED] wrote: However, as another poster said, why not just set the value in a static initializer block, and only expose a getter

Re: [OT] a java question

2005-01-26 Thread fzlists
Are you saying that some other initialization class will call your setter to initialize it? And you only want that class to be able to call it? If so, there's no standard way to do it, but... you could pass in an instance of Class to the setter, and check that it's only your initializer class.

RE: Action naming conventions and URL accuracy

2005-01-26 Thread Trevor Hill
I'm not sure I totally understand what you mean by "chaining actions". Currently, the application has one action per visual page, but each action handles the processing of the previous page and the setup of the next page. This seems wrong, as it requires me to write a whole new action to handl

Re: [OT] a java question

2005-01-26 Thread PA
On Jan 26, 2005, at 20:16, Erik Weber wrote: There is more than one approach. Alternatively you can still use a final, but only assign a value to it upon initialization. No further change will be allowed after that. So many obscure ways to shot yourself in the foot :o) Cheers -- PA http://alt.te

Re: [OT] a java question

2005-01-26 Thread Ashish Kulkarni
Hi that is what i am going to do, hope it is a good practise Ashish --- Cedric Levieux <[EMAIL PROTECTED]> wrote: > public MyClass > { > private boolean isInitialzed = false; > private static String data; > public static String getData() > { > return data; > } > public static setData(

RE: PlugIn and the base URL

2005-01-26 Thread fzlists
Well, I guess I made an assumption here... I assumed you would have enough information to construct a URL using localhost as the server name. I guess that's not a safe assumption in this case. So let me understand this scenario further... you are sending a WAR out to a client, right? When the

Re:

2005-01-26 Thread Wendy Smoak
From: "Seaman, Sloan" <[EMAIL PROTECTED]> > That would work if I was using an action to populate the ${treatments} > variable. > But I am not. > The variable is populated via a custom tag and the page is directly > accessed, not via an Action. It would have been useful to know that in advance, as

Re: (newbie) html:select problem

2005-01-26 Thread Will Stranathan
This seems to come up frequently. You have to add some Javascript on the client side to either populate hidden form fields or to iterate through the entire target set and select them all - the values don't get passed in the HTTP request unless it's selected. w On Wed, 26 Jan 2005 23:01:19 +053

Re: [OT] a java question

2005-01-26 Thread Cedric Levieux
public MyClass { private boolean isInitialzed = false; private static String data; public static String getData() { return data; } public static setData(String input) { if (! isInitialzed) { data = input; isInitialzed = true; } } } - Original Messag

RE: PlugIn and the base URL

2005-01-26 Thread David G. Friedman
Frank, How would you know a URL to check inside the plugIn without editing any files? If you could get that from within the plugIn, you wouldn't need to send a request. Where would you send it? To localhost but with what context? See where my snow-covered (yep, another Boston,MA,USA storm) thi

Re: [OT] a java question

2005-01-26 Thread PA
On Jan 26, 2005, at 20:15, Ashish Kulkarni wrote: public static setData(String input) By making it private perhaps? Alternatively, I would recommend some readings: http://java.sun.com/docs/books/tutorial/java/index.html Cheers -- PA http://alt.textdrive.com/ --

Re: [OT] a java question

2005-01-26 Thread Erik Weber
There is more than one approach. One is this: public static final SOME_STRING_VALUE = someStaticMethodThatLoadsValueFromPropertiesFile(); Another is to use a static getter rather than using a constant at all. Erik Ashish Kulkarni wrote: Hi If we need a variable which can be accessed from any clas

Re: [OT] a java question

2005-01-26 Thread Ashish Kulkarni
so it will be some thing like this public MyClass { private static String data; public static String getData() { return data; } public static setData(String input) { data = input; } } this will work, but how to make sure that setData is called only from initalization class, a

RE: Trying to understand Validate Date

2005-01-26 Thread Ruben Cepeda
Hello Josh, I have a thought about your problem with the "exception" thrown by Tomcat at the command line. The first is that it might not be an exception it might just be the some kind of log. Also as a side note you make sure that the hidden field that is collecting the whole date is doing wh

Re: [OT] a java question

2005-01-26 Thread fzlists
You want a private variable and a public static accessor/mutator pair: public class test { private static int var; public static void setVar(int i) { var = i; } public static int getVar() { return var; } } -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Te

RE: PlugIn and the base URL

2005-01-26 Thread fzlists
I would personally couple this with the thread idea I mentioned earlier... Spawn a thread to send through a request after a few seconds to check baseURL or set it as appropriate. That would remove the user interaction aspect, and probably would get everything set up quicker, at least in a known

RE: PlugIn and the base URL

2005-01-26 Thread David G. Friedman
WdJ, I like how you think with those ideas on first-time initalizations. Now if we can get Martin's feedback on if this would work for him. :) Regards, David -Original Message- From: Wiebe de Jong [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 26, 2005 1:52 PM To: 'Struts Users Mail

Re: [OT] a java question

2005-01-26 Thread PA
On Jan 26, 2005, at 20:08, Ashish Kulkarni wrote: how do i protect it from updated by any other class. Just don't. Use a static accessor method instead. Cheers -- PA http://alt.textdrive.com/ - To unsubscribe, e-mail: [EMAIL PROTEC

[OT] a java question

2005-01-26 Thread Ashish Kulkarni
Hi If we need a variable which can be accessed from any class, then we set this variable as static and access it as MyClass.Variable, this variable can be modified from any class if we dont set this variable as final like public static final String Variable = "ABC"; here is the problem, i cannot se

Re: redirectig to WORD files

2005-01-26 Thread Erik Weber
Jim Barrows wrote: On Wed, 26 Jan 2005 16:24:21 +0100, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi all I try to redirect my response to a word doc file.But after setting contexttype and using response.sendRedirect(docWordURL) , I get white page; What I want is open this word document on a c

RE: PlugIn and the base URL

2005-01-26 Thread Wiebe de Jong
Hey David, that is a great idea. Let me build on it a bit... When the .war file is deployed, the baseURL property will be blank. When the application starts up, it will check this property. If the property is blank, the app will be in 'inactive' state and the only menu item presented to the user

Re: redirectig to WORD files

2005-01-26 Thread Erik Weber
Rather than go into all the details, here is the nuts and bolts of doing this from within an Action. In your Action class' execute implementation, your goal here is not to return an ActionForward as you typically do. You need to have a little bit lower level control over the HTTP response to se

Tiles: Dynamik Components

2005-01-26 Thread Fred Hauschel
Hey all, how to dynamically replace content in a layout? I've a layout with two components left->menue, right->content. Now I will dynamically build my menue and depending on selection change the content in the content component. But menue and content components are struts modules and

Re: Action naming conventions and URL accuracy

2005-01-26 Thread Jeff Beal
On the other hand, keep in mind that Struts doesn't recommend you chain actions the way you could be doing now. Hubert From the Struts wiki, "ActionChaining" topic: Ted Husted wrote: IMHO, Action chaining is linking three or more Actions together. (e.g., three points determine a chaine :0) Simply

RE:

2005-01-26 Thread Seaman, Sloan
That would work if I was using an action to populate the ${treatments} variable. But I am not. The variable is populated via a custom tag and the page is directly accessed, not via an Action. Thanks for the info though. I do use that method in other places. -- Sloan -Original Message-

RE: PlugIn and the base URL

2005-01-26 Thread David G. Friedman
A Devil's Advocate says: I agree with the theory that the webapp Context name within the application server "/myapp" should be available to the servlet but not the host/port/etc. Why? Imagine you work on a project like mine where you are using virtual host capability to map various paths on vari

Re:

2005-01-26 Thread Wendy Smoak
From: "Seaman, Sloan" <[EMAIL PROTECTED]> > I'm using the html:select tag in a jsp page and I want the set the selected > values via the value attribute but I'm not sure how to do it if my > allows multiples. In the Action, set the corresponding property in the form bean (which is probably a Stri

RE: PlugIn and the base URL

2005-01-26 Thread Martin Wegner
Agreed. That approach works more often than not. Except in this case. The client of the WS does indeed use the URL that is sent back. That is part of the overal protocol. So it has to be a valid URL that reaches the WS inside of my Struts app. One could argue that the real problem is within

RE: PlugIn and the base URL

2005-01-26 Thread Varley, Roger
> > The WS response has to contain the URL that was used to > access the WS. > This is a requirement of the XML Schema that defines the WS response > payload. I have no control over this. > I know this might be stupid, but whenever I see an odd requirement like this my first experiment is to

(newbie) html:select problem

2005-01-26 Thread Sudheer
Hi, In the below given code I am populating the html:select property 'from' using a java bean. On clicking the '>>' button I am moving the selected option from ''from' to 'to' html:select using the javascript function move(). The selected values are displayed in the 'to' html:option, but I am

Re: Flow Control, Is there a good way?

2005-01-26 Thread Don Brown
If you are adventurous, you might try Struts Flow - http://struts.sf.net/struts-flow It is a continuations-based process framework extracted from Cocoon that uses Javascript on the server side and continuations to allow both parallel flows by the same user, and browser back button presses automati

RE: Flow Control, Is there a good way?

2005-01-26 Thread ckl
> You may want to look at Apache Beehive, which has Pageflows > and sits on top of Struts. > > I haven't used it yet but it looks promising... > > -Abdullah Promising yes, reading through their description of page flows it sounds like what I am trying to do. Unfortunately not yet ready for pro

[ANN] Dimensions Multi-Channel Framework released

2005-01-26 Thread brenmcguire
I hope you don't mind if I announce a new release of a package in which I contribute with my work. Dimensions 0.6 has been released. Download at: http://mutidimensions.sourceforge.net/ Dimensions extends the Tiles Document Assembly Framework of Struts 1.1/1.2 to become a multi-channel display frame

Re: Flow Control, Is there a good way?

2005-01-26 Thread Will Stranathan
Yes - there is that possibility. w On Wed, 26 Jan 2005 11:58:23 -0500 "ckl" <[EMAIL PROTECTED]> wrote: Interesting ... Does the following use case break this? If a malicious user goes to page A and submits, gets page B with a valid token as a hidden form field. They then try to submit this valid

RE: Flow Control, Is there a good way?

2005-01-26 Thread ckl
> While the token is ALSO used for double submit protection, it > also validates that the user got to your form the right way. > > i.e., if they don't go to page A and submit, their token > won't be valid. Interesting ... Does the following use case break this? If a malicious user goes to page

Re: OT - Evaulating JSP as internal template?

2005-01-26 Thread Niall Pemberton
I also liked Kris's HttpServletResponseWrapper approach, it is more elegant and if I have a need to do this I'd probably take that approach. The benefit of the hack I put up though is it uses nothing new rather than having to write a "buffered response" object. Niall P.S. Its probably not an issu

user@struts.apache.org

2005-01-26 Thread Seaman, Sloan
I'm using the html:select tag in a jsp page and I want the set the selected values via the value attribute but I'm not sure how to do it if my allows multiples. I'm using struts-html-el.tld and the values that I want to have selected are available as a comma seperated list in ${treatments}. Idea

Re: Test email

2005-01-26 Thread Jim Barrows
On Wed, 26 Jan 2005 11:23:33 -0500, Tim Tront <[EMAIL PROTECTED]> wrote: > I am trying to confirm that emails are being sent to the list. Will > someone confirm. Nope, I can't. I'm busy :) > > Thanks > > Tim Tront > Systems Engineer > BroadSource, Inc. > 75 Fifth Street NW, Suite 220 > Atlan

directly open a word doc in IE

2005-01-26 Thread [EMAIL PROTECTED]
Ha all I want to directly open a word doc in IE 5.0. I want that my ActionStruts does that direcly without opening the downloading popup window. I click my link and in another browser the doc word is opened. any help? regards 6X veloc

  1   2   >