Thank you, Struts!

2005-01-10 Thread Vamsee Kanakala
Hey folks, Well, I have been working with Struts for the past 1 month, and though the initial setup was a bit complex (the first time) and firguring out the action mappings was tough, I am slowly discovering how cool Struts is. Maybe that's why it's so popular. A heartfelt thanks to Craig

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 Manish

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

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 t

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 i

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 - Best Regards, Janarthan S Manisha Sathe <[EMAIL PROTECTED]> wrote: I have Add/Edit/Delete for one database table. For Edit what i want is to get the valu

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 reque

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 wrot

Struts FormFile and

2005-01-10 Thread Sullivan, Sean C - MWT
I read the documentation for the tag http://struts.apache.org/userGuide/struts-html.html#file According to the Struts documentation: "WARNING: In order to correctly recognize uploaded files, the ActionForm bean associated with this form must include a statement setting the corresponding

Determining the "original" request URL from within a tile

2005-01-10 Thread Rick Mann
Hi. We have a tiles-based webapp. Buried down deep in a tile that gets reused in a few different pages is the need to render a link back to the current request, with a parameter added. This acts as a switch to re-render the page a bit differently. Unfortunately, request.getRequestURL() reflects

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 some

Re:

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 in my html i define method="post" style="margin:0px;" > // logic to display html:select with html:option tag Yes, totally possible. Here are some snippets. :-) This is what you'd hav

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 pr

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

2005-01-10 Thread Bryce Fischer
Jim Barrows wrote: -Original Message- From: kjc [mailto:[EMAIL PROTECTED] Is there a way to log the HTTP post string that is sent by the browser when clicking on Why won't right click view source not work? I think the OP meant what the HTTP Post looks like, not what the generated HTML l

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 - in

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 >

user@struts.apache.org

2005-01-10 Thread Ashish Kulkarni
Hi How do i display a drop down box from hashtable data here is my form definiation in my html i define // logic to display html:select with html:option tag Ashish __ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.

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 co

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 buttonOps is an instance of ImageButton pattern. I'm sure readers of the group are familiar with it. Thanks in advance. - To unsubscribe, e-

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 abou

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

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 Yahoo

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 s

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

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: setting image dom properites with

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, I want to name the images so I can get at specifically

RE: setting image dom properites with

2005-01-10 Thread John McCosker
I seem to be getting these mixed up, im using the org.apache.strutsel.taglib.html.ELImgTag bean, 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 2005 14:20 T

setting image dom properites with

2005-01-10 Thread John McCosker
Hi, this what I am trying to achieve, I want to name the images so I can get at specifically in javascript with looping through all document.images, however when I do this I get this error, javax.servlet.ServletException: Cannot find bean spacerBody1 in any scope I checked the struts-html-el.tl

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 validat

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 == This

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: Mond

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 . Pedro Salgado On 10/1/

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: 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, error, org.apache.jasper.JasperException: An error occ

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 and buttons. I want to check if the user has entered some text in the text field and that he has sel

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

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

RE: accessing bean properties in a jsp

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

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, 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; import org.apache.struts.action.ActionMapping;

Re: Struts 1.1 UTF-8 problem

2005-01-10 Thread Guillaume Cottenceau
Koon Yue Lam 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 String specific

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. M

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 t

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 printin

RE: Paging through a collection on a page

2005-01-10 Thread McDonnell, Colm (MLIM)
I'm not interested in display tag or one of those. 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 Message

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 application