RE: Learning the basics

2004-08-19 Thread Janne Mattila
I did not notice any book recommendations in answers to your question, and frankly, I am not surprised. For learning a new technology I prefer a good, well-written and well-structured book to harvesting scattered web pages to critical pieces of information. Unfortunately, I have read three

RE: Learning the basics

2004-08-19 Thread Jesse Alexander (KXT)
On the Desk AND always on the harddisc (the eBook-version). JUST in case the hardcopy is too far away (eg. when working on the laptop in the garden...) -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 8:43 AM To: Struts Users Mailing List

RE: Learning the basics

2004-08-19 Thread Richard Aukland
I also found this useful in addition to Struts in Action: Struts Survival Guide (ebook, very cheap) - Srikanth Shenoy with Nithin Mallya. Object source publishing Richard Aukland 49 Ravensmere, Beccles, Suffolk, UK. NR34 9BE Tel/Fax. +44(0)1502 470162 Cell.+44(0)7906 094578 mailto: [EMAIL

RE: Learning the basics

2004-08-19 Thread Janne Mattila
I haven't yet. Just skimmed through Amazon example pages, and it seems like a proper book. (item from the example application: Commodore 1541. Brilliant!) Amazon user reviews were not that good, so I initially skipped this one, damn... From: Jesse Alexander (KXT) [EMAIL PROTECTED] Reply-To:

Re: [OT] Date Localization

2004-08-19 Thread Jason Lea
The SimpleDateFormat has a setTimeZone() method (coming from DateFormat). The locale doesn't have timezone information, locale is about language and countries. Countries may have several different timezones so there is no accurate way to map them to timezones. I normally allow users to pick

Re: configuration violating J2EE spec? [Auf Viren geprüft]

2004-08-19 Thread Frerk . Meyer
You may combine mod_rewrite and mod_proxy in Apache and do all kinds of wunderful and strange URL mangling things: E.g. for all URLs ending in .jsp stripping the /apps/ in the path or for all *.jpg, *.gif, *.html beginning with /modulename/ addinf /apps/ before or even generate http subrequests

Re: [OT] Date Localization

2004-08-19 Thread Shinobu Kawai
Hi Viral, I have a Date stored in GMT format in database. Now I need to display this date to user depending on his/her LOCALE. I found SimpleDateFormat and few other classes to convert the Date Format, but I am not able to find how to change the Date value as per user locale. Example:

questions about tiles

2004-08-19 Thread Mu Mike
what happens when I write the below in mypage.jsp? tiles:insert path=template.jsp put name=currentModule value=mymoudle / putList name=tabList item value=vchart tooltip=Chart link=/rb/chtprop/VChart.jsp/ /putList tiles:insert Is currentMoudle a bean? if it is ,what scope it exists

RE: [OT] Date Localization

2004-08-19 Thread Viral_Thakkar
Could you please provide the code snippet of this..?? -Original Message- From: Jason Lea [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 12:59 PM To: Struts Users Mailing List Subject: Re: [OT] Date Localization The SimpleDateFormat has a setTimeZone() method (coming from

Toomany Client-side validation code!!!

2004-08-19 Thread Rajesh
Hai all when we use Struts Validator in client side, it creates too big and many unwanted functions in the client side, is it possible to reduce or copy all javascript functioins into .js file and attach them so client dont want to read too much codes ? any solution there in Struts 1.1 Thanks,

Re: Toomany Client-side validation code!!!

2004-08-19 Thread Shinobu Kawai
Hi Rajesh, when we use Struts Validator in client side, it creates too big and many unwanted functions in the client side, is it possible to reduce or copy all javascript functioins into .js file and attach them so client dont want to read too much codes ? Take a look at

different inputs in struts-config

2004-08-19 Thread Sebastian Ho
hi I used the same actionform for a few JSP pages, which I guess is good practice. The problem occurs when I add in validation in my ActionForm. Because in the struts-config, only one input is specified for every Action. Therefore, whenever validation fails and struts display the error

Re: Toomany Client-side validation code!!!

2004-08-19 Thread Rajesh
Hai you mean dynamicJavascript=false what will happen if i give it. normally html:javascript will create a main function called validateformname(form) {} will this function writes ? if so then where all the other functions goes ? Rajesh Shinobu Kawai wrote: Hi Rajesh, when we use Struts

Re: questions about tiles

2004-08-19 Thread Shinobu Kawai
Hi Mike, what happens when I write the below in mypage.jsp? tiles:insert path=template.jsp put name=currentModule value=mymoudle / putList name=tabList item value=vchart tooltip=Chart link=/rb/chtprop/VChart.jsp/ /putList tiles:insert template.jsp gets inserted

Re: [OT] Date Localization

2004-08-19 Thread Jason Lea
SimpleDateFormat sdf=new SimpleDateFormat(-MM-dd HH:mm); TimeZone tz1 = TimeZone.getTimeZone(America/Los_Angeles); TimeZone tz2 = TimeZone.getTimeZone(Asia/Karachi); Date now=new Date(); //time in LA sdf.setTimeZone(tz1); System.out.println(Time in LA: +sdf.format(now)); //time in LA

dealing with check boxes

2004-08-19 Thread Jignesh Kapadia
Hi , I did post a question regarding the problem I am facing in dealing with check boxes in struts. I did not get a proper reply. I am just explaining the scenario . It will be good help from your side if somebody can guide as how this can be done . We have a previous/ Next

Re: Security - From tradition to struts

2004-08-19 Thread Leandro Melo
Erik, i don't quite understand what you call a hand-rolled java component (maybe because of my english). Anyway, it seems to me that you're not using JAAS to completely control application's security, are u? I don't know if it possible, but if so, would you post your setup and basic classes? I'm

RE: [OT]1,2,3,4 I declare a pun war!

2004-08-19 Thread Galbreath, Mark A
An ugly girl in the 3rd grade? -Original Message- From: Wiebe de Jong [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 6:46 PM To: 'Struts Users Mailing List' Subject: RE: [OT]1,2,3,4 I declare a pun war! On the topic of sheep, Where does that 100% virgin wool come from

Re: Security - From tradition to struts

2004-08-19 Thread Erik Weber
Sorry, by hand-rolled I just mean one that is written specifically for the application (written by you). The general idea is something like this: Make a BaseAction class. Implement a checkLogin method in the BaseAction class that looks in the current request's HttpSession for a User object,

DynaForm external Xml Source

2004-08-19 Thread Krishna Murthy .U
Hi , we are developing an application. We are using Struts's DynaForms. problem ). we have 12-13 froms each form containig around 100 input text fields.if I define all the form-beans under form-bean and form-property Using DynaForms .then my struts-config.xml will be very huge with

Re: DynaForm external Xml Source

2004-08-19 Thread Ovidiu EFTIMIE
You can split your struts-config.xml in 12-13 files and by subapplication .Then specify them in web.xml. servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name

Re: Security - From tradition to struts

2004-08-19 Thread Leandro Melo
Thank you very much for your time Erik, i'll try to get some study around it!!! I don't know if it's possible (probably not, i know...) , but if you could send me your LogonAction class (and associated stuff) would awsome! But i you can't, that's allrigth, i completely understand! Regards,

Re: different inputs in struts-config

2004-08-19 Thread Susan Bradeen
Sebastian Ho [EMAIL PROTECTED] wrote on 08/19/2004 05:19:35 AM: hi I used the same actionform for a few JSP pages, which I guess is good practice. The problem occurs when I add in validation in my ActionForm. Because in the struts-config, only one input is specified for every Action.

Re: configuration violating J2EE spec? [Auf Viren geprüft]

2004-08-19 Thread David Durham
[EMAIL PROTECTED] wrote: You may combine mod_rewrite and mod_proxy in Apache and do all kinds of wunderful and strange URL mangling things: That's all well and good, so long (AFAIK) as the original client's request is maintained when the servlet is called. Otherwise, as a servlet developer, I

need help on format attribute of bean:write

2004-08-19 Thread Bibhu Kalyan
Hi All, Good day. I have a code snippet like following : bean:write name=WrkqRetailSummaryForm property=totalWSCost format=$###,###,###.00/ But format key do not work here. Do I have to specify these keys somewhere else? I am trying to use this first time. Regards, Bibhu Information

need help on format attribute of bean:write

2004-08-19 Thread William T Hansley
Return Receipt Your need help on format attribute of bean:write document:

Re: Security - From tradition to struts

2004-08-19 Thread Susan Bradeen
Excellent explanation, Erik. Consider adding this to the Struts Wiki for posterity? Must be a place for it in there somewhere ... Erik Weber [EMAIL PROTECTED] wrote on 08/19/2004 08:31:08 AM: Sorry, by hand-rolled I just mean one that is written specifically for the application (written by

Re: dealing with check boxes

2004-08-19 Thread anuj . upadhyay
Jignesh, I think your problem is not related to checkbox or multibox but to maintain a list of modified records. To keep it simple I would suggest that you maintain a Collection (Map, HashMap, List, etc.) of the modified records (which were checked or unchecked) in the session. I think you can

RE: Security - From tradition to struts

2004-08-19 Thread Daniel Perry
You can also put an execute method in the base action that does the 'logged-in' check, and use a global forward to forward to login page. If you do this, then add an abstract method eg executeAction with the same signature as execute, and call it. The main advantage of this is to stop you

Re: how not to use actionform and pass things around

2004-08-19 Thread Bill Siggelkow
Sebastian, the short answer is to set the object as a request attribute. You would do something like the following in your action: public ActionForward execute(...) { Foo myFoo = FooService.getFoo(); request.setAttribute(myFoo, foo); return mapping.findForward(success); } Then on the success

Validation mask ranges

2004-08-19 Thread Brown, James
We are in a bind so I reposting under a different topic. Sorry, but ... We are trying to limit user input to the following ranges in ISO-8859-1: 32-126 160-255 As well as characters 9, 10 and 13. We have tried various things but have run into problems with the #' characters, plus it is

Re: Validation mask ranges

2004-08-19 Thread Erik Weber
Not sure, but if you run out of time, write your own pluggable validator for those fields. See the Struts docs, or the example on Matt Raible's site for a twofields pluggable validator. It's easy. Erik Brown, James wrote: We are in a bind so I reposting under a different topic. Sorry, but ...

RE: Validation mask ranges

2004-08-19 Thread Brown, James
Solved my own problem. Just for those that do not know ... Since mask is based on regular expressions, you can use: $[\x21-\x7E\xA0-\xFF]* to match characters 32-126 and 160-255 of a character set. -- James THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY

RE: Learning the basics

2004-08-19 Thread Kenneth Litwak
HI Janne, Thanks for your comments on books. I was hoping to avoid having to read a book to write my first Struts app, which is basically a small web app to let a user search a database table according to one of three sets of search criteria. I thought this would be relatively simple. My

RE: Learning the basics

2004-08-19 Thread Jim Barrows
-Original Message- From: Kenneth Litwak [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 8:53 AM To: Struts Users Mailing List Subject: RE: Learning the basics HI Janne, Thanks for your comments on books. I was hoping to avoid having to read a book to write

Tiles: multiple layers of layout

2004-08-19 Thread Bill Schneider
I'm trying to do something with Tiles like this: definition name=.mainLayout page=/tiles/mainLayout.jsp put name=header value=/tiles/header.jsp put name=footer value=/tiles/footer.jsp put name=title value=${title}/ put name=body value=${body}/ /definition definition name=.nestedLayout

RE: Help on Action implementing thread for checking user registration thru email?

2004-08-19 Thread Jim Barrows
-Original Message- From: struts Dude [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 9:14 PM To: Struts Users Mailing List Subject: Help on Action implementing thread for checking user registration thru email? Hi, I am going to write an app that allow user to

RE: different inputs in struts-config

2004-08-19 Thread Jim Barrows
-Original Message- From: Sebastian Ho [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 2:20 AM To: Struts Users Mailing List Subject: different inputs in struts-config hi I used the same actionform for a few JSP pages, which I guess is good practice. The problem

RE: need help on format attribute of bean:write

2004-08-19 Thread Jim Barrows
-Original Message- From: Bibhu Kalyan [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 6:36 AM To: Struts Users Mailing List Subject: need help on format attribute of bean:write Hi All, Good day. I have a code snippet like following : bean:write

RE: Learning the basics

2004-08-19 Thread bmf5
I've found Struts - The Complete Reference by James Holmes very helpful. It's organized well with good overviews before detail and complete code listings not just snippets. Bart - To unsubscribe, e-mail: [EMAIL PROTECTED]

html:link as pseudo-form tag

2004-08-19 Thread Dan Allen
Often times it is necessary to make a link act as a form by appending a whole bunch of query parameters and issuing a GET request. In struts, it is necessary to supply a bean name which points to a Map containing these data values. I thought of something that might be a touch easier. Perhaps

RE: Learning the basics

2004-08-19 Thread Jim Barrows
-Original Message- From: Kenneth Litwak [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 9:18 AM To: Struts Users Mailing List Subject: RE: Learning the basics Hi Jim, I was hoping to avoid having to read a book to write my first Struts app, which is basically

RE: Help on Action implementing thread for checking user registration thru email?

2004-08-19 Thread Dhaliwal, Pritpal (HQP)
This might help: http://www.quartzscheduler.org/ It is not strictly for struts, but it is a solution for what you want to do. Pritpal Dhaliwal -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 9:16 AM To: Struts Users Mailing List Subject:

Re: Learning the basics

2004-08-19 Thread Bill Siggelkow
+1 :) [EMAIL PROTECTED] wrote: I've found Struts - The Complete Reference by James Holmes very helpful. It's organized well with good overviews before detail and complete code listings not just snippets. Bart - To unsubscribe,

accessing collections without iterating.

2004-08-19 Thread Antony Paul
Hi all, My situation is List inside List and I am using Struts 1.0. There is no beans. I need access to List by index(using Struts). For ex. logic:iterate id=list2 name=list1 scope=session tr tdbean:write name=list2 property=list2[0] tdbean:write name=list2 property=list2[1]

accessing collections without iterating.

2004-08-19 Thread Antony Paul
Hi all, My situation is List inside List and I am using Struts 1.0. There is no beans. I need access to List by index(using Struts). For ex. logic:iterate id=list2 name=list1 scope=session tr tdbean:write name=list2 property=list2[0] tdbean:write name=list2 property=list2[1]

Re: Help on Action implementing thread for checking user registration thru email?

2004-08-19 Thread Erik Weber
You probably only need a javax.management.timer.Timer -- a single Thread that runs forever, invoking an event listener every so often. The Timer can be initialized and started by a ServletContext listener at application startup. The event listener queries the database, looking for new

test

2004-08-19 Thread Antony Paul
test - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Help on Action implementing thread for checking user registration thru email?

2004-08-19 Thread Daniel Perry
I previously posted a message on how i did this as a struts plugin, so i've reposted below. To do what you require, instead of scheduling a job for each entry after 24hrs, i would include a timestamp in the database, then say every hour, check for expired entries and delete them.

RE: Help on Action implementing thread for checking user registration thru email?

2004-08-19 Thread Paul-J Woodward
All this sounds very complex, what's wrong with encoding the time in the url (securely) and testing it when you perform the action? Alternatively store the request time and id on the server. Paul Global Equity Derivatives Technology

RE: Help on Action implementing thread for checking user registration thru email?

2004-08-19 Thread Michael Finger
I second the below - when you pull the user info from the database check the timestamp and in it's greater then 24hrs, delete it and kick the user out... then you can just cleanup the database daily, weekly, etc at off peak times... this way nothing is dependent on a job running... Mike

RE: Learning the basics

2004-08-19 Thread dhay
Well, zip attachements aren't allowed, and ppt file is just over 100KB limit! I'll send it to you privately, Ken. cheers, David - Forwarded by David Hay/Lex/Lexmark on 08/23/2004 01:54 PM - |-+ | | David Hay| | |

Re: DynaForm external Xml Source

2004-08-19 Thread Kishore Senji
Try the strategy listed at the bottom of the below url http://www.jamesholmes.com/struts/ On Thu, 19 Aug 2004 18:08:55 +0530, Krishna Murthy .U [EMAIL PROTECTED] wrote: Hi , we are developing an application. We are using Struts's DynaForms. problem ). we have 12-13 froms each form

RE: Learning the basics

2004-08-19 Thread Kenneth Litwak
Hi David, Thanks much for the document. Ken -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, August 23, 2004 10:56 AM To: [EMAIL PROTECTED] Subject: RE: Learning the basics Well, zip attachements aren't allowed, and ppt file is just over 100KB

RE: Learning the basics

2004-08-19 Thread dhay
Who owns/can update http://struts.apache.org/resources/articles.html? The powerpoint slides are on there, but are an old version. How do I get it updated? I'm getting several requests for it, and it would be easier to stick it there! cheers, David |-+ |

Re: Learning the basics

2004-08-19 Thread Vic Cekvenich
Post a diff to dev list. Even the web site is in CVS. .V [EMAIL PROTECTED] wrote: Who owns/can update http://struts.apache.org/resources/articles.html? The powerpoint slides are on there, but are an old version. How do I get it updated? I'm getting several requests for it, and it would be easier

Re: configuration violating J2EE spec?

2004-08-19 Thread Dan Allen
Apparently, in weblogic (which is the server we are currently using) it is possible to hardcode the context-root into the weblogic.xml file (if not specified in the EAR application.xml file). All the sysadmin needs to do is let the request come through unscathed and we can at least remain

input and output form

2004-08-19 Thread Dan Allen
I often times run into the conflict, when developing a Struts application, of which form to choose for a given action. The scenario is such that one form is being populated by the request while the other form needs to be populated for the output. An example would be a sequence of pages

Conditionally Validating an Entire Form Based Upon the button pressed

2004-08-19 Thread Robert Miller
I have a form which has a save (html:submit ...) and continue (html:cancel ...) button. The save should validate and process the data in the form. The continue button should go to the next page, skipping any validation and processing. I have been using the validator plugin, with all of my

RE: input and output form

2004-08-19 Thread Jim Barrows
-Original Message- From: Dan Allen [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 12:18 PM To: [EMAIL PROTECTED] Subject: input and output form I often times run into the conflict, when developing a Struts application, of which form to choose for a given action.

Re: Conditionally Validating an Entire Form Based Upon the button pressed

2004-08-19 Thread struts lover
Extend your action class from ValidatorLookupdispatchAction class by Brandon Goodin. ___ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush

RE: Conditionally Validating an Entire Form Based Upon the buttonpressed

2004-08-19 Thread Jim Barrows
-Original Message- From: Robert Miller [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 12:25 PM To: [EMAIL PROTECTED] Subject: Conditionally Validating an Entire Form Based Upon the buttonpressed I have a form which has a save (html:submit ...) and continue

RE: Conditionally Validating an Entire Form Based Upon the buttonpressed

2004-08-19 Thread struts lover
The suggestion is good. But you might run into localization problems. The better approach is to extend the ValidatorLookupDispatchAction class by Brandon Goodin which extends the LookupDispatchAction. The buttons get their label texts from the properties files. If you are not thinking of

submitting map-backed action forms

2004-08-19 Thread Olve Sæther Hansen
Given the following form, I am using a map backed form, basically as described in: http://struts.apache.org/userGuide/building_controller.html#map_action_form_classes This form is in the QuestionGroupAction class as this: * @struts.action name=mapValueForm path=/answerQuestionGroup *

RE: Conditionally Validating an Entire Form Based Upon the buttonpressed

2004-08-19 Thread Jim Barrows
-Original Message- From: struts lover [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 12:35 PM To: Struts Users Mailing List Subject: RE: Conditionally Validating an Entire Form Based Upon the buttonpressed The suggestion is good. But you might run into Which

RE: Conditionally Validating an Entire Form Based Upon the buttonpressed

2004-08-19 Thread struts lover
-Original Message- From: Robert Miller [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 12:25 PM To: [EMAIL PROTECTED] Subject: Conditionally Validating an Entire Form Based Upon the buttonpressed I have a form which has a save (html:submit ...) and continue

Re: Conditionally Validating an Entire Form Based Upon the buttonpressed

2004-08-19 Thread Michael McGrady
struts lover wrote: The suggestion is good. But you might run into localization problems. The better approach is to extend the ValidatorLookupDispatchAction class by Brandon Goodin which extends the LookupDispatchAction. The buttons get their label texts from the properties files. If you are not

Re: Tiles: multiple layers of layout

2004-08-19 Thread Michael McGrady
Bill Schneider wrote: I'm trying to do something with Tiles like this: definition name=.mainLayout page=/tiles/mainLayout.jsp put name=header value=/tiles/header.jsp put name=footer value=/tiles/footer.jsp put name=title value=${title}/ put name=body value=${body}/ /definition definition

Re: Tiles: multiple layers of layout

2004-08-19 Thread Michael McGrady
Michael McGrady wrote: Bill Schneider wrote: I'm trying to do something with Tiles like this: definition name=.mainLayout page=/tiles/mainLayout.jsp put name=header value=/tiles/header.jsp put name=footer value=/tiles/footer.jsp put name=title value=${title}/ put name=body value=${body}/

RE: internationalization problem

2004-08-19 Thread Joe Hertz
Are spanish characters not retained either? Are you using Tomcat, and if so, are you using the SetCharacterEncoding Filter? (Look in the Tomcat WebApps examples.war) Inquiring minds want to know this stuff :-) -Original Message- From: struts lover [mailto:[EMAIL PROTECTED] Sent:

RE: Conditionally Validating an Entire Form Based Upon the buttonpressed

2004-08-19 Thread Robert Miller
I just tried this method and it works for me. Thanks! I may study the other suggestions as time permits. Thanks everyone for your suggestions! Robert [EMAIL PROTECTED] 8/19/2004 2:30:18 PM -Original Message- From: Robert Miller [mailto:[EMAIL PROTECTED] Sent: Thursday, August

RE: Help on Action implementing thread for checking user registration thru email?

2004-08-19 Thread Dhaliwal, Pritpal (HQP)
I think the issue here is that user will never return. So struts dude needs some kind of mechanism to check every so often to see if the user has not returned in 24 hours. If the user has not came back, he wants to delete that record. So some timer mechanism is needed. His options.. Use resin

RE: internationalization problem

2004-08-19 Thread struts lover
Hi Joe, Which examples.war are you talking about??? I dont see any examples.war. All special characters in the text fields get distorted. --- Joe Hertz [EMAIL PROTECTED] wrote: Are spanish characters not retained either? Are you using Tomcat, and if so, are you using the

Re: Conditionally Validating an Entire Form Based Upon the button pressed

2004-08-19 Thread Kishore Senji
Instead of commenting out your validate() method You can do something like this public ActionErrors validate(ActionMapping mapping, HttpServletRequest request){ ActionErrors errors = super.validate(mapping, request); // If we see the cancel key in the request, since your continue button is a

Re: Conditionally Validating an Entire Form Based Upon the buttonpressed

2004-08-19 Thread Rick Reumann
struts lover wrote: Yes, go ahead and override the validate method, checking which button was pressed, and then call super.validate() as usual. The framework does have a page component, so the validataion will only validate the pages submitted. Or you can just do what I do and manually call the

Re: internationalization problem

2004-08-19 Thread Jason Lea
(I haven't tested the following, but I have heard that it works) I believe the problem is that a different system is used for reading form fields when a file upload is used. The current Struts system doesn't use the encoding supplied, so it assumes the default Latin-1 encoding. I believe there

Returning xml stream from struts

2004-08-19 Thread Gupta, Sahil
Hi, I have an application written in struts and i want to return xml in the response to the request. The request is being made from a client which makes http connection to my servlet and posts the request to it. I was wondering whats the best way to send the response back. Option: Setting the

RE: Returning xml stream from struts

2004-08-19 Thread Jim Barrows
-Original Message- From: Gupta, Sahil [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 1:42 PM To: 'Struts Users Mailing List' Subject: Returning xml stream from struts Hi, I have an application written in struts and i want to return xml in the response to the

Re: Help on Action implementing thread for checking user registration thru email?

2004-08-19 Thread struts Dude
Wow, u guys r super. So many help. I will go with Daniel's solution. To maximize portability, I think the best solution is not to depend on DB timestamp to delete it as different DB will have different ways of doing it, hence learning new things if change new DB. Thanks guys. :D - Original

Complex web 'stacks' in Struts

2004-08-19 Thread Stuart Guthrie
This is a general 'how do you do it if you do it' question about web application design. Here is the scenario. Web Form: - ORDER HEADER Order No: 0010 Order Date: 15/08/2004 Customer: __ LOOKUP CUSTOMER Customer Name: ?

Re: dealing with check boxes

2004-08-19 Thread Jignesh Kapadia
Anuj, Thanks for you reply. But My concern is as follows. e.g. I display these records with checkbox on my JSP as follows logic:iterator id= list name=name of the bean property=Name of the property html:checkbox name=list property=chkflag indexed=true/ td /td /logic:iterate

Re: Security - From tradition to struts

2004-08-19 Thread struts Dude
Hi The following is the strategy I use. It may help. It may also be bad practice so feedback welcome. I am writing a simple app right now that only checks whether user is logged in as ordinary user or admin. I use an utility class UserUtil.java that has static methods for other Action to call.

Re: different inputs in struts-config

2004-08-19 Thread Sebastian Ho
Thanks Susan. Refer to my comments below Sebastian Ho On Thu, 2004-08-19 at 21:23, Susan Bradeen wrote: Sebastian Ho [EMAIL PROTECTED] wrote on 08/19/2004 05:19:35 AM: hi I used the same actionform for a few JSP pages, which I guess is good practice. The problem occurs when I add

Re: Struts + Tomcat 5.0/ JSP 2.0+ JSTL

2004-08-19 Thread Vic Cekvenich
For diags: Can you just do a simple non tag el in a jsp w/o declaring? .V Erez Efrati wrote: Hi, I am working with Struts 1.1 + JST 1.0 tags. I wish to use some of the fine features of JSP 2.0 like EL expression everywhere I like instead of always putting c:out ... JSTL 1.0 tag. I would also

Absolute URLs

2004-08-19 Thread Toby Saville
Is there any way I can make URL's generated by struts, be absolute including the protocol, hostname and port? Thanks *** This message is intended for the addressee named and may contain confidential information. If you are not the

Re: Struts + Tomcat 5.0/ JSP 2.0+ JSTL

2004-08-19 Thread Rick Reumann
Erez Efrati wrote: for using the html:hidden value=${some-el-expression} / Just to note that the html:hidden refers actually the html-el:hidden. What am I missing? Do I need another version of JSTL, Struts or what? Make sure you are pointing to the correct html-el tag tld: Can't remember if

Struts login with JAAS (Part 2)

2004-08-19 Thread Leandro Melo
I'm back! After getting some jaas studies, i'm a little bit better, so i can now formulate a better question. Here it is... (I know that this is not only a Struts question, because it envolves jaas, but i'm pretty sure that people over here could give me some advise on how to handle the problem).

Re: dealing with check boxes

2004-08-19 Thread struts lover
keep the form in the session. When you click the submit button, the changes get committed to the database. --- Jignesh Kapadia [EMAIL PROTECTED] wrote: Anuj, Thanks for you reply. But My concern is as follows. e.g. I display these records with checkbox on my JSP as

Re: Struts login with JAAS (Part 2)

2004-08-19 Thread struts lover
If the login is successful, keep the user object in the session. In every action class, you can check whether the user object/user exists in the session or not. If not, redirect to login.jsp. Maybe you can have the check in some super action class so that you dont have to repeat the code in each

Re: different inputs in struts-config

2004-08-19 Thread struts lover
Try using the attribute/formAttribute in the action mapping. I think it should work. --- Sebastian Ho [EMAIL PROTECTED] wrote: Thanks Susan. Refer to my comments below Sebastian Ho On Thu, 2004-08-19 at 21:23, Susan Bradeen wrote: Sebastian Ho [EMAIL PROTECTED] wrote on

Re: Complex web 'stacks' in Struts

2004-08-19 Thread struts lover
You can have a variable called action in your action form. You can set that variable as view or edit. Now for the first time, the action can be view. You lookup for the customer. If you find, you display. If you dont find, (check this with some c:if tag ) you display a text field and a ADD

validate() in ActionForm still uses ActionErrors in 1.2.1

2004-08-19 Thread Alex Lui
Hi, I am migrating my Struts application from 1.1 to 1.2.1. I try to use ActionMessage(s) instead of deprecated ActionError(s). However, the validate() method in ValidatorForm still uses ActionErrors and in some cases, I extend ValidatorForm to write my customized validate() method. How do I deal

Problem:Tiles

2004-08-19 Thread Mu Mike
I have a definition like the below definition name=temp put name=var1 value=var1 / putList name=tabList item value=vchart tooltip=Chart link=tmp1.jsp/ item value=option tooltip=Properties link=tmp2jsp/ /putList /definition I write in my jsp file tiles:insert definition=temp

Did anyone really find ProcessBean, ProcessAction, ResultList useful?

2004-08-19 Thread struts Dude
Well did anyone? I find them complicated, not useful, hard to use, maybe it's just me and = because not many documentation on these. Can anyone provide links of tutorial to these? BTW, ProcessBean is like a DTO, so there are a lot more better choice of = tools to use than ProcessBean right? say

Re: Struts login with JAAS (Part 2)

2004-08-19 Thread Erik Weber
Leandro, perhaps I didn't explain very well. As far as I know, there is no way for you to intercept the login request and process the j_username and j_password parameters yourself -- you have to let the container receive the form submittal and process the login. This is why I said, your login

Re: Struts login with JAAS (Part 2)

2004-08-19 Thread Erik Weber
Sorry, I may have mislead you here: Erik Weber wrote: Leandro, perhaps I didn't explain very well. As far as I know, there is no way for you to intercept the login request and process the j_username and j_password parameters yourself -- you have to let the container receive the form submittal