RE: cross application form bean

2005-01-10 Thread mohan.radhakrishnan
JAAS would help but that's not Struts specific. Mohan -Original Message- From: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Saturday, January 08, 2005 9:30 AM To: Struts Users Mailing List; Oleg Subject: Re: cross application form bean Sessions are unique to individual

RE: Paging through a collection on a page

2005-01-10 Thread McDonnell, Colm (MLIM)
snip I'm not interested in display tag or one of those. /snip I'm not sure whether you would categorise the pager taglib as one of those but it is a popular approach to paging in JSPs and it is reasonably lightweight. http://jsptags.com/tags/navigation/pager/pager-taglib-2.0.html -Original

How to detect Cancel button i pressed ?

2005-01-10 Thread Manisha Sathe
I had posted it before - might hv missed the response. I want to check whether Cancel button is pressed, if yes then want to redirect it to another page Also how to handle th Exceptions. I am catching many exceptions inside my Action Handlers. what shall i do with them ? Currently just

Removing deprecations from library using Tiles

2005-01-10 Thread brenmcguire
I am going to modify the code of a Tiles-based library and I want to remove some deprecations (from Struts 1.1 to 1.2.4). In particular, I want to remove the DefinitionsUtil class. In fact it is only used to refer to the DefinitionsUtils.userDebugLevel and DefinitionsUtils.NO_DEBUG. What is the

Re: How to detect Cancel button i pressed ?

2005-01-10 Thread Nicolas De Loof
You can check for cancel in actions using isCanceled(request) Struts cancel tag uses a magic value that this method will detect (formbean validation is also skipped) About exception, I used to set a global exception handler that logs exception stack and forwards to a generic error page. Nico.

Re: Struts 1.1 UTF-8 problem

2005-01-10 Thread Guillaume Cottenceau
Koon Yue Lam kisstech 'at' gmail.com writes: Hi, here is the situation: Tomcat 5.25 MySQL 4.1 Struts 1.1 when I use Struts form to get some form data submited by a webpage, it is encode in latin but not utf-8. I have already set the page encoding to UTF-8 in my JSP. I need to new a

accessing bean properties in a jsp

2005-01-10 Thread John McCosker
Hi, I am a struts newbie, I am trying to access a bean in my jsp page like this, c:out value=${clientSession.customerName}/ I validate and then set the bean in my action, package com.neo.five.ereports; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForward;

RE: accessing bean properties in a jsp

2005-01-10 Thread Hollaway, Shedrick L CIV TRIREFFAC
consider setting your CustomerSessionBean values differently. snip CustomerSessionBean sb = new CustomerSessionBean(scv.getCustomerid(),scv.getCustomerName(), scv.getCfid(),scv.getCftoken()); session.setAttribute(cookieSession, sb);

Re: Security in Struts Application

2005-01-10 Thread Vic
I posted on wiki: http://wiki.apache.org/struts/ApplicationSecurity (any FAQ, maybe people create or edit WIKI) .V Hari Saptoadi wrote: Hi All i'd like to say sorry if someone already asked this question before... what is best practice implement security in struts apps ? i'm looking something that

convertStringToDate

2005-01-10 Thread Flávio Maldonado
Hi people... I'm trying to convert String to java.sql.Date and I'm having some problems. Maybe anybody has a method that do it and can send to us. Thanks... Flávio Vilasboas Maldonado Diretor de Desenvolvimento SedNet Soluções +55(35)3471-9381

Help with DynaActionForm

2005-01-10 Thread Kalluru Uma. Maheswar
Hi, I posted the same question last week but could not get any reply. Can someone help me please? How do I validate if a field is entered or not using the DynaActionForm? My HTML form has html:text/ and html:radio/ buttons. I want to check if the user has entered some text in the text

RE: accessing bean properties in a jsp

2005-01-10 Thread John McCosker
Thanks a million for your response, yea both beans are the same one for client end and the other for server end when set, I was wondering if I could get away with the one (the session bean) and use it also client end but this flakes on me, c:out

Re: convertStringToDate

2005-01-10 Thread Larry Meadors
Look at the DateFormat and SimpleDateFormat classes. http://java.sun.com/j2se/1.4.2/docs/api/java/text/DateFormat.html http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html Larry On Mon, 10 Jan 2005 11:12:25 -0200, Flávio Maldonado [EMAIL PROTECTED] wrote: Hi people...

Re: Help with DynaActionForm

2005-01-10 Thread Pedro Salgado
check commons-validator. declare the commons-validator plugin on your struts-config.xml. use the validator-rules to specify validation rules (basic copy paste). use the validation.xml to specify the rules that apply to which fields on a form. on your jsp use html:javascript/. Pedro

RE: Help with DynaActionForm

2005-01-10 Thread Uma
But since I am not writing any validate() method, how do my validate() get fired? And if I have to show error messages to the user, how do I handle this? Sorry if my questions are stupid, I am new to struts. Uma -Original Message- From: Pedro Salgado [mailto:[EMAIL PROTECTED] Sent:

Struts 1.3 Snapshots ?

2005-01-10 Thread Pilgrim, Peter
Is there any site where one can download Struts 1.3 Daily snapshots? mtia -- Peter Pilgrim Operations/IT - Credit Suisse First Boston, 10 South Colonnade, London E14 4QJ, United Kingdom Tel: +44-(0)207-883-4497 ==

Re: Help with DynaActionForm

2005-01-10 Thread Pedro Salgado
On 10/1/05 2:33 pm, Uma [EMAIL PROTECTED] wrote: But since I am not writing any validate() method, how do my validate() get fired? And if I have to show error messages to the user, how do I handle this? don't use DynaActionForm. use DynaValidatorForm. if you specify the rules on

RE: setting image dom properites with html:img

2005-01-10 Thread John McCosker
I seem to be getting these mixed up, im using the org.apache.strutsel.taglib.html.ELImgTag bean, html:img and the property name does exist, I wonder if I should be declaring these in my properties file. -Original Message- From: John McCosker [mailto:[EMAIL PROTECTED] Sent: 10 January

Re: setting image dom properites with html:img

2005-01-10 Thread Jeff Beal
For documentation, try http://struts.apache.org/userGuide/struts-html.html. styleId is the attribute that you want to be able to access your image from JavaScript, I believe. -- Jeff John McCosker wrote: Hi, this what I am trying to achieve, html:img srcKey=image.spacer width=2 height=23

Re: Struts 1.3 Snapshots ?

2005-01-10 Thread Craig McClanahan
On Mon, 10 Jan 2005 13:54:42 -, Pilgrim, Peter [EMAIL PROTECTED] wrote: Is there any site where one can download Struts 1.3 Daily snapshots? The usual nightly builds: http://cvs.apache.org/builds/jakarta-struts/nightly/ are compiled from the trunk of the repository, so they constitute

Re: Struts 1.3 Snapshots ?

2005-01-10 Thread Joe Germuska
At 1:54 PM + 1/10/05, Pilgrim, Peter wrote: Is there any site where one can download Struts 1.3 Daily snapshots? If you're really daring, check out http://wiki.apache.org/struts/StrutsChain http://www.apache.org/~germuska/struts-1.3.0-dev/ This is where I'm hoping to get people looking at some

General Action Question

2005-01-10 Thread Brandon Mercer
Hello Group, I'm reading an off the shelf book about DynaActionForms and I've got a question about best practice stuff. In this book it says that you need to create an Action to work with the info you got much the same as the ActionForm you typically use. In my previous work I've always just

struts and testing

2005-01-10 Thread Ashish Kulkarni
Hi what is the best way of testing struts action classes, i need to do functional testing as well as unit/integration testing. I also need to create a scenario as if 5 or 10 users are logged on to the web site Ashish = A$HI$H __ Do you

Re: struts and testing

2005-01-10 Thread Martin Wegner
If you are looking to test your Actions and Forms outside of the container then StrutsTetstCase is an excellent choice. For integration testing you could use something HttpUnit. --Marty --- Ashish Kulkarni [EMAIL PROTECTED] wrote: Hi what is the best way of testing struts action classes,

RE: General Action Question

2005-01-10 Thread Jim Barrows
-Original Message- From: Brandon Mercer [mailto:[EMAIL PROTECTED] Sent: Monday, January 10, 2005 11:06 AM To: user@struts.apache.org Subject: General Action Question Hello Group, I'm reading an off the shelf book about DynaActionForms and I've got a question about best

How to view the actual HTTP generated by a struts action.

2005-01-10 Thread kjc
Is there a way to log the HTTP post string that is sent by the browser when clicking on html:image src=anImage.jpg property=buttonOps.buttonA / buttonOps is an instance of ImageButton pattern. I'm sure readers of the group are familiar with it. Thanks in advance.

RE: Struts 1.3 Snapshots ?

2005-01-10 Thread Durham David R Jr Contr 805 CSPTS/SCE
If you're really daring, check out http://wiki.apache.org/struts/StrutsChain http://www.apache.org/~germuska/struts-1.3.0-dev/ This is a bit off topic, but the switch to SVN has made it easier for users like me (behind a proxy) to checkout the source. How would I checkout the StrutsChain code

html:option tag and Hashtable..is it possible

2005-01-10 Thread Ashish Kulkarni
Hi How do i display a drop down box from hashtable data here is my form definiation form-bean dynamic=true name=loginForm type=org.apache.struts.validator.DynaValidatorForm form-property name=as400list type=java.util.Hashtable / /form-bean in my html i define html:form action=/login focus=userId

RE: How to view the actual HTTP generated by a struts action.

2005-01-10 Thread Jim Barrows
-Original Message- From: kjc [mailto:[EMAIL PROTECTED] Sent: Monday, January 10, 2005 3:25 PM To: Struts Users Mailing List Subject: How to view the actual HTTP generated by a struts action. Is there a way to log the HTTP post string that is sent by the browser when clicking

Struts-Nested-Tags- Recursing

2005-01-10 Thread Jens Kulenkamp
Hi there, i am desperate with the nested-Tags. My Problem: I have a bean A with holding a collection of bean B. Now i would like to get access, through the collection, to get each bean B. What do i get? I get each Bean B - instance in the main.jsp. Thats OK! But i get only the first bean b -

RE: Struts 1.3 Snapshots ?

2005-01-10 Thread Joe Germuska
At 4:34 PM -0600 1/10/05, Durham David R Jr Contr 805 CSPTS/SCE wrote: If you're really daring, check out http://wiki.apache.org/struts/StrutsChain http://www.apache.org/~germuska/struts-1.3.0-dev/ This is a bit off topic, but the switch to SVN has made it easier for users like me (behind a

Re: html:option tag and Hashtable..is it possible

2005-01-10 Thread Brandon Mercer
Ashish Kulkarni wrote: Hi How do i display a drop down box from hashtable data here is my form definiation form-bean dynamic=true name=loginForm type=org.apache.struts.validator.DynaValidatorForm form-property name=as400list type=java.util.Hashtable / /form-bean in my html i define html:form

Re: struts and testing

2005-01-10 Thread Neil
Try also JMeter for testing 5 or 10 users On Mon, 10 Jan 2005 11:59:38 -0800 (PST), Martin Wegner [EMAIL PROTECTED] wrote: If you are looking to test your Actions and Forms outside of the container then StrutsTetstCase is an excellent choice. For integration testing you could use something

Re: How to view the actual HTTP generated by a struts action.

2005-01-10 Thread Richard Yee
There is also a feature in JDeveloper 10g that lets you monitor TCP/IP traffic using a proxy. If you use the Apache SOAP library, there is another utility available inside it called TcpTunnelGUI in the org.apache.soap.util.net package. -Richard At 02:47 PM 1/10/2005, you wrote: Jim Barrows

Edit Form - populate values from database

2005-01-10 Thread Manisha Sathe
I have Add/Edit/Delete for one database table. For Edit what i want is to get the values from database and display it on form as default. What i am doing is - 1)First calling one action handler getting the values from database and putting inside one data bean. Putting that bean inside

Re: Edit Form - populate values from database

2005-01-10 Thread Janarthan Sathiamurthy
Hi, If you have a bean by name myBean in request scope, a property of the bean by name myProperty can be displayed in the jsp page by - html:text property=myField bean:write name=myBean property=myProperty / /html:text Best Regards, Janarthan S Manisha Sathe [EMAIL PROTECTED] wrote: I have

Re: Validate with DynaActionForm

2005-01-10 Thread Janarthan Sathiamurthy
Hi Uma, Refer to struts-validation.war that comes with the struts distribution Best Regards, Janarthan S Uma [EMAIL PROTECTED] wrote: Hi, How do I validate if a field is entered or not using the DynaActionForm? My HTML form has and buttons. I want to check if the user has entered some text in

Re: Edit Form - populate values from database

2005-01-10 Thread Wendy Smoak
From: Manisha Sathe [EMAIL PROTECTED] For Edit what i want is to get the values from database and display it on form as default. What i am doing is - 1)First calling one action handler getting the values from database and putting inside one data bean. Putting that bean inside request scope then

Re: Determining the original request URL from within a tile

2005-01-10 Thread Kishore Senji
1) You can have a Controller (org.apache.struts.tiles.Controller) and in the perform you can get the original request url and save it as a request attribute; and the tile can pull that request attribute. You can specify the controller class for your tiles definition. Just Before the jsp is

Re: How to detect Cancel button i pressed ?

2005-01-10 Thread Manisha Sathe
Hi Nicolas, Thanks for the response, 1)I tried this, but giving me error. Pls would u mind giving some code example ? 2)About exception - do u mean to say my own method common to all ? This also if u can explain with code example would be of great help. Thanks once again, regards