RE: please help: ActionForms of same type but different name?

2003-10-28 Thread Chen, Gin
the values username and password from. SB Chen, Gin wrote: One approach, you can define as many form-beans as you want iteratations. Ex: form-bean name=LoginForm_1 type=com.oreilly.struts.storefront.security.LoginForm /form-bean form-bean name=LoginForm_2 type

RE: DynaActionForm and DAO

2003-10-27 Thread Chen, Gin
It's impossible.. You can't.. Don't even look into BeanUtils.copyProperties cause it won't help at all. For individual properties PropertyUtils.copyProperty doesn't work either.. Its all a rouse. -Tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday,

RE: how to collect the values from multiple select box

2003-10-27 Thread Chen, Gin
Simplest way is to have a String[] as your property. html:select property=stringarrayproperty multiple=true -Tim -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 6:02 PM To: Struts Users Mailing List Subject: how to collect the values from

RE: how to collect the values from multiple select box

2003-10-27 Thread Chen, Gin
Forms Nathan On Oct 27, 2003, at 4:09 PM, Chen, Gin wrote: Simplest way is to have a String[] as your property. html:select property=stringarrayproperty multiple=true -Tim -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 6:02 PM

RE: please help: ActionForms of same type but different name?

2003-10-27 Thread Chen, Gin
One approach, you can define as many form-beans as you want iteratations. Ex: form-bean name=LoginForm_1 type=com.oreilly.struts.storefront.security.LoginForm /form-bean form-bean name=LoginForm_2 type=com.oreilly.struts.storefront.security.LoginForm /form-bean . . . form-bean name=LoginForm_n

RE: [OT] Db usage in bean [design issue]

2003-10-24 Thread Chen, Gin
That's what the DAO design pattern will do for you. Look at Hibernate or iBatis or any other DAO project or implement your own using JDBC. -Tim -Original Message- From: Rajat Pandit [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 1:36 PM To: [EMAIL PROTECTED] Subject: Db usage

RE: Having trouble with html:form tag

2003-10-24 Thread Chen, Gin
First off.. What version of Struts are you using? This appears to be an older version as type/name are deprecated. You should be have setting those in the struts-config. Also make sure your action matches the action path in your struts-config. -Tim -Original Message- From: Jim Kennedy

RE: Having trouble with html:form tag - Using 1.1

2003-10-24 Thread Chen, Gin
trouble with html:form tag - Using 1.1 1.1 Jim Kennedy IT Consultant Mobile Phone: 813-503-1484 - - Original Message - From: Chen, Gin [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, October 24, 2003

RE: Having trouble with html:form tag - Using 1.1

2003-10-24 Thread Chen, Gin
- - Original Message - From: Chen, Gin [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, October 24, 2003 1:58 PM Subject: RE: Having trouble with html:form tag - Using 1.1 1.1 doesn't have the type and name anymore. Try to take that out and then show us

RE: Multiple error pages from validate method

2003-10-24 Thread Chen, Gin
Here's another way that I can think of: I'm assuming you will have 2 actions (one for add and one for edit) or a single action that uses a lookupdispatch add/edit handling. In either case don't have validate=true in your struts-config but rather do the validation from your action method: public

RE: Having trouble with html:form tag - Using 1.1

2003-10-24 Thread Chen, Gin
- - Original Message - From: Chen, Gin [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, October 24, 2003 3:32 PM Subject: RE: Having trouble with html:form tag - Using 1.1 Don't know if this will do anything but change html:form action=pmregister To html:form

RE: Action Class not displaying

2003-10-24 Thread Chen, Gin
1) What do you mean by test the link from the web page? Does that mean you have a a href=blah.do somewhere on the page? If so what does that link look like and how did you create it. 2) What does your web.xml look like? -Tim -Original Message- From: David Liles [mailto:[EMAIL PROTECTED]

RE: greaterThan tag

2003-10-23 Thread Chen, Gin
This is where JSTL would be a perfect fix: bean:define id=theNumber name=searchStats property=topHits scope=request/ logic:greaterThan name=bean_name property=property_name value=theNumber ... /logic:greaterThan Doesn't make sense but can be done with: c:if

RE: Need Help : Iterate Tag

2003-10-23 Thread Chen, Gin
You need a second logic:iterate (actually you should consider using JSTL forEach but I guess that's just my preference :)) Keep in mind that I'm not testing this so you have to check the syntax etc. logic:iterate id=myIterate name=map tdbean:write name=myIterate property=key//td

RE: Browser stops processing? [OT]

2003-10-23 Thread Chen, Gin
This is a simple HTTP issue. When you did the mouseover I'm assuming that you have javascript that changes the img using something like: Img.src = 'http://blah/something.gif' That will end up as a network call to get that resource and since the globe and status bar only shows the status of the

RE: html-el:form action=${param.type}

2003-10-23 Thread Chen, Gin
What's the exact error that it gives you? -Tim -Original Message- From: Barry Volpe [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 2:45 PM To: Struts Users Mailing List Subject: html-el:form action=${param.type} Hi, In my example type=ViewResults and the following

RE: HAPPY DIWALI!

2003-10-23 Thread Chen, Gin
Unfortunately Dev, it would seem from Imran's post, that if your not of Indian decent then your not qualified to answer technology questions. Since I'm not part of their IITs or IISCs I can't do any high level research :-/ -Tim -Original Message- From: Dev [mailto:[EMAIL PROTECTED]

RE: sorting and searching in Struts/tiles

2003-10-23 Thread Chen, Gin
I'm not sure I understand this question but wouldn't you just implement some comparators? Then based on the sort option selected you can call something like: Collections.sort(list, comparator)? As for the search just have a java module to search thru the collection. I'm not quite sure how what

RE: [NEWBIE] Struts and Applets

2003-10-23 Thread Chen, Gin
I'm assuming you want to have the action process form elements that were in the applet. A very simple way to do this of course is to just append name=value parameters from your applet into the link to the Struts Action. That way the struts action can handle the request the same way that it handles

RE: Good list for JSTL questions?

2003-10-23 Thread Chen, Gin
Well I see that your already part of it but for other people with the same question the JSTL list is actually the taglib list. http://jakarta.apache.org/site/mail2.html Scroll down to taglibs. -Tim -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23,

RE: sorting and searching in Struts/tiles

2003-10-23 Thread Chen, Gin
kinds of ideas, then it'll be great. Thanks for your help. Dinh Nguyen --- In [EMAIL PROTECTED], Chen, Gin [EMAIL PROTECTED] wrote: I'm not sure I understand this question but wouldn't you just implement some comparators? Then based on the sort option selected you can call

RE: Any one Controller example for Tiles Definition?

2003-10-22 Thread Chen, Gin
I'm not sure what you mean by this. What exactly are you trying to do? -Original Message- From: José Fortunato H. Tomás [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 10:07 AM To: Struts Users Mailing List Subject: Any one Controller example for Tiles Definition? Hi! Has

RE: Request PRocessor

2003-10-21 Thread Chen, Gin
That's a pretty broad question. Almost like saying How does Struts work? Have you looked through the User Guide online already? Have you perused the source yet? If you have done both and you have a specific question then please let us know. -Tim -Original Message- From: Abhijeet Mahalkar

RE: Reset() and validate() using DynaActionForm

2003-10-21 Thread Chen, Gin
RTFM: http://jakarta.apache.org/struts/userGuide/building_controller.html#dyna_act ion_form_classes If need be, you can extend the DynaActionForm to add custom validate and reset methods you might need. Simply specify your subclass in the struts-config instead. However, you cannot mix

RE: DynaForms and java.util.ArrayList

2003-10-21 Thread Chen, Gin
Remove initial= Then in your jsp do: c:forEach var=blah items=${myFormBean.map.city} c:out value=${blah}/ /c:forEach -Tim -Original Message- From: Barry Volpe [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 1:14 PM To: Struts Users Mailing List Subject: DynaForms and

RE: exception handler

2003-10-21 Thread Chen, Gin
Specify error-page in your web.xml instead -Tim -Original Message- From: Yan Zhu [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 1:41 PM To: Struts Users Mailing List Subject: Re: exception handler I tried to configure that in struts.config, but the exceptions thrown out by

RE: [FRIDAY] Free Dog.....

2003-10-17 Thread Chen, Gin
How did you get a picture of Mark? -Tim -Original Message- From: Shane Mingins [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2003 7:30 PM To: 'Struts Users Mailing List' Subject: RE: [FRIDAY] Free Dog. Ok so no attachments :-( http://fattyco.org/~beck/stephen/Free_Dog.jpg

RE: struts/tiles switch from windows to Linux

2003-10-15 Thread Chen, Gin
From the initial look of it.. It is not having a problem with finding /tiles/CoolMenu.jsp but rather having a problem with code within CoolMenu.jsp page. (Not that the exception is ServletException in /tiles/CoolMenu.jsp not within the page that included it). -Tim -Original Message- From:

RE: struts/tiles switch from windows to Linux [I0F0D-----H]

2003-10-15 Thread Chen, Gin
Shhh Larry.. What I do on my private time is my own business. -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 15, 2003 1:50 PM To: [EMAIL PROTECTED] Subject: RE: struts/tiles switch from windows to Linux Yep, Tim's right. Search your app for

RE: IMPORTANT: how to tell

2003-10-15 Thread Chen, Gin
The most stupid (note the grammer Larry ;) thing for a mammal to say is: Yes Dear.. That dress *does* make you look fat -Tim -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 15, 2003 1:52 PM To: [EMAIL PROTECTED] Subject: Re: IMPORTANT: how to

RE: html:checkbox Tag problem

2003-10-15 Thread Chen, Gin
Another way is to implement the reset method. This will allow you to initialize all your checkboxes to the unchecked value. -Tim -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 15, 2003 12:42 PM To: Struts Users Mailing List Subject: RE:

RE: JavaServer Faces

2003-10-13 Thread Chen, Gin
: Chen, Gin wrote: Since JSF is *supposed* to replace Struts, so to speak, This statement is *not* a correct understanding of what is happening! Anyone who claims that doesn't get it. You should absolutely, positively plan on evaluating the use of JavaServer Faces components instead

RE: DynaActionForms

2003-10-13 Thread Chen, Gin
I'm assuming that he meant create a new property that is not already defined in the struts-config. In which case I think your reply would fail with an property not found type exception. :-/ One way around this is to have a Hashmap within the hashmapped dynaform. That will allow you to do something

RE: DynaActionForms

2003-10-13 Thread Chen, Gin
3:41 PM To: Struts Users Mailing List Subject: Re: DynaActionForms I do not believe that you can do dynamically add fields to a DynaForm, as the config is frozen at app startup. Might work with an internal HashMap though. On Mon, Oct 13, 2003 at 03:31:32PM -0400, Chen, Gin wrote: I'm assuming

RE: Odd Behavior with c:forEach

2003-10-10 Thread Chen, Gin
Not status.index you need to add a var='foo' and do: c:out value='${foo}'/ Also, If you want 11-20 you should have begin as 11 not 10. -Tim -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2003 2:54 PM To: Struts Users Mailing List Subject:

RE: JavaServer Faces

2003-10-10 Thread Chen, Gin
functionality. -Tim -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2003 2:41 PM To: Struts Users Mailing List Subject: Re: JavaServer Faces Chen, Gin wrote: Since JSF is *supposed* to replace Struts, so to speak, This statement

RE: JavaServer Faces

2003-10-10 Thread Chen, Gin
If I culod sepll this mghit mkae snese. -Teem -Original Message- From: Chen, Gin [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2003 3:09 PM To: 'Struts Users Mailing List' Subject: RE: JavaServer Faces See.. Anyone reason that this should be kept public is to correct our

RE: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Chen, Gin
#2 any chance I get. +1 on Wendy's validation comments too. Custom validation couldn't be easier in a dynaform -Tim -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 12:57 PM To: Struts Users Mailing List Subject: RE: [POLL] ActionFrom vs

RE: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Chen, Gin
You'll love Xdoclet. Unfortunately it doesn't provide anything more than a merge point for DynaForms but still very very cool. Try a simple struts app using it (I think there's an example one on the site). -Tim -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent:

RE: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Chen, Gin
feedback about it. On Tue, Sep 30, 2003 at 02:06:11PM -0400, Chen, Gin wrote: You'll love Xdoclet. Unfortunately it doesn't provide anything more than a merge point for DynaForms but still very very cool. Try a simple struts app using it (I think there's an example one on the site). -Tim

RE: externalizing the button hashmap for the LookupDispatchAction ?

2003-09-30 Thread Chen, Gin
But if your adding a new button then you will have to add the new code for it anyways. So would this help? If it was something that would allow you to not have to redeploy then it might make sense but really we are just talking about one more line of code ;) -Tim -Original Message- From:

RE: [maybeOT] multi-select drop down list value?

2003-09-30 Thread Chen, Gin
One way to do this is to make your values a combination of value/label. You can do something like: html-el:option value='${foo.label}|${foo.value}'/ Another way is just to have a lookup utility class to look up labels from values after the submit. Ie. LookupUtil.getLabel( value ); Like

RE: configure default error page in web.xml

2003-09-30 Thread Chen, Gin
The path should be context relative (starting with /) According to the Servlet Spec: The location element contains the location of the resource in the web application relative to the root of the web application. The value of the location must have a leading '/'. Used in: error-page -Tim

RE: Application Resources Error messages

2003-09-30 Thread Chen, Gin
This has to do with your validation xml. You should have an arg0 and an arg1 that represent {0} and {1} in your message respectively. Check how you have it defined. -Tim -Original Message- From: Fenderbosch, Eric [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 4:11 PM To:

RE: How-to hide JSPs in WEB-INF (OT?)

2003-09-29 Thread Chen, Gin
Ahh.. Interesting.. But doesn't that stop the welcome-file too? -Tim -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2003 3:51 PM To: Struts Users Mailing List Subject: RE: How-to hide JSPs in WEB-INF (OT?) -Original Message- From:

RE: Struts-config path

2003-09-29 Thread Chen, Gin
According to the Struts DTD: pathThe module-relative or context-relative path to the resources that is encapsulated by the logical name of this ActionForward. If the path is to be considered context-relative when used in a

RE: No Error Message But A Blank Page Is Displayed.

2003-09-29 Thread Chen, Gin
I'm not sure where in your scenario the error was supposed to occur. I would suggest just right clicking on the blank page and see what the src holds. If you change the last line to: ActionForward valForward = mapping.findForward(Constants.VALID); servlet.log(Forwarding to: +

RE: [OT] RE: Know of any good Calendar Tag Libraries? (Sorry, tha t was Aug 21)

2003-09-25 Thread Chen, Gin
You can easily replicate the same calendar via a taglib or straight dhtml/javascript. We have a very similar calendar that we use for most of our projects. It wont take that long either if that's all the functionality you need. -Tim -Original Message- From: David G Friedman [mailto:[EMAIL

RE: How to remove DynaForm from session the struts way?

2003-09-25 Thread Chen, Gin
I use session.removeAttribute -Tim -Original Message- From: Timo Neumann [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 4:07 AM To: Struts Users Mailing List Subject: How to remove DynaForm from session the struts way? Hi guys! How would I remove a DynaValidatorForm from

RE: log4j setup

2003-09-24 Thread Chen, Gin
Okay.. Done.. Now what's step 2? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 12:03 PM To: Struts Users Mailing List Subject: Re: log4j setup Step 1. RTFM Viral_Thakkar [EMAIL PROTECTED] on 09/24/2003 09:23:22 AM Please

RE: log4j setup

2003-09-24 Thread Chen, Gin
Doh.. Leave it to James to ruin a joke. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 1:19 PM To: Struts Users Mailing List Subject: Re: log4j setup Step 2. http://www.catb.org/~esr/faqs/smart-questions.html#before -- James

RE: ApplicationResources.properties

2003-09-24 Thread Chen, Gin
Struts-config.xml: message-resources parameter=ApplicationResources/ http://jakarta.apache.org/struts/userGuide/configuration.html#resources_conf ig -Tim -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 3:22 PM To: [EMAIL PROTECTED]

RE: ApplicationResources.properties

2003-09-24 Thread Chen, Gin
Have u tried the Struts config style? I noticed that you are using the old style of init-param Look at my earlier response. -Tim -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 4:54 PM To: Struts Users Mailing List; [EMAIL PROTECTED]

RE: LabelValueBean - 3 fields?

2003-09-24 Thread Chen, Gin
Why not just add it to a Collection of Strings? -Tim -Original Message- From: Varun Garg [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 4:19 PM To: [EMAIL PROTECTED] Subject: RE: LabelValueBean - 3 fields? I created a StringsClass with upto 10 variables. package

RE: ApplicationResource.properties

2003-09-24 Thread Chen, Gin
This has to do with your web.xml. Make sure that you have all the taglibs imported and defined. -Tim -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 5:57 PM To: Struts Users Mailing List Subject: Re: ApplicationResource.properties I

RE: ApplicationResources.properties

2003-09-24 Thread Chen, Gin
/ /struts-config Anything amiss? Thanks, -M - Original Message - From: Chen, Gin [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 4:57 PM Subject: RE: ApplicationResources.properties Have u tried the Struts config style? I noticed

RE: Conditional Validation

2003-09-23 Thread Chen, Gin
You can set this up as different forms that submit to the same action (different action definitions if you like). Now each of the forms will have their own validation in your validation.xml. It's early and I haven't had my coffee so let me know if that makes sense. -Tim -Original

RE: How to implement close button in Struts?

2003-09-23 Thread Chen, Gin
Do it using Javascript instead. button onclick=window.close() Close /button Server's cant send a message to the client to close a browser window. Another way is to send a response of that javascript or redirect to another window that has that in a javascript head. -Tim -Original

RE: Sturts Quick Start Tutorial [Need Feedback]

2003-09-19 Thread Chen, Gin
The more struts tutorials the merrier. Have a look at http://jakarta.apache.org/struts/resources/tutorials.html It lists a bunch of Struts tutorials that you can reference in making your own. -Tim -Original Message- From: Dhaliwal, Pritpal (HQP) [mailto:[EMAIL PROTECTED] Sent: Friday,

RE: Serializing ActionForm (Urgent)

2003-09-10 Thread Chen, Gin
I'm assuming it's a configuration issue with your AXIS implementation. But rather then get into that... why not just create a interim bean that will store the data then BeanUtil.copyProperties it back to the ActionForm? -Tim -Original Message- From: António Santos [mailto:[EMAIL

[OT] RE: YASJR (Yet Another Struts Justification Request)

2003-09-10 Thread Chen, Gin
Offer them kool aid. It will make them feel better. Write 'Struts Good' in the bottom of the cups though. Now they associate the good taste of kool aid with Struts! -Tim -Original Message- From: Gregory F. March [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 10, 2003 4:09 PM To:

RE: Valid Regexp for MM/dd/yyyy matching in a string?

2003-09-10 Thread Chen, Gin
That doesnt look very Y3K compliant :-P If you have complex logic then best thing to do is to create a custom date validator. The code would be really simple and will catch cases where people might enter in: 19/39/1000 Btw.. why not just use the date validator? It will handle exactly that format

RE: [OT] Test

2003-09-05 Thread Chen, Gin
I didn't get it.. can you try it again? -Original Message- From: Stephan [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 4:26 PM To: [EMAIL PROTECTED] Subject: [OT] Test Sorry I have not been able to send!

RE: [FRIDAY] Some flash fun

2003-09-05 Thread Chen, Gin
I thought those were spiders -Original Message- From: Michael Ruppin [mailto:[EMAIL PROTECTED] Sent: Friday, September 05, 2003 12:10 PM To: Struts Users Mailing List Subject: Re: [FRIDAY] Some flash fun Distract him with some tasty ants. Mmmm. Ants. Adam Hardy [EMAIL PROTECTED]

RE: Combining struts and JSTL tags...

2003-09-05 Thread Chen, Gin
pady this has been discussed many many times before in this list. please search the archives. -Original Message- From: Pady Srinivasan [mailto:[EMAIL PROTECTED] Sent: Friday, September 05, 2003 1:58 PM To: [EMAIL PROTECTED] Subject: Combining struts and JSTL tags... I am using the

RE: html error

2003-09-04 Thread Chen, Gin
There's a way to do this using html:messages instead of html:errors. Convert your code to (untested so please check syntax if you get an error): html-el:messages id=foo property=fieldSample${count} brc:out value=${foo}/ /html-el:messages Optionally you can define a resource property in your

RE: Copying DynaActionForm to Map DTO

2003-09-04 Thread Chen, Gin
BeanUtils -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 1:22 PM To: 'Struts Users Mailing List' Subject: Copying DynaActionForm to Map DTO Hi all, I am using both DynaActionForm and a DTO that is implemented as a HashMap. What is the

RE: Copying DynaActionForm to Map DTO

2003-09-04 Thread Chen, Gin
Just use the BeanUtils.copyProperties as I mentioned before. Very quick and easy. -Tim -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 1:58 PM To: 'Struts Users Mailing List' Subject: RE: Copying DynaActionForm to Map DTO True, but using

RE: How can i simply show a form property as a simple text

2003-09-03 Thread Chen, Gin
or c:out or a ton of other ways.. if you just RTFM. -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 03, 2003 10:05 AM To: Struts Users Mailing List Subject: RE: How can i simply show a form property as a simple text or bean:message/

RE: How can i simply show a form property as a simple text

2003-09-03 Thread Chen, Gin
if bitmap_form is a dynaform it'll be the same construct but with map c:out value=${bitmap_form.map.FORMER_FILE_SRC}/ make sure that you have a getFORMER_FILE_SRC() method. on the off-note, you might think about renaming your attributes to more java-centric naming conventions. -Tim

RE: [OT] Re: Vacancy

2003-08-29 Thread Chen, Gin
Maybe there's just a perverted bunch of male programmers? There's not many females in our industry. And judging from the GPA (GAP?) requirements.. they want the dumb blonde variety. - Tim -Original Message- From: Brian Lee [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2003 11:01 AM

RE: Quick Java question..

2003-08-22 Thread Chen, Gin
This question reminds me of an old virus. You can have file IO that creates a simple java class file with a method taking in as many parameters as you wanted to then invoke javac to rebuild it. Performance-wise it worked great for the virus but probably not a viable option for you ;)

RE: Application Resources with EL?

2003-08-14 Thread Chen, Gin
Here's a way to get it using straight JSTL: fmt:bundle basename=ApplicationResources fmt:message var=foo key=label.foo/ /fmt:bundle c:out value=${foo}/ -Tim -Original Message- From: Eric W Hauser [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 12:05 PM To: [EMAIL PROTECTED]

RE: [OT] TLD question

2003-08-14 Thread Chen, Gin
URIs are just unique identifiers.. most times they don't even match to real URLs (hence the http://tempuri standard). Therefore, the server will never have a reason to look anywhere else but in your configs for it. -Tim -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED] Sent:

RE: Convert scriptlets into Tags

2003-08-14 Thread Chen, Gin
You dont even need that. Just straight JSTL would do: c:set var=name value=value scope=session/ -Tim -Original Message- From: Dirk Behrendt [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 9:46 AM To: [EMAIL PROTECTED] Subject: AW: Convert scriptlets into Tags Hello! I found a

RE: [Q] Struts and date formatters

2003-08-14 Thread Chen, Gin
just replace the bean:write with your fmt:formatDate like so: logic:iterate id=employee name=listOfEmployees fmt:formatDate value=${employee.birthdate} pattern=-MM-dd HH:mm / /logic:iterate -Tim -Original Message- From: Riaan Oberholzer [mailto:[EMAIL PROTECTED] Sent: Wednesday,

RE: [OT] How can Java compete?

2003-08-14 Thread Chen, Gin
Do you really want to use the same keyboard/mouse as someone that had just used the 'loo'. -Tim -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 11:55 AM To: 'Struts Users Mailing List' Subject: [OT] How can Java compete? Going where no

[OT] RE: JSTL ot struts taglibs?

2003-08-14 Thread Chen, Gin
Everyone take a deep breath and think of bunny rabbits. Cute little bunnies ()() ('.') ()() Hmm.. I'm getting hungry now. -Tim -Original Message- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 11:50 AM To: 'Struts Users Mailing List' Subject: RE: JSTL

RE: current year in JSP

2003-08-14 Thread Chen, Gin
You can make it simpler by using JSTL: jsp:useBean id='fCurrentDate' class='java.util.Date'/ fmt:formatDate var='currentYear' value='${currentDate}' pattern=''/ You should ask these type of questions to the JSTL list. It's a very good list and will be more helpful than asking a JSTL question

RE: very simple if/else question

2003-08-14 Thread Chen, Gin
Ask the JSTL list. My guess is that because JSTL is just a reference implementation of the Java specs. Eitherway you can get a great reference to it here: http://www.manning.com/bayern/appendixA.pdf -Tim -Original Message- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Sent: Wednesday,

RE: Struts 1.1 Modules and application resources

2003-08-14 Thread Chen, Gin
While I haven't tried it yet. Have you looked into writing a custom MessageResourcesConfig or PropertyMessageResourcesFactory? You can easily pass one into your config http://jakarta.apache.org/struts/userGuide/configuration.html#resources_conf ig From there you can implement your own

RE: RowSetDynaClass - iterating the dynabean collection properly

2003-08-12 Thread Chen, Gin
try this: c:forEach var=person items=${findpersonresults} tr tdc:out value=${person.map.seq}//td tdc:out value=${person.map.name}//td /tr /c:forEach -Tim -Original Message- From: jack beany [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 10:38

RE: [OT] RE: JSTL ot struts taglibs?

2003-08-08 Thread Chen, Gin
:) -Original Message- From: Chen, Gin [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 12:07 PM To: 'Struts Users Mailing List' Subject: [OT] RE: JSTL ot struts taglibs? Everyone take a deep breath and think of bunny rabbits. Cute little bunnies ()() ('.') ()() Hmm.. I'm getting hungry now

RE: [OT] Retrieve all messages ever sent to this list

2003-08-06 Thread Chen, Gin
Send an email to [EMAIL PROTECTED] (it'll auto reply). There's a way to request messages. You can use that. BTW, the full archives for this list is HUGE. It might make more sense to just browse it online. http://marc.theaimsgroup.com/?l=struts-userr=1w=2 -Tim -Original Message- From:

RE: How to activate Reset method in ActionForm?

2003-07-28 Thread Chen, Gin
That should be all that you need to do. It will automatically be called before each submitted action, not before the display of the JSP. Make sure that you included the correct method (match signature etc). -Tim -Original Message- From: guruprasad jakka To: [EMAIL PROTECTED] Sent:

RE: [Friday] TV Commercial

2003-07-25 Thread Chen, Gin
I'm confused. The car was a BMW. What does that have to do with Mercedes Benz? -Tim -Original Message- From: Jing Zhou [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 5:11 PM To: Struts Users Mailing List Subject: Re: [Friday] TV Commercial Thanks! It should be brakes. Have fun.

RE: filters

2003-07-23 Thread Chen, Gin
Either way would work. The controller you need to extend is actually the RequestProcessor (TilesRequestProcessor if your using Struts/Tiles) Check the archives for more information (archives are accessible from the jakarta site) -Tim -Original Message- From: Balaji R [mailto:[EMAIL

RE: logic:iterate index question

2003-07-22 Thread Chen, Gin
use jstl: logic:iterate id=people name=employees indexId=index c:if test=${index%2==0} tr class='Even' /c:if c:if test=${index%2==1} tr class='Odd' /c:if ... /logic:iterate Of course you can use a c:choose if you like and several other options but

RE: Problem with ActionErrors

2003-07-21 Thread Chen, Gin
Show us how your saving the errors and how your accessing them in the JSP. If you can dig up the logs with your exact errors that would be very helpful. -Tim -Original Message- From: Canning, Chuck [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 1:28 PM To: '[EMAIL PROTECTED]'

RE: Scope Issues Between Struts Tags and JSTL

2003-07-18 Thread Chen, Gin
Remember that JSTL and struts are not the same. Therefore, JSTL tags cant auto pick up the current element that a Struts tag is looking at. You should have: nested:iterate id=foo property=lineItems !-- FS: c:out value=${foo.fulfillmentStatus}/ SO: c:out value=${foo.sampleOrigin}/ -- c:if

RE: validwhen released?

2003-07-17 Thread Chen, Gin
No this is not in 1.1 at all. -Tim -Original Message- From: otisg [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 10:27 AM To: [EMAIL PROTECTED] Subject: validwhen released? Hello, I would like to use validwhen validation rule, but I am unsure whether the recently released

RE: WARNING: invalid welcome file

2003-07-16 Thread Chen, Gin
Try without leading / -Original Message- From: sriram [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 9:42 AM To: 'Struts Users Mailing List' Subject: WARNING: invalid welcome file Hi, This may be slightly out of topic..but I need some suggestions in this regard. Probably

RE: Setting html tag attribute value

2003-07-16 Thread Chen, Gin
Or: c:out escapeXml=false value=div style='visibility:${editDeForm.initialPrecVisiblity}'/ Or: (better suited for a boolean) c:choose c:when test=${editDeForm.initialPrecVisiblity == 'hidden'} div style=visibility:hidden /c:when c:otherwise div style=visibility:blah

RE: Tiles and %@ taglib

2003-07-15 Thread Chen, Gin
That's a matter of preference and application server capabilities. I prefer to keep them all in the same layout.jsp but I'm using jboss-3.2.0 with jetty and it doesn't support it that way. From what I know, only JRun currently supports that option. (Correct me if I'm wrong someone). Once you find

RE: Java Script Confirm and struts

2003-07-15 Thread Chen, Gin
html:submit property=Submit value=Continue onclick=javascript:confirmSubmit()/ should be html:submit property=Submit value=Continue onclick=javascript:return confirmSubmit()/ -Tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 3:28 PM To:

RE: How do you access an application.properties value directly fr om within a class?

2003-07-15 Thread Chen, Gin
yuk how about a much cleaner way using jstl? fmt:bundle basename=ApplicationResources fmt:message var=foo key=bar/ /fmt:bundle c:out value=${foo}/ Where ApplicationResources is the the name without .properties suffix. -Tim -Original Message- From: Raible, Matt [mailto:[EMAIL

RE: retention of the ActionForm values for display only fields

2003-07-11 Thread Chen, Gin
Just use html:hidden property=blah write=true that will take care of retaining them as well as display them for you so that you dont need another html:write -Tim -Original Message- From: Brahme, Supriya (ENJ) [mailto:[EMAIL PROTECTED] Sent: Friday, July 11, 2003 10:56 AM To: Struts Users

RE: [FRIDAY] What do you call a deer without eyes?

2003-07-11 Thread Chen, Gin
Dinner -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Friday, July 11, 2003 12:41 PM To: Struts Users Mailing List Subject: Re: [FRIDAY] What do you call a deer without eyes? Brian ? On Friday, July 11, 2003, at 05:39 PM, James Mitchell wrote: Blinded deer

RE: Logic Iterate in Struts

2003-07-09 Thread Chen, Gin
logic iterate was very great for looping collections with no quelm but now there's jstl and forEach can take the helm The Struts team suggests with gleam http://jakarta.apache.org/struts/userGuide/dev_logic.html http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate

RE: Accessing the ActionForm object from within JSP

2003-07-09 Thread Chen, Gin
I gave this on the Struts irc channel once: c:set var=currentFormName value=${requestScope['org.apache.struts.action.mapping.instance'].name}/ Then access the form using the name. c:out value=${request.attribute[currentFormName].blah} / Hope that works for you. I think someone had a shorter

  1   2   3   >