FormBean question...

2003-09-16 Thread alanbrown
I am using 2 different beans to populate 2 forms on 2 pages. However some of the fields have the same names, as both customers and contacts have addresses and both companies and contacts have descriptions and notes associated with them. After entering a company the user is prompted to enter some

Re: Invalid Class file Format

2003-09-16 Thread Stefan Frank
Hi Christian, found the reason: tools.jar was a good hint and setting the jvm to verbose showed, that bea forks a new process for the jsp-compile: Unfortunately, there is an older jvm running on the same box, which results in the JAVA_HOME being set to a jdk1.1: ergo, the 45 is correct.

RE: Slow file upload?

2003-09-16 Thread Mohd Amin Mohd Din
Hmm, just checking, are you doing any processing other than just simply storing the file. -Original Message- From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 12:51 PM To: Struts Users Mailing List Subject: Re: Slow file upload? On Tue, 2003-09-16 at

RE: Slow file upload?

2003-09-16 Thread Bjørn T Johansen
Nope On Tue, 2003-09-16 at 08:48, Mohd Amin Mohd Din wrote: Hmm, just checking, are you doing any processing other than just simply storing the file. -Original Message- From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 12:51 PM To: Struts

[ANN] new version of sslext for Struts 1.10 posted

2003-09-16 Thread Steve Ditlinger
Minor change to fix a bug in previously-posted version that could result in exceptions if the action specified in the sslext:link or sslext:form tags could not be found. sslext for Struts 1.10 - 3 is the latest version, available at http://sslext.sourceforge.net. I will be deprecating previous

Re: Prevent URL requested directly from browser

2003-09-16 Thread David LAFAY
PUT the following code into the begin of all your JSP : logic:notPresent name=REMOTEUSER logic:forward name=login/ /logic:notPresent Then don't forget to declare a global forward named login for redirect to your login.jsp and don't forget to put de the user login name into the Session on your

output xml

2003-09-16 Thread Morten Andersen
Is it possible to output xml from a struts application without using xls transformations? How is this done? What I need is something, that makes it possible for the browser to see, that it is a xml document and not a html document that it is reading. (Content-type setting) I have tryed:

Re: Invalid Class file Format (help same problem)

2003-09-16 Thread Richard Raquepo
hello, I get the same error. Although i have copied the tools.jar from the jdk installation to both j2ee/home and j2ee/home/lib followed what others have done but im still not able to hack my application to run. :p can someone help me get my struts application work on Oracle 9iAS (9.0.3.0.0)

Re: Invalid Class file Format (help same problem)

2003-09-16 Thread Stefan Frank
Hi Richard, it looks like your also using an older compiler. Do you have some older jdk's (1.3) on your machine?! Last time I installed Oracle, they used a jdk1.1 and set it into the path (and they also used to run java-stored procedures in the database). Can you check you enviroment for:

Future releases

2003-09-16 Thread Marco Tedone
Hi, is there planned any future release of Struts (i.e. Struts 1.2...); my question is intended to know if a book on Struts, JSTL and Struts-el will be written somewhen (hopefully not too late...). Thanks, Marco - To

Re: Invalid Class file Format (help same problem)

2003-09-16 Thread Richard Raquepo
i only have JDK 1.4.2 installed on my PC anyway here's the value of environment variables PATH = c:\utils;C:\j2sdk1.4.2\bin;c:\mysql4\bin;C:\jakarta-ant\bin JAVA_HOME=C:\j2sdk1.4.2\ CLASSPATH=.;C:\j2sdk1.4.2\lib\tools.jar;%JAVALIB%

RE: Future releases

2003-09-16 Thread Ruben Carvalho
Marco, I think it's a bad practice to ask for new releases of open source software but who am I to say that, it's just an opinion. About the books, here's a helpful link: http://jakarta.apache.org/struts/resources/books.html You'll see that there are many books about Struts already and

newbie validator question: show value of a field in error

2003-09-16 Thread Daniel Wang
I have a dumb question re: struts validator: How do I show the value of the offending field in the error message as opposed to the field name? i.e. if the field I want to validate is email, and the user types in foo, how do I show 'foo' is not a valid email address as opposed to the more

RE: newbie validator question: show value of a field in error

2003-09-16 Thread Naveen Mudgal
u catch the username field value using bean:write tag and concatenate the error message defined in applicationresources.properties file errors.email={0} is not a valid email address. -Original Message- From: Daniel Wang [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 3:13

Life after Marriage

2003-09-16 Thread Shamanth
lifeaftermarriage.jpg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: newbie validator question: show value of a field in error

2003-09-16 Thread Daniel Wang
I could certainly do this by hand in the validate() method of the form or in the action (which I have been doing this for the last few months), but I was hoping the validator could do it for me somehow... or maybe I misunderstood you? obviously concatenating strings would be bad due to i18n.

URL Rewriting within a FRAMESET

2003-09-16 Thread Martin . Ramsel
Hallo, I'm using a frameset in my struts-framework-application. Everthing workes fine, while cookies an enabled. If cookies are disabled, the second and third frame don't know the session. Is there a way to manage it? Or is it even impossible? kind regards M.Ramsel

footer problem

2003-09-16 Thread Coolyogs
Hi All I have a problem with footer. I am inserting footer in tiles-def I want to keep the footer in absolute position when there is no data in the page and when there is some data exceeds the absolute position the the footer should float. please help me div style=position: absolute;

RE: Prevent URL requested directly from browser

2003-09-16 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
I think the best place to do such kind of task is to extend RequestProcessor class, this approach takes session control from developers, extend TilesRequestProcessor , change the controller class to your new class ( SessionRequestProcessor) inside struts-config.xml. here is the code public

Re: Invalid Class file Format (help same problem)

2003-09-16 Thread Stefan Frank
hmm, just guessing: Maybe Oracle 9iAS runs on its own, older jvm? What does java.version/java.vendor say, when you start it from the server? Before replacing the tools.ja, were you able to compile a plain jsp without any struts-tags in it? (this does not look like a struts problem, as he

[ot] dhtml question was - Re: footer problem

2003-09-16 Thread Mark Lowe
Last time i messed with dhtml, using with:100% didn't work on everything. and inline css was also a bit ropey.. You'll need to detect screen width and height, and dynamically set the width, position and height. This has nothing to do with tiles or struts really, so either you thought you'd

RE: Invalid Class file Format (help same problem)

2003-09-16 Thread Mohd Amin Mohd Din
If I'm not mistaken, 9ias runs on jdk1.3.1 -Original Message- From: Stefan Frank [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 6:32 PM To: Richard Raquepo Cc: Struts Users Mailing List Subject: Re: Invalid Class file Format (help same problem) hmm, just guessing: Maybe

Re: Invalid Class file Format (help same problem)

2003-09-16 Thread Richard Raquepo
running oc4j.jar with the parameter -version only gives this: Oracle9iAS (9.0.3.0.0) Containers for J2EE (build 020927.1699) actually i can't also run the jsp included in the Oracle 9iAS like the examples found on tomcat. but the servlets example are working just fine. seem's that Oracle 9iAS

AW: Life after Marriage

2003-09-16 Thread Oliver Reflé
do i know you from somewhere ? -Ursprüngliche Nachricht- Von: Shamanth [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. September 2003 11:57 An: [EMAIL PROTECTED] Betreff: Life after Marriage lifeaftermarriage.jpg --- Incoming mail is certified Virus Free. Checked by AVG

Re: Invalid Class file Format (help same problem)

2003-09-16 Thread Stefan Frank
I guess, Oracle comes with its own runtime-enviroment (a fellow stated in the other mail, that oracle 9iAs runs on jdk1.3). The jsp-examples work, as they ship pre-compiled. Going back to 1.3 should not be such a big problem, as struts runs fine on 1.3 - Maybe there is an oracle-guy somewhere,

Re: Invalid Class file Format (help same problem)

2003-09-16 Thread Richard Raquepo
I guess so. Bcoz i downloaded Oracle 9iAS developer version 9.0.4 and my app worked. i guest the production version of Oracle 9iAS 9.0.3 is for jdk 1.3 only. thanks a lot guys... -richard - Original Message - From: Stefan Frank [EMAIL PROTECTED] To: Richard Raquepo [EMAIL PROTECTED] Cc:

JSTL bean:define copy translation

2003-09-16 Thread seloha .
I am using struts-el and trying to translate the following bean:define (i.e. copy an existing bean) into JSTL with no success: bean:define id=userBean name='%= JemosConstants.DATA_USER_DATA %' type=org.jemos.core.framework.ejbs.valueobject.PeopleValue / JemosConstants.DATA_USER_DATA is a

Re: DynaValidatorForm and Multi-page validation

2003-09-16 Thread Natalie D Rassmann
When I type to add the page property as a java.lang.Integer, I get a null pointer exception in the struts validator. I am using Struts 1.1 Final Release. What were you using? Natalie Erez Efrati wrote: I use it in my application and I added to my DynaValidationForm configuration a 'page'

RE: FormBean question...

2003-09-16 Thread Mainguy, Mike
This is by design. If you want to ensure this will not happen, you need to set all the values to or null beforehand for fields that should be empty. The short answer is change the field name. Especially if you are going to store data in a form in the session you will have a big mess on your

bean:write with a not simple property

2003-09-16 Thread reps
hello, i use logic:iterate to output some userdata. i have a little problem now. one of the properties is not a simple datatype like string or int, its a new class with 2 attributes. in my list i want to output one of this attributes, but how can i do that ? bean:write name=currentLoopUser

RE: bean:write with a not simple property

2003-09-16 Thread Paul McCulloch
It's easier than you think: bean:write name=currentLoopUser property=address.street/ Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 16 September 2003 12:38 To: Struts-User Subject: bean:write with a not simple property hello, i use logic:iterate to

RE: Retrieving the ModuleConfig object

2003-09-16 Thread Mainguy, Mike
I'm not sure what you mean by backwork, but it is accessible from the Action Class by overridding the setServlet Method.. E.g. ModuleConfig moduleConfig = (ModuleConfig) servlet.getServletContext().getAttribute( Globals.MODULE_KEY);

RE: Easy Question

2003-09-16 Thread Mainguy, Mike
The property attribute of the tag should point to a boolean property of the FormBean. If that property is true the box will be checked. ...unless you're using an old(er) version of the checkbox tag... I know in the older (1.0x) versions this was rather broken (i.e. only a string of 'T' or 'F' or

AW: bean:write with a not simple property

2003-09-16 Thread reps
bahhh i could have tryed this :-) Mit freundlichen Grüßen Christian Reps, Dipl. Inf. (FH) Web Applications -Ursprüngliche Nachricht- Von: Paul McCulloch [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. September 2003 13:42 An: 'Struts Users Mailing List' Betreff: RE: bean:write

Multiple message resource files

2003-09-16 Thread [EMAIL PROTECTED]
I am trying to use 2 message resource files in my application. My struts-config.xml has: message-resources parameter=ApplicationResources null=false / message-resources parameter=MyWebAppResources null=false / The errors are added in an Action bean with statements like:

Re: Invalid Class file Format (help same problem)

2003-09-16 Thread Christian Bollmeyer
Hi, iAS 9.0.3 runs perfectly with JDK 1.4.2. It's true that it comes along with its own JDK which is a 1.3 version. The JSP compiler uses the tools.jar that is found in a separate directory named /jdk/lib, whereas the server itself is located unterneath /j2ee, both located directly underneath the

[OT] RE: Life after Marriage

2003-09-16 Thread James
I think Shamanth was trying to show you these images: http://www.open-tools.org/images/funny/ -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 AIM:jmitchtx -Original Message- From: Oliver Reflé [mailto:[EMAIL PROTECTED] Sent:

Re: output xml

2003-09-16 Thread Adam Hardy
That works for me. I do it in the action. Neither tomcat nor struts overwrite it. The default for struts is set as a parameter to the controller in struts-config.xml, but setting that header overwrites it. Perhaps if you are setting it after the response has started, it is too late. Adam On

RE: Application.properties

2003-09-16 Thread Srikanth Gubba
James, Can you please help me with the changes that I can make to the DBMessageResources so that it would work without reloading the appliation. I know that you were working on this earlier but not sure if you had a chance to complete making the changes to new OJB version. Thanks in adv srikanth

Re: Multiple message resource files

2003-09-16 Thread Andrew Kuzmin
Hi, struts-config.xml: message-resources parameter=ApplicationResources null=false key=alternate/ message-resources parameter=MyWebAppResources null=false/ jsp: html:errors bundle=alternate/ -- Andrew Kuzmin http://www.java201.com - Original Message - From: [EMAIL

Multipage JDBC result

2003-09-16 Thread Jonathan Hawkins
Howdy, Any tips as to where I can find code examples of how to break down a large JDBC result into say 25 rows per page? Jon Hawkins - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [ANNOUNCE] StrutsDoc 0.4 Released

2003-09-16 Thread Matt Raible
I'd prefer them just be shown in a pre - so I could see the whole function. Here's what I use for pre in CSS. pre { background: #dd; border: 1px solid #99; color: #00; padding: 5px 5px 5px 7px; } Matt -Original Message- From: Nick [mailto:[EMAIL PROTECTED]

[OT] Subject line filter tag

2003-09-16 Thread Adam L
To the powers that be: Is there a particular reason there's no list name header in the subject lines, ie [struts-users], for easy filtering from all the other spam and junk mail? I realize [struts-users] is a rather lengthy segment in the subject line, so perhaps it could be abbreviated..

Re: Multipage JDBC result

2003-09-16 Thread Andrew Kuzmin
Hi, see this link http://jakarta.apache.org/struts/faqs/newbie.html#pager -- Andrew Kuzmin http://www.java201.com - Original Message - From: Jonathan Hawkins [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 3:39 PM Subject:

Re: [OT] Subject line filter tag

2003-09-16 Thread Sgarlata Matt
I filter based on the To address (all emails to [EMAIL PROTECTED] go into my Open Source\Struts folder). Is this not possible with your mail client? Matt - Original Message - From: Adam L [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, September 16, 2003

RE: [OT] Subject line filter tag

2003-09-16 Thread Andrew Hill
snip MARK-FU /snip Flash User? -Original Message- From: Adam L [mailto:[EMAIL PROTECTED] Sent: Tuesday, 16 September 2003 21:13 To: Struts Users Mailing List Subject: [OT] Subject line filter tag To the powers that be: Is there a particular reason there's no list name header in the

Re: Slow file upload?

2003-09-16 Thread Sgarlata Matt
Unfortunately I'm not going to have time to set up this experiment for a few weeks because the app I am currently working on does not require file upload capabilities. I'll do a test in a few weeks and post the results to struts-user. I'm guessing from your response that the costs of

RE: [OT] Subject line filter tag

2003-09-16 Thread Chappell, Simon P
Flash User? Yeah ... first thing I thought of as well. The second being Fine User. :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Slow file upload?

2003-09-16 Thread as as
i am a newbie to struts need help intsalling and making a helloworld app run using Tomcat jakarta struts also need help learning to use filters to authenticate a user, Samy Sgarlata Matt [EMAIL PROTECTED] wrote:Unfortunately I'm not going to have time to set up this experiment for a few weeks

RE: Slow file upload?

2003-09-16 Thread Andrew Hill
http://www.catb.org/~esr/faqs/smart-questions.html You could start by learning some ettiquet.. umm.. etikit, uh.. etiq.. ...some manners and not go around hijacking other peoples topic with an unrelated question. As for making helloworld have you tried to rt*m or st*w yet? What have you done so

RE: DynaValidatorForm and Multi-page validation

2003-09-16 Thread Ruben Carvalho
You don't have to add the page property to your form since both ValidatorForm and DynaValidatorForm have teh attribute protected int page. What you have to do, and that's where I have my problem, is to put a value in it. I'll send my question in a different mail. Ruben Carvalho

Multiple validation, one form

2003-09-16 Thread Ruben Carvalho
Hi again, I'm getting a bit confused with the XML validation system. I have one form (DynaValidatorForm), 3 JSPs followed by 3 actions that do nothing. My Form has 3 fields: name, address and phone, all String Now, I have 3 different JSPs, test1, test2 and test3.jsp, each of them followed

getServlet?

2003-09-16 Thread Andy Kriger
The ServletContext.getServlet() method has been deprecated. Is it possible to get a Servlet (or the ServletConfig, which is what I'm really after) in a Struts Action? thx andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: logic:iterate with changing row colors

2003-09-16 Thread graham . stark
Christian, Not exactly struts, but you can do this using the JSTL taglibs with the varStatus attribute, like: c:forEach items=${sessionScope.advertMultiEditForm.idsAsList} var=thisid varStatus=stat c:set var=bg value=white / c:if test=${stat.index % 2 == 0}

RE: Slow file upload?

2003-09-16 Thread Kurt Post
If you are running on a Windows box, I would try using IE instead of Mozilla for your timing tests. On windows, Netscape and thus probably Mozilla, seems to spin in a hard loop poling for new data while its trying to receive data over the network. This results in 100% CPU utilization and really

Re: getServlet?

2003-09-16 Thread Andrew Kuzmin
getServlet().getServletConfig() ? -- Andrew Kuzmin http://www.java201.com - Original Message - From: Andy Kriger [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 5:04 PM Subject: getServlet? The ServletContext.getServlet() method has

Internationalizing Email updates

2003-09-16 Thread Brian McSweeney
Hi all, I'm trying to support internationalization in my app using standard resource bundles etc. However, I was going to use resource bundles to internationalize email updates to users of the app too. However, I've just been told that you can't internationalize emails (subjects at least). Is

[VALIDATOR] Validating indexed Select Values Fails

2003-09-16 Thread George Amaya
Sorry to repost this, but I wanted to make the subject clear. I have a form with multiple selects all with the same name and indexed values (i.e myValue[0]. myValue[1]...). When I sumbit my form to validate, validation quits when first select validation fails. Has anyone had this problem? And

RE: Application.properties

2003-09-16 Thread James
My time is very limited at the moment. I'll try to find some time for this today or tomorrow. I apologize for putting you off so long. I'm currently billing ~55 hours at my current gig, coaching 2 of my 3 kids soccer teams, running the struts-atlanta users group, and tech editing 2 new books

RE : logic:iterate with changing row colors

2003-09-16 Thread thomas Sontheimer
here are means to do it: http://husted.com/struts/FAQ/view-logic.htm -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 3:17 PM To: Struts-User Subject: logic:iterate with changing row colors hello, i use logic:iterate and

How to fill textfields from FormBean?

2003-09-16 Thread Dirk Behrendt
Hello! I have made a registration JSP (name, address, zip, ) and I want that the user can modify his account. So I have an action class and a form bean for the registration. Now I want to implement an action class which shows the registration JSP and fills automatically the textfields with

[OT] RE: Application.properties

2003-09-16 Thread Chappell, Simon P
That's all? I bet Mark does twice that in his lunch breaks! ;-) I'd help, but I'm too busy drooling over the upgraded 15 Mac PowerBooks. -Original Message- From: James [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 9:42 AM To: 'Struts Users Mailing List' Subject: RE:

RE: Application.properties

2003-09-16 Thread Paananen, Tero
If anyone else has a free minute so spare, that would be great. Since I already implemented similar things with PropertyMessageResources, I could probably do this one fairly quickly as well. Might even be able to reuse the old code for it. James, could you point me to the right direction as to

RE: How to fill textfields from FormBean?

2003-09-16 Thread James
Yes, take a look at how it is done in the struts-example application. -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 AIM:jmitchtx -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16,

RE: Slow file upload?

2003-09-16 Thread Bjørn T Johansen
I just tried this from another PC running Windows and IE, and then the upload took less than a second.. Is this a bug in Mozilla or? BTJ On Tue, 2003-09-16 at 15:58, Kurt Post wrote: If you are running on a Windows box, I would try using IE instead of Mozilla for your timing tests. On

RE: Application.properties

2003-09-16 Thread James Mitchell
Yes, I believe that is the latest version. BTW. Thank you for the help. -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 AIM:jmitchtx -Original Message- From: Paananen, Tero [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16,

RE: [OT] RE: Application.properties

2003-09-16 Thread Andrew Hill
ooo A p** contest! Can I play? ;-) Done 28 hours this week and its only Tuesday (well for another half hour it is anyhow). Did 79 Last week, but only because I was slack and took Sunday off. sigh/ (Could be worse. Was doing 100+s this time last year) -Original Message- From:

Getting Messages in an Action?

2003-09-16 Thread Carl-Eric Menzel
Hello, is it possible to retrieve a message from the application resources (like bean:message key=.../) inside an Action? How can I get to the current localized messages? Thanks Carl-Eric - To unsubscribe, e-mail: [EMAIL

RE: How to fill textfields from FormBean?

2003-09-16 Thread Andrew Hill
Yep. Your on the right track. Having populated your form in the action, it will be forwarded along in a request attribute (or session depending on your mapping) to the view jsp, where you can make use of the struts html tag library (or jstl) to render the values in the fields. Like James say, your

RE: Getting Messages in an Action?

2003-09-16 Thread Andrew Hill
Yes, you can call the getResources() method inside your action which will return a MessageResources object that you can read the localised messages from. Check the javadoc for details on the parameters. -Original Message- From: Carl-Eric Menzel [mailto:[EMAIL PROTECTED] Sent: Tuesday, 16

Re: Getting Messages in an Action?

2003-09-16 Thread Andrew Kuzmin
MessageResources resources = getResources(request); java.util.Locale locale = getLocale(request); String yourString = resources.getMessage(locale, yourString); -- Andrew Kuzmin http://www.java201.com - Original Message - From: Carl-Eric Menzel [EMAIL PROTECTED] To: [EMAIL PROTECTED]

RE: Slow file upload?

2003-09-16 Thread Kurt Post
Don't know if its really bug because it does actually work just fine; it just chews up allot of CPU when doing network I/O. I'm not sure if this only happens on Windows boxes or if it happens on other platforms as well. The thing about Netscape/Mozilla is that it runs on allot of different

Re: Slow file upload?

2003-09-16 Thread Robert Leland
Sgarlata Matt wrote: Unfortunately I'm not going to have time to set up this experiment for a few weeks because the app I am currently working on does not require file upload capabilities. I'll do a test in a few weeks and post the results to struts-user. I'm guessing from your response that the

Re: RE : logic:iterate with changing row colors

2003-09-16 Thread Adam Hardy
You definitely need Niall Pemberton's row tag (from that link). On 09/16/2003 04:55 PM thomas Sontheimer wrote: here are means to do it: http://husted.com/struts/FAQ/view-logic.htm -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003

RE: [OT] Subject line filter tag

2003-09-16 Thread Mainguy, Mike
Maybe we could use Struts Technical Forum Users [STFU] Errr, maybenot. This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or

Re: Getting Messages in an Action?

2003-09-16 Thread Adolfo Miguelez
and what about from an ExceptionHandler? From: Andrew Kuzmin [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED], Carl-Eric Menzel [EMAIL PROTECTED] Subject: Re: Getting Messages in an Action? Date: Tue, 16 Sep 2003 18:29:39

Global Forwards Request Attributes

2003-09-16 Thread Pat Quinn
I have a struts action which sets a String value as an attribute in the request scope i then redirect to a global forward. But the value never appears in my jsp i'm using the c:out/ tag lib. Any ideas what i could be doing wrong here or do global forwards support request attribute population??

Re: [OT] Subject line filter tag

2003-09-16 Thread Gregory Seidman
On Tue, Sep 16, 2003 at 11:49:47AM -0400, Mainguy, Mike wrote: } Maybe we could use Struts Technical Forum Users [STFU] } } Errr, maybenot. } +1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Getting Messages in an Action?

2003-09-16 Thread Andrew Kuzmin
org.apache.struts.action.ExceptionHandler: snip public ActionForward execute(Exception ex, ExceptionConfig ae, ActionMapping mapping, ActionForm formInstance,

Re[2]: Getting Messages in an Action?

2003-09-16 Thread Carl-Eric Menzel
MessageResources resources = getResources(request); java.util.Locale locale = getLocale(request); String yourString = resources.getMessage(locale, yourString); Duh. I should read the docs more carefully (and sleep more, probably). Thank you! Carl-Eric

select tag woes

2003-09-16 Thread Martin Smith
Hi there, I have the following code in my jsp... td html:select name=homeTeam property=teamId html:options collection=teamVOs property=teamId labelProperty=description/ /html:select /td td html:select

RE: select tag woes

2003-09-16 Thread Wendy Smoak
Martin wrote: The problem is that both the bean homeTeam and awayTeam have the property teamId which results in the following HTML... As you can see both the name attributes have the value teamId, which of course is a problem. I'm confused by having one html form, but expecting Struts to

RE: Global Forwards Request Attributes

2003-09-16 Thread Robert Taylor
When you redirect the request, you lose any existing attributes. If you must redirect then you could append your String value as a request parameter to the forward path or... you could simply forward instead of redirect. robert -Original Message- From: Pat Quinn [mailto:[EMAIL

struts-faces

2003-09-16 Thread Sasha Borodin
Can someone tell me why I'd need a struts integration version of the JSF implementation? Why can't one just add the RI JAR files, TLD documents, config files and just starting using the tags? Thanks, -Sasha - To unsubscribe,

Re: [OT] Subject line filter tag

2003-09-16 Thread Craig R. McClanahan
On Tue, 16 Sep 2003, Adam L wrote: Date: Tue, 16 Sep 2003 08:13:16 -0500 From: Adam L [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: [OT] Subject line filter tag To the powers that be: Is there a

Re: Getting Messages in an Action?

2003-09-16 Thread Adolfo Miguelez
Cheers Andrew, I thought about it so thanks for your confirmation. However, I have an just a doubt. AFAIK, in Struts 1.1, ApplicationResources can be spread in different bundles. How do you choose which one is the targeted bundle in order to find the key? Sorry if I am missunderstanding

Re: getServlet?

2003-09-16 Thread Craig R. McClanahan
On Tue, 16 Sep 2003, Andy Kriger wrote: Date: Tue, 16 Sep 2003 10:04:06 -0400 From: Andy Kriger [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: getServlet? The ServletContext.getServlet() method has been

Re: struts-faces

2003-09-16 Thread Craig R. McClanahan
On Tue, 16 Sep 2003, Sasha Borodin wrote: Date: Tue, 16 Sep 2003 11:30:40 -0500 From: Sasha Borodin [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: struts-faces Can someone tell me why I'd need a struts

Re: Multipage JDBC result

2003-09-16 Thread Michael Muller
I read the documentation, but I can't tell what the pager iterates over. I'm assuming it iterates over java collections. This could be a problem if you have a huge result set. Another option would be to use database features like mysql's select * from foo limit 50 offset 250 syntax. It's

validator, select and collection problem

2003-09-16 Thread koen boutsen
Hello I'm using a select in my jsp. I read in the archive that I have to put this in my Struts-config : form-property name=property1 type=java.lang.String[] / The problem is that I get an error now : form-property: Invalid data for attribute type in part property1 Does you know what I'm

Re: struts-faces

2003-09-16 Thread Sasha Borodin
Thanks Craig. You can, but the integration library lets you use Struts Actions on the back end, creates form beans automatically, and so on. Reading through Sun's Web Services Tutorial section on JSF, things are starting to come into focus: JSF provides functionality that overlaps that of

RE: select tag woes

2003-09-16 Thread Michael Ruppin
Alternatively, nest your beans. That is, have TeamForm contain an instance of AwayTeam and an instance of HomeTeam: public class TeamForm extends ActionForm { private AwayTeam awayteam = new AwayTeam(); private HomeTeam hometeam = new HomeTeam(); ... Then, your select tags look

RE: FormBean question...

2003-09-16 Thread alanbrown
Really? That seems strange. I thought that the reason we name the formbean in the strutsconfig file is so struts knows which bean it is using to populate the form fields. Am I mistaken in that? How does Struts decide which bean is being used to populate the fields? I've specifically replaced

using struts with filters

2003-09-16 Thread as as
Hi, I am trying to use filters for login authentication using Jakarta struts framework with Tomcat. Has anyone done this earlier...any helpful tutorial/pointers/website... Thanks, Samy - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design

RE: FormBean question...

2003-09-16 Thread alanbrown
And it's stranger than that also. If I come to the addContact page From the addCompany page then any fields I pre-fill in my addContactForm bean are ignored. But if I come directly to the addContact page then the prefilled fields are as I'd expect. It's as though I can't change the formBean

html:file and accept?

2003-09-16 Thread Bjørn T Johansen
I am trying to set accept = application/pdf, so that only pdf files can be uploaded, but this doesn't work.. Do I need to do something else as well? BTJ

Re: [OT] Subject line filter tag

2003-09-16 Thread Adam Levine
Generally, yes, redundant and unecessary. With lovely services like hotmail, however, you don't get much say in the way of header information being displayed before you actually open the email.. which makes mass deletions, folder filtering, and blocking email beacons a big PITA. (hotmail has

RE: struts-faces

2003-09-16 Thread James Holmes
Hi Sasha, I don't have a specific resource in mind for you to look at, but I have compiled the most comprehensive listing of Java Server Faces resources on my website. http://www.jamesholmes.com/JavaServerFaces/ Hope that helps, -James -Original Message- From: Sasha Borodin

Re: struts-faces

2003-09-16 Thread Sasha Borodin
Great website, thanks James! -Sasha From: James Holmes [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] Date: Tue, 16 Sep 2003 15:10:36 -0400 To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: struts-faces Hi Sasha, I don't have a specific resource

Re: [OT] Subject line filter tag

2003-09-16 Thread David Graham
--- Adam Levine [EMAIL PROTECTED] wrote: Generally, yes, redundant and unecessary. With lovely services like hotmail, however, you don't get much say in the way of header information being displayed before you actually open the email.. which makes mass deletions, folder filtering, and

  1   2   >