http proxy

2005-12-08 Thread Nicolas De Loof
Hello, My app will be used (in production) behind a SSO server that adds HTTP headers to incoming requests. I use those headers for user authentication. For tests, I need to emulate those headers and I'm looking for a HttpProxy that can be customized to process incoming HTTP request and add

prepopulating a dropdown box in a struts way.

2005-12-08 Thread Leung Ping Cheung
I think there are many people asking the same question. But I cannot find the answer. any web sites have more or less coding example of populating a dropdown box or list in a Struts way before the web page displays. Thanks - To

Re: Shale documentation

2005-12-08 Thread Tremal Naik
2005/12/7, Gary VanMatre [EMAIL PROTECTED]: I'm planning on some Shale white papers that will be available on my employers website (so I can get paid for doing it and promote services :-). Please feel free to ask questions here about Shale. thanks to you -- TREMALNAIK

Re: http proxy

2005-12-08 Thread Tremal Naik
2005/12/8, Nicolas De Loof [EMAIL PROTECTED]: Do you know any opensource (java) proxy that could help me doing this ? i've used muffin for a while: http://muffin.doit.org/ I used it for much simpler tasks then those you need, but I see it's very flexible and maybe it gives you what you need

Re: http proxy

2005-12-08 Thread Nicolas De Loof
Thanks for the link ! Tremal Naik a écrit : 2005/12/8, Nicolas De Loof [EMAIL PROTECTED]: Do you know any opensource (java) proxy that could help me doing this ? i've used muffin for a while: http://muffin.doit.org/ I used it for much simpler tasks then those you need, but I see

Re: sslext

2005-12-08 Thread Tremal Naik
2005/12/6, Jim Reynolds [EMAIL PROTECTED]: If I put a object into the request, and switched protocols, the request object was no longer found? Since most struts work has I see that when sslext switches from a protocol to another what is really happening is: a redirect is sent in the response to

tabs is struts

2005-12-08 Thread Sony Thomas
Hi, Is there is any way to use tabs in struts. Is there is any html bean tag for this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: tabs is struts

2005-12-08 Thread Raghu Kanchustambham
Try struts layout tags. They support tabbed inputs. On 12/8/05, Sony Thomas [EMAIL PROTECTED] wrote: Hi, Is there is any way to use tabs in struts. Is there is any html bean tag for this ?

Re: Shale-Clay: Error finding Converter for component

2005-12-08 Thread Mikael Andersson
Thanks for the help Gary. You sorted out my first problem, but now I have a new one. I'll spend some time investigating it myself before posting (which I'll probably end up doing). Cheers, Mikael - To unsubscribe, e-mail:

Re: Is there any shortcut to know source jsp in Struts ?

2005-12-08 Thread Dave Newton
Dave Newton wrote: I got so crabby I wrote a Ruby program that eats the struts and tile configs and spits out a JavaDoc-like listing (screenshot available at http://www.whackamonk.com/strutsdoc/screenshot1.png once my FREAKIN' HOSTING COMPANY GETS ITS SH*T TOGETHER.) The screenshot is up,

Re: Logout for multiple webapps.

2005-12-08 Thread Dave Newton
Mathew Joseph wrote: My web application consists of 2 webapps. And these are internally invoking each other. Or the user itself can make calls to any of these webapps using the common menu page. Now, when i try to logout (session.invalidate()), its not logging off from both webapp sessions.

UnsupportedClassVersionError

2005-12-08 Thread e-denton Java Programmer
Hi, I recently uploaded an updated Struts application to a remote server. Now I get this message (below: UnsupportedClassVersionError). I am using Tomcat 5.0.27. I do have 5.5 on that system, but everything points to 5.0.27 (as far as I can tell). I am running Java 1.4.2_01_b06. I have the same

Re: Struts Design Question

2005-12-08 Thread Ted Husted
It sounds like WildCard mappings (since Struts 1.2) might help. You would probably only need one set of mappings for any number of catagories. You would probably only need one ActionForm too. If some of the categories don't use some of the properties, then they just travel null. Just give the

Re: Action Config in Struts for Forward Action

2005-12-08 Thread Ted Husted
The reset method would be called in the normal course before the ActionForm is populated. What reset does is up to you. For the base ActionForm, it's an empty method that you can override. In the case of DynaActionForms, you can specify an initial=value and use reset=true to have the property set

Shale-Clay: Are managed beans mandatory in xml view?

2005-12-08 Thread Mikael Andersson
Hi, testing some clay templating ( base code from some very helpful posts in this forum), and it seems like I must have a managed bean associated to every view. Is this correct? When running the code below without a managed bean I get an error, but if I declare one for it it works fine. The

Re: prepopulating a dropdown box in a struts way.

2005-12-08 Thread Keith Sader
You need to make use of the html:optionsCollection tag html:select property=yearOfManufacture html:optionsCollection property=years/ /html:select In your form bean you need an object that has the properties label and value. Like this: public class ComboBoxItem implements Serializable,

Re: UnsupportedClassVersionError

2005-12-08 Thread Richard Yee
This error occurs when you are running an earlier JVM with code that was compiled with a newer JDK. In your case, I think you might be running a 1.4.2 JVM with code that was compiled with the 1.5 JDK. -Richard e-denton Java Programmer wrote: Hi, I recently uploaded an updated Struts

please give me some directions. - how can i use tabs in struts,

2005-12-08 Thread Sony Thomas
Hi , i have lot of information to fill in the form. I mean it cannot contain in one page. so i would like to use tabs in my struts application. how can i use tabs in struts, please give me a reply. - To unsubscribe, e-mail:

Re: please give me some directions. - how can i use tabs in struts,

2005-12-08 Thread Rahul Akolkar
On 12/8/05, Sony Thomas [EMAIL PROTECTED] wrote: Hi , i have lot of information to fill in the form. I mean it cannot contain in one page. so i would like to use tabs in my struts application. how can i use tabs in struts, please give me a reply. http://ditchnet.org/tabs I haven't used it.

Re: Shale-Clay: Are managed beans mandatory in xml view?

2005-12-08 Thread Ryan Wynn
On 12/8/05, Mikael Andersson [EMAIL PROTECTED] wrote: Hi, testing some clay templating ( base code from some very helpful posts in this forum), and it seems like I must have a managed bean associated to every view. Is this correct? When running the code below without a managed bean I get an

RE: Re: checkbox for nested collection

2005-12-08 Thread Neil Meyer
Thanks Laurie, It worked perfectly. Neil Meyer -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: 07 December 2005 12:30 AM To: user@struts.apache.org Subject: Re: checkbox for nested collection Neil Meyer wrote: Good day, I read all the topics

A problem about bean:write

2005-12-08 Thread Comain Chen
In a jsp page, when use bean:write there should be a bean name to be defined, as bean:write name = mybean property = key/. well, here, i come across a problem:how can i define the javabeanmybean to let the tag know it. Because, when i just define a class mybean with property key and method

Re: Shale-Clay: Are managed beans mandatory in xml view?

2005-12-08 Thread Mikael Andersson
Ryan Wynn bigwynnr at gmail.com writes: Mikael, I think you could get it down to 1 managed-bean by doing this component jsfid=baseLayout extends=clay attributes set name=clayJsfid value=/layout/layout.html/ /attributes symbols set

Re: Shale-Clay: Are managed beans mandatory in xml view?

2005-12-08 Thread Gary VanMatre
From: Ryan Wynn [EMAIL PROTECTED] On 12/8/05, Mikael Andersson wrote: Hi, testing some clay templating ( base code from some very helpful posts in this forum), and it seems like I must have a managed bean associated to every view. Is this correct? When running the code

Validator and Javascript

2005-12-08 Thread Tony Santinello
Hi, I'm using Struts 1.2.7 and I'm using commons-validator to validate my forms. Can someone tell me why validator includes all the javascript functions when rendering the jsp page? Even including javascript functions that I'm not using in validation.xml, such as creditcard validation or

RE: Addressformat For Different Countries

2005-12-08 Thread Garner, Shawn
I would set up three different JSP Pages and route to them based on them answering which country they are from. I suggest you use the struts method to setLocale to the country and then make a version of the resources file for that locale. In our application we have two sets of properties files.

Re: Is there any shortcut to know source jsp in Struts ?

2005-12-08 Thread Martin Gainty
Dave- I would look at Ants JavaDoc for creating the necessary html Doc In the meanwhile You may want to look at another hosting solution or host the site yourself- Good Work! M - Original Message - From: Dave Newton [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org

Re: Validator and Javascript

2005-12-08 Thread Srinivas Jadcharla
I think Validator Framework internally uses Javascript..You can customise according to you Requirement..Some one correct me if iam wrong.. On 12/8/05, Tony Santinello [EMAIL PROTECTED] wrote: Hi, I'm using Struts 1.2.7 and I'm using commons-validator to validate my forms. Can someone tell

Re: Shale-Clay: Are managed beans mandatory in xml view?

2005-12-08 Thread Mikael Andersson
Gary VanMatre gvanmatre at comcast.net writes: [snippet] When running this without a managed bean called 'test' in faces-config.xml, I get the following error: ERROR (org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/estoolweb]. [Faces Servlet]) -

Online Struts Tutorial

2005-12-08 Thread Access Denied
Would someone please recommend a current tutorial that may include iBATIS integration? tia, am

Re: Addressformat For Different Countries

2005-12-08 Thread Srinivas Jadcharla
//I would set up three different JSP Pages .. But what happens if there are about 100 countries?? we need 100 JSPs right..Instead he can go for a single JSP with logic tags..but if there are 100 countries...his JSP will be very very long ..option left is to go for tiles... On 12/8/05, Garner,

Re: Online Struts Tutorial

2005-12-08 Thread Larry Meadors
Hey there, Mr. Denied, JPetstore 5 is available in the iBATIS SVN repository...more of an example than a tutorial, but it does use Struts and iBATIS ... as well as junit+emma for testing. http://svn.apache.org/repos/asf/ibatis/trunk/java/jpetstore/jpetstore5/ Larry On 12/8/05, Access Denied

Re: Online Struts Tutorial

2005-12-08 Thread Access Denied
Thanks a lot, Larry! Are there instructions on how to set everything up from scratch? How to get a hello world working? ad 2005/12/8, Larry Meadors [EMAIL PROTECTED]: Hey there, Mr. Denied, JPetstore 5 is available in the iBATIS SVN repository...more of an example than a tutorial, but it

Re: Shale-Clay: Are managed beans mandatory in xml view?

2005-12-08 Thread Gary VanMatre
From: Mikael Andersson [EMAIL PROTECTED] Gary VanMatre comcast.net writes: [snippet] When running this without a managed bean called 'test' in faces-config.xml, I get the following error: ERROR

Re: Is there any shortcut to know source jsp in Struts ?

2005-12-08 Thread Dave Newton
Martin Gainty wrote: I would look at Ants JavaDoc for creating the necessary html Doc Do you mean for the formatting or specific tasks for creating the same documentation? I haven't found much that I liked in terms of documenting overall structure (outside of graphical IDE tools, anyway)

RE: Addressformat For Different Countries

2005-12-08 Thread Garner, Shawn
He said he only needed it for 3 countries. Seems like my way would be easy for that amount of pages. He could even use tiles for the common parts of the pages. Seems like since the ordering is different that as tiles configuration would need a separate tiles definition for each country so there

Re: Is there any shortcut to know source jsp in Struts ?

2005-12-08 Thread Martin Gainty
I liked it because you setup the doc task depending on a previous task (such as JSPC task) In any case I very look forward to seeing the features your mentioned Give a shout when you have something viable Thanks Martin- - Original Message - From: Dave Newton [EMAIL PROTECTED] To:

RE: Addressformat For Different Countries

2005-12-08 Thread Garner, Shawn
single JSP with logic tags If you do this you will get one huge JSP page potentially if you have a hundred countries. I assume with a single huge JSP not only would it take longer to serve the page because of the logic tags but the code itself would be harder to maintain. Also there is a limit

Re: Shale-Clay: Are managed beans mandatory in xml view?

2005-12-08 Thread Mikael Andersson
Gary VanMatre gvanmatre at comcast.net writes: [snippet] Make sure that you don't have any expression like #{ at managed-bean-name} bound to a control. If you are using the at managed-bean-name symbol, make sure it's registered in the faces-config.xml. If you have a more specific

Re: Addressformat For Different Countries

2005-12-08 Thread Martin Gainty
Another option is to pull your data already translated from a preconfigured Locale specific DB instance (an example is ORA_NLS configutation from Oracle) doc available at http://download-east.oracle.com/docs/cd/A81042_01/DOC/server.816/a76966/ch1.htm#41077 HTH, M- - Original Message -

Re: Addressformat For Different Countries

2005-12-08 Thread Srinivas Jadcharla
You are correct garner , with 3 pages its easy to maintain and understand. On 12/8/05, Garner, Shawn [EMAIL PROTECTED] wrote: single JSP with logic tags If you do this you will get one huge JSP page potentially if you have a hundred countries. I assume with a single huge JSP not only

Re: A problem about bean:write

2005-12-08 Thread Martin Gainty
all explained here http://struts.apache.org/struts-doc-1.2.7/userGuide/struts-bean.html#write Good Luck, M- - Original Message - From: Comain Chen [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, December 08, 2005 10:55 AM Subject: A problem about

Re: Shale-Clay: Are managed beans mandatory in xml view?

2005-12-08 Thread Gary VanMatre
Well, I'm not sure what to make of this one. The RI doesn't throw and exception when a managed bean is not found, just returns a null object. // Retrieve an existing instance, or one created and configured by // the managed bean facility ValueBinding vb =

Re: Online Struts Tutorial

2005-12-08 Thread netsql
In the wiki, I think there's a rick reuman Struts and iBatis tutorial Access Denied wrote: Would someone please recommend a current tutorial that may include iBATIS integration? tia, am - To unsubscribe, e-mail: [EMAIL

Apply multiple validator to the same field

2005-12-08 Thread yuhong Qian
Hello all, I have a struts 1.1 app that I want to use Validator Framework to validate the user input on the browser. This app will need user to enter username and password. These two fields are both required fields and the minlength and maxlength of password is 5 and 8. I have

Re: Shale-Clay: Are managed beans mandatory in xml view?

2005-12-08 Thread Mikael Andersson
On 08/12/05, Gary VanMatre [EMAIL PROTECTED] wrote: Well, I'm not sure what to make of this one. The RI doesn't throw and exception when a managed bean is not found, just returns a null object. // Retrieve an existing instance, or one created and configured by // the managed

Re: Online Struts Tutorial

2005-12-08 Thread Larry Meadors
Rick's is old old old - version 1.x ibatis...I keep hounding the slacker to update it, but he says he's busy. ;-) Larry On 12/8/05, netsql [EMAIL PROTECTED] wrote: In the wiki, I think there's a rick reuman Struts and iBatis tutorial Access Denied wrote: Would someone please recommend a

Re: Online Struts Tutorial

2005-12-08 Thread Rick R
Ha I was just going to say that is definitely outdated:) I'll get around to updating it... I keep saying that I know:) (By the way, I just started using gmail for my struts stuff now.. why does it include the sender also when I click reply and not just the [EMAIL PROTECTED] address? Does that

Handling config files

2005-12-08 Thread Sebastian Stein
Hi, I have a config file in WEB-INF/classes/ directory. This file has the information for database connection. How can I make this file accessible in all Action classes? I guess there must be a unified way to access such a file. Sebastian

Re: Apply multiple validator to the same field

2005-12-08 Thread Martin Gainty
In your validator-rules.xml you need to identify a java classname as well as a method which will handle that specific contingency e.g. form-validation global validator name=minlength classname=org.apache.struts.util.StrutsValidator method=validateMinLength

Re: Online Struts Tutorial

2005-12-08 Thread Michael Jouravlev
On 12/8/05, Rick R [EMAIL PROTECTED] wrote: (By the way, I just started using gmail for my struts stuff now.. why does it include the sender also when I click reply and not just the [EMAIL PROTECTED] address? Does that happen for other gmail users also?) Yes, but not always. On 12/8/05,

Re: tabs is struts

2005-12-08 Thread Yujun Liang
On web page, there are two kinds of tabs, 1. Tab-looking pages with the different style for active tab, there is nothing special for this kind of tab, you can just treat them as the POHA (Plain Old HTML Application), well you need design the styles. Please check CSS-2 document. Page refresh will

Re: Handling config files

2005-12-08 Thread gramani
Hi Sebastain, There are probably many ways of doing this (I don't know of any standard way though). Here's some code which i use to populate a Properties object from a file: String xpdlPropertiesFileName = xpdl.properties; //file should be in the class path.. InputStream is = null;

Re: Online Struts Tutorial

2005-12-08 Thread netsql
there not even 1.3, hold on early adators. .V Is 1.x usage so different from 2.0 ? Does it make sense to start from 1.x and then move to 2.0 features or it is better to start from 2.0 right away? - To unsubscribe, e-mail:

Re: Online Struts Tutorial

2005-12-08 Thread Brian Bruns
I have one I wrote for a internal developer class I gave. If you're interest let me know and I'll send it to you. 2005/12/8, Access Denied [EMAIL PROTECTED]: Would someone please recommend a current tutorial that may include iBATIS integration? tia, am

Re: Handling config files

2005-12-08 Thread Sebastian Stein
[EMAIL PROTECTED] [EMAIL PROTECTED] [051208 23:27]: String xpdlPropertiesFileName = xpdl.properties; //file should be in the class path.. Sorry for the stupid question, but what are possible class paths in a webapp? I guess it is the WEB-INF/lib directory, but any other directory? Can this be

Re: Online Struts Tutorial

2005-12-08 Thread Michael Jouravlev
Vic, I am sorry I did not get this one ;) On 12/8/05, netsql [EMAIL PROTECTED] wrote: there not even 1.3, hold on early adators. Is 1.x usage so different from 2.0 ? Does it make sense to start from 1.x and then move to 2.0 features or it is better to start from 2.0 right away?

Re: Handling config files

2005-12-08 Thread gramani
Sebastian Stein [EMAIL PROTECTED] wrote on 12/08/2005 05:31:36 PM: [EMAIL PROTECTED] [EMAIL PROTECTED] [051208 23:27]: String xpdlPropertiesFileName = xpdl.properties; //file should be in the class path.. Sorry for the stupid question, but what are possible class paths in a webapp? I

Re: Online Struts Tutorial

2005-12-08 Thread netsql
There is no concreate Struts 2.0 afaik! So you can't use it to build. There's hardly a 1.3 you can download yet to even try. Lots of changes are yet to happen to Ti even at high level. No Api has been set. And no date set for it. Look how long 1.3 has been baking. .V Michael Jouravlev

Re: Online Struts Tutorial

2005-12-08 Thread Michael Jouravlev
Er... Actually, I was asking about IBatis 1.x vs. IBatis 2.x. Thanks for giving me insight on Struts versions, though ;-) Michael. On 12/8/05, netsql [EMAIL PROTECTED] wrote: There is no concreate Struts 2.0 afaik! So you can't use it to build. There's hardly a 1.3 you can download yet to

Re: Online Struts Tutorial

2005-12-08 Thread netsql
Opps. We used iBatis 2.0 on a project 2 years ago, 1up.com. The main difference is that it does not need to map as much, looked similar to me, minor things. So 2.x all the way. .V Michael Jouravlev wrote: Er... Actually, I was asking about IBatis 1.x vs. IBatis 2.x. Thanks for giving me

How to refer to a previous ActionForm that is in a session scope?

2005-12-08 Thread Jun Bihag
I am developing a web application that goes from one page to another using two different Action classes. The initial page is connected to a session scoped ActionForm. On the second page which is handled by another Action (and its corresponding ActionForm that is request scoped), I want to

Re: How to refer to a previous ActionForm that is in a session scope?

2005-12-08 Thread Michael Jouravlev
On 12/8/05, Jun Bihag [EMAIL PROTECTED] wrote: I am developing a web application that goes from one page to another using two different Action classes. The initial page is connected to a session scoped ActionForm. On the second page which is handled by another Action (and its corresponding

Re: How to refer to a previous ActionForm that is in a session scope?

2005-12-08 Thread Wendy Smoak
On 12/8/05, Jun Bihag [EMAIL PROTECTED] wrote: I am developing a web application that goes from one page to another using two different Action classes. The initial page is connected to a session scoped ActionForm. On the second page which is handled by another Action (and its corresponding

Re: How to refer to a previous ActionForm that is in a session scope?

2005-12-08 Thread Jun Bihag
Thanks, Michael. A simple attribute name change frees up the redundant memory used in my previous approach. Michael Jouravlev wrote: On 12/8/05, Jun Bihag [EMAIL PROTECTED] wrote: I am developing a web application that goes from one page to another using two different Action classes. The

RE: [Shale] Clay - Not serving .css and .png

2005-12-08 Thread hermod.opstvedt
Hi Been away for a couple of days, but now I'm back at it. I finally figured out why it was not serving resources like .css files etc. In my web.xml file, I had a filterfilter mapping like this: !-- Shale Application Controller Filter -- filter

problem with bean:write

2005-12-08 Thread vishakha sawant
If you are using bean:write name = mybean property = key/ then you must define mybean using bean:define tag. for e.g If you set your javabean as myBean in request and want to display it's property key's value then just define it as bean:define id=bean name=myBean / and to display it use bean:write