Re: stopOnFirstError

2005-07-06 Thread EROL TEZCAN
Any suggestion ? EROL TEZCAN [EMAIL PROTECTED] wrote:Hi, I want to alert to user, when the first error occured on the ActionForm . To do this I am using stopOnFirstError ppoperty in struts-config.xml like this But all erros are displayed on the JSP page. My ActionForm ' s type is

non-web app

2005-07-06 Thread philippelonchampt
Hello all, I need an advice : I have to develop an application which will be called by other apps in the same server -- all the callers are wep apps stored in a tomcat instance. This application is not a web app, but it has to access the same resources (database), so I thought that the easiest

RE: Struts vs .NET???

2005-07-06 Thread Michel Van Asten
Hi, I jump in the middle of this debate (religion war ?). I dont want to add my own opinion... who care ? But as many pragmatic developper we need to follow the requirements of our customers, sometimes .Net, java (struts, jsf,...), VB... So one of our big challenge is capability to maintain (

Re: help with a newbie topic-prepopulating a form

2005-07-06 Thread Michael Jouravlev
On 7/5/05, Rick Reumann [EMAIL PROTECTED] wrote: Michael Jouravlev wrote the following on 7/6/2005 1:11 AM: On 7/5/05, Rick Reumann [EMAIL PROTECTED] wrote: Use the reset method only for doing things like making sure some boolean fields are set to false. I highly recommend you DO NOT use

Struts and Generics

2005-07-06 Thread Kent Boogaart
Hi there, I'm wondering whether it's possible to use generics with struts. Something like: form-bean name=test type=org.apache.struts.validator.DynaValidatorForm form-property name=users type=java.util.ArrayListtestpackage.User/ /form-bean I tried doing this (with my class names of

Re: Struts and Generics

2005-07-06 Thread Stéphane Zuckerman
Hello Kent, I'm wondering whether it's possible to use generics with struts. I strongly doubt it, since J2EE isn't using the Java 1.5 SDK, but 1.4 . Now, maybe am I saying something stupid. :-) -- Stéphane Zuckerman - To

Re: non-web app

2005-07-06 Thread Leon Rosenberg
interfaces and pojos? communication: corba (1st choice), rmi, xml over something. On Wed, 2005-07-06 at 08:47 +0200, philippelonchampt wrote: Hello all, I need an advice : I have to develop an application which will be called by other apps in the same server -- all the callers are wep apps

RE: Struts and Generics

2005-07-06 Thread Nitesh Naveen
Generics is a Java 5.0 feature... Don't think the features with 5.0 are introduced to Struts framework yet! Thanks Regards, Nitesh _ Disclaimer: Information contained and transmitted by this e-mail is confidential, proprietary, and legally privileged data of

Multiple RequestProcessor

2005-07-06 Thread lk
Hi, I have a problem using a Custom RequestProcessor: in my tomcat context I already have a CustomRequestProcessor that authenticates the user. Now I need to add a new module for my application with a completely different method of authentication. How can I say to the RequestProcessor

Newbie: Where to put instance for database access?

2005-07-06 Thread Peter . Zoche
Hi! I have maybe a simple question: My web-app has to get data out of a database. I have a class DatabaseHandler which holds a connection to the database and provides methods to query it. I would like to have only one instance of this class in my web-app. But I don't know where to put it. Should

RE: Newbie: Where to put instance for database access?

2005-07-06 Thread Marco Mistroni
Should it be stored in the ServletContext for application scope? But how do I access this instance from my Actions? getServlet().getServletContext().getAttribute(xxx) Or would it be better to use data-sources? If I should use them, does anybody know a good tutorial on the internet? Perhaps

AW: Newbie: Where to put instance for database access?

2005-07-06 Thread Peter . Zoche
Should it be stored in the ServletContext for application scope? But how do I access this instance from my Actions? getServlet().getServletContext().getAttribute(xxx) is it the same as request.getSession().getServletContext().getAttribute(xxx) ? Peter

Re: AW: Newbie: Where to put instance for database access?

2005-07-06 Thread Stéphane Zuckerman
[EMAIL PROTECTED] a écrit : Should it be stored in the ServletContext for application scope? But how do I access this instance from my Actions? getServlet().getServletContext().getAttribute(xxx) is it the same as request.getSession().getServletContext().getAttribute(xxx) ? Yes. --

RE: Newbie: Where to put instance for database access?

2005-07-06 Thread Jesse Alexander (KBSA 21)
Yes. Check with servlet-APIdoc... Alexander -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 06, 2005 11:10 AM To: user@struts.apache.org Subject: AW: Newbie: Where to put instance for database access? Should it be stored in the ServletContext

container managed authentification/spanish

2005-07-06 Thread Juan Pablo Vagliati
Hi, I am having problems with container manager authentification in my struts app. Are somebody understand spanish? Si es asi mejor :-), saludos, pablo.

Reg. Can't find form bean for XXXForm : Error.

2005-07-06 Thread Iyanu, Rajasekaran
Hi All, I have an Action Form associated with a JSP and an Action class. When I try to access the JSP page, it throws the following exception. javax.servlet.ServletException: [ServletException in:XXX/YYY.jsp] Can't find form bean for ZZZForm at

Re: help with a newbie topic-prepopulating a form

2005-07-06 Thread Rick Reumann
Michael Jouravlev wrote the following on 7/6/2005 3:22 AM: Can you explain why is it so bad, besides that it is bad design and defeats pupose of what ActionForms should be used for? What ActionForms should be used for, anyway? It is just a class, which has a simple lifecycle, maintained by

Re: Reg. Can't find form bean for XXXForm : Error.

2005-07-06 Thread Kjersti Berg
On 7/6/05, Iyanu, Rajasekaran [EMAIL PROTECTED] wrote: Hi All, I have an Action Form associated with a JSP and an Action class. When I try to access the JSP page, it throws the following exception. javax.servlet.ServletException: [ServletException in:XXX/YYY.jsp] Can't find form bean

RE: Reg. Can't find form bean for XXXForm : Error.

2005-07-06 Thread Iyanu, Rajasekaran
Hi Berg, Thanks for ur prompt reply. Yup, the definitions in Form and Action mapping are the same.. And the scope is request throughout... Any more clues in this regard..? Thanks Rajasekaran Iyanu. -Original Message- From: Kjersti Berg [mailto:[EMAIL PROTECTED] Sent: Wednesday,

Re: Beans throwing exceptions

2005-07-06 Thread GnomeKing
On 02/07/05, GnomeKing [EMAIL PROTECTED] wrote: I have a bean which occasionally throws an exception My exception is caught in TagUtils.java:962 (struts-1.2.7), saved (967) and then a completely new JspException thrown (968). This exception is then caught on line 894, and saved, and then

Re: Reg. Can't find form bean for XXXForm : Error.

2005-07-06 Thread Kjersti Berg
On 7/6/05, Iyanu, Rajasekaran [EMAIL PROTECTED] wrote: Hi Berg, Thanks for ur prompt reply. Yup, the definitions in Form and Action mapping are the same.. And the scope is request throughout... Any more clues in this regard..? This page

Redirect request to home if session is expired

2005-07-06 Thread Franz-Josef Herpers
Hi list members, in my Struts-based application I want to test, if the session of the user is expired. If so, I want to forward/redirect the user back to the starting page. But this seems to be a problem, if I call an Action that is associated with an ActionForm in session scope. When I tried

Re: help with a newbie topic-prepopulating a form

2005-07-06 Thread Jeff Beal
On 7/6/05, Michael Jouravlev [EMAIL PROTECTED] wrote: If by some chance you are, PLEASE do not advise the newbies to do this. This totally defeats the pupose of what ActionForms should be used for and will create all kinds of maintenance headaches, never mind the fact that it's really bad

javascript

2005-07-06 Thread Vijay K Anand
Hi This code is not actually translating html:button property=Create value=Create styleClass=NPIButton onclick=javascript:location.href=\'html:rewrite page='/portfoliomgmt'/\' / how do i do it?

RE: javascript

2005-07-06 Thread Bob Arnott
Vijay K Anand wrote: Hi This code is not actually translating html:button property=Create value=Create styleClass=NPIButton onclick=javascript:location.href=\'html:rewrite page='/portfoliomgmt'/\' / how do i do it? You can't embed tags in other tags... Off the top of my head try

Re: Multiple RequestProcessor

2005-07-06 Thread Joe Germuska
The appropriate way to use more than one RequestProcessor in Struts is to use modules. Each module has its own request processor. Struts can use part of the request path as a module identifier in much the same way that your servlet container uses a context root to know which servlet will

Re: javascript

2005-07-06 Thread Vijay K Anand
Hi All I used the same way you have said bean:define id=create_portfoliojavascript:location.href='html:rewrite page=/portfoliomgmt/'/bean:define html:button property=Create value=Create styleClass=NPIButton

Re: Struts Books Recommendations

2005-07-06 Thread Mark Galbreath
Thanks to whomever emailed last weeks nonsense thread to the Director of the Board of Elections. It made me look like a racist and I was fired this morning. The State is also looking into whether my use of an official email address for that discussion is in violation of state law. You did your

Re: javascript

2005-07-06 Thread BHansard
bean:define id=onClickUrl_javascript_:location.href=''/bean:define html:button property=Create value=Create styleClass=NPIButton / Vijay K Anand [EMAIL PROTECTED] Vijay K Anand [EMAIL PROTECTED] 07/06/2005 10:11 AM Please respond to Struts Users Mailing List user@struts.apache.org

Re: Struts vs .NET???

2005-07-06 Thread Dakota Jack
Okay, okay, Reumann. Do you want to be right or do you want to be loving? ///;-) Xu really is not all that atuned to computer stuff, even though he is a computer journalist, so you might take him on as your grasshopper? ///;-) On 7/5/05, Rick Reumann [EMAIL PROTECTED] wrote: John Henry Xu

Re:M Galbreath

2005-07-06 Thread netsql
We all all sincererly very sorry, we just wanted a slap on the wrist from all the noise. .V Mark Galbreath wrote: Thanks to whomever emailed last weeks nonsense thread to the Director of the Board of Elections. It made me look like a racist and I was fired this morning. The State is also

RE: Struts Books Recommendations

2005-07-06 Thread Daniel Perry
-Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Thanks to whomever emailed last weeks nonsense thread to the Director of the Board of Elections. It made me look like a racist and I was fired this morning. The State is also looking into whether my use of an

RE: Redirect request to home if session is expired

2005-07-06 Thread Juan Pablo Vagliati
Hi, I dont know if is a good design or exists other best practices for this scenario but that i have done is put a session attribute and test in my base action about it. (sorry by my english) bye, pablo. -Mensaje original- De: Franz-Josef Herpers [mailto:[EMAIL PROTECTED] Enviado el:

Re: Marking fields having errors

2005-07-06 Thread Laurie Harper
Or see the errorClassId attributes on the the form tags. L. Rauf Khan wrote: Hi, In ur application resources file, u can add this errors.header=h3font color=OrangeError List/font/h3ul errors.footer=/ulhr here color = anycolor Regards Khan On 7/5/05, Kalra, Ashwani [EMAIL PROTECTED]

Re: stopOnFirstError

2005-07-06 Thread Laurie Harper
I'm not sure why stopOnError isn't working for you, but why would you *not* want to show as much validation information as possible? I hate forms that tell me I've filled in one field incorrectly, only to complain about another when I fix the reported error... L. EROL TEZCAN wrote: Any

RE: Multibox problem

2005-07-06 Thread Apte, Dhanashree (Noblestar)
Code where i put the values back: map.put(districtIds, stringArr); where stringArr is an array of what the user selected. - This is not the same as calling setDistrictIds. You need to call setDistrictIds(stringArr) explicitly.

Re: javascript

2005-07-06 Thread Jeff Beal
Use the action attribute instead of the page attribute in your html:rewrite/ tag. See http://struts.apache.org/userGuide/struts-html.html#rewrite for the tag documentation. -- Jeff On 7/6/05, Vijay K Anand [EMAIL PROTECTED] wrote: Hi All I used the same way you have said

RE: Multibox problem

2005-07-06 Thread Shyam . Tummala
Hi- Thanks for the response. The map is in helper class and i dont want my helper class to know anything about struts or actionForm. Thanks, Shyam Apte, Dhanashree (Noblestar) [EMAIL PROTECTED] 07/06/2005 11:45 AM Please respond to Struts Users Mailing List To: 'Struts Users

Re: javascript

2005-07-06 Thread Vijay K Anand
Thanks buddy , it is great... Jeff Beal wrote: Use the action attribute instead of the page attribute in your html:rewrite/ tag. See http://struts.apache.org/userGuide/struts-html.html#rewrite for the tag documentation. -- Jeff On 7/6/05, Vijay K Anand [EMAIL PROTECTED] wrote: Hi All

Re: M Galbreath

2005-07-06 Thread Larry Meadors
I would like the person who sent this to know that they are the lowest form of life on the planet. Larry On 7/6/05, netsql [EMAIL PROTECTED] wrote: We all all sincererly very sorry, we just wanted a slap on the wrist from all the noise. .V Mark Galbreath wrote: Thanks to whomever

Re: Newbie Help

2005-07-06 Thread Laurie Harper
Frasso, Anthony wrote the following on 7/5/2005 5:34 PM: % ProjectsBean projectsBean = new ProjectsBean(); projectsBean.populate(); pageContext.setAttribute(pojectsBean, projectsBean); % Any scope should work. Also make sure the Project object includes the appropriate (JavaBeans

RE: javascript

2005-07-06 Thread Bob Arnott
Vijay K Anand wrote: Hi All I used the same way you have said bean:define id=create_portfoliojavascript:location.href='html:rewrite page=/portfoliomgmt/'/bean:define html:button property=Create value=Create

RE: M Galbreath

2005-07-06 Thread jacob.willig
I probably should not respond, but obviously I could not stop myself from doing so.. 1: How sure can we be that Mark wrote the message about him being fired over this 2: If he did write this, AND the message is true, it seems far fetched that one gets fired over just posting in this thread

Re: help with a newbie topic-prepopulating a form

2005-07-06 Thread Michael Jouravlev
On 7/6/05, Rick Reumann [EMAIL PROTECTED] wrote: 1) The person asking I believe was a beginner to Struts. Suggesting to have a DAO used in ActionForm is something definitely unorthodox and since the person is new to the framework it is unlikely he'll see many examples of this and it can get

Re: help with a newbie topic-prepopulating a form

2005-07-06 Thread Michael Jouravlev
On 7/6/05, Jeff Beal [EMAIL PROTECTED] wrote: Here's the last paragraph of the JavaDoc for the reset() method (emphasis in original): This method is *not* the appropriate place to initialize form value for an update type page (this should be done in a setup Action). You mainly need to worry

Fired???? was...Re: Struts Books Recommendations

2005-07-06 Thread Rick Reumann
Mark Galbreath wrote the following on 7/6/2005 10:19 AM: Thanks to whomever emailed last weeks nonsense thread to the Director of the Board of Elections. It made me look like a racist and I was fired this morning. The State is also looking into whether my use of an official email address for

Re: Fired???? was...Re: Struts Books Recommendations

2005-07-06 Thread Carlos Duque
Take a look at the original email thread to which I responded. Take a look at the addressees of the email. Your answer will lie there. Be careful about whom you tar, since it very well be someone you may justifiably hold in high regard. As for whether that person deserves to be chastised

RE: Fired???? was...Re: Struts Books Recommendations

2005-07-06 Thread Daniel Perry
Hah, it's the business use of web/email they fire you for. Go read your terms of employment, and the reference to IT acceptible use policy that you inadvertantly agreed to. There have been cases in the uk where they have done this as it's much cheaper to hunt out employees who have sent dodgy

Re: help with a newbie topic-prepopulating a form

2005-07-06 Thread Michael Jouravlev
On 7/6/05, Michael Jouravlev [EMAIL PROTECTED] wrote: Hmm, the description for CRUDAction does not have a link to the live demo. Here it is: http://www.superinterface.com/strutsdialog/cruditemlist.do This one uses two separate actions: one for the list and another for all crud operations. Thus,

Re: help with a newbie topic-prepopulating a form

2005-07-06 Thread Jeff Beal
On 7/6/05, Michael Jouravlev [EMAIL PROTECTED] wrote: On 7/6/05, Jeff Beal [EMAIL PROTECTED] wrote: Here's the last paragraph of the JavaDoc for the reset() method (emphasis in original): This method is *not* the appropriate place to initialize form value for an update type page (this

Re: Struts Books Recommendations

2005-07-06 Thread erikweber
Mark, I am sorry to hear it turned out this way. I hope this turns out to be a blessing in disguise and that you go on to get a better job after learning a tough lesson (not that I'm saying the punishment fit the crime -- in my opinion, based solely on postings to this list, it did not). Maybe

fake emails --- Re: M Galbreath

2005-07-06 Thread Aleksandar Matijaca
People, it is inconceivable to me that a dumb-witted employer can fire somebody over an email!! Don't these people know that a fake email can be created by anybody? I can make myself look like M. Galbreath in no time at all on email. All he had to say was --- This is not me, somebody is faking

help with a newbie topic-prepopulating a form

2005-07-06 Thread Michael Jouravlev
On 7/6/05, Jeff Beal [EMAIL PROTECTED] wrote: On 7/6/05, Michael Jouravlev [EMAIL PROTECTED] wrote: Jeff, I don't have a blind faith in word written by someone whom I have not even had a drink with. ;-) Michael. I never asked you to go on blind faith -- I quoted the documentation.

Printing Bills

2005-07-06 Thread Rafael Taboada
Hi folks, i'm developing a project in struts, this project is about selling management. When the user selects some articles in order to sell them, there is a module with the client name and the articles list. I need to print that object: the bill. I'm in a hurry and I need ur experience in

How to access the first item in a Collection in a JSP?

2005-07-06 Thread Mick Knutson
I have a Collection in my ActionForm, and want to access just the first object in that Collection. How can I do this? -- Thanks Mick Knutson (925) 951-4126 HP Consulting Services Safeway (Blackhawk Fastword Project) J2EE Architect --- MMS safeway.com made the following annotations.

Re: Printing Bills

2005-07-06 Thread Brad Balmer
Look at jasper for creating a pdf. Rafael Taboada wrote: Hi folks, i'm developing a project in struts, this project is about selling management. When the user selects some articles in order to sell them, there is a module with the client name and the articles list. I need to print that

[OT] Re: Fired???? was...Re: Struts Books Recommendations

2005-07-06 Thread Rick Reumann
Daniel Perry wrote the following on 7/6/2005 12:49 PM: Hah, it's the business use of web/email they fire you for. Go read your terms of employment, and the reference to IT acceptible use policy that you inadvertantly agreed to. (the below has nothing to do with Mark).. For the record, I'm not

Re: How to access the first item in a Collection in a JSP?

2005-07-06 Thread Wendy Smoak
From: Mick Knutson [EMAIL PROTECTED] I have a Collection in my ActionForm, and want to access just the first object in that Collection. How about... %@ taglib uri=http://java.sun.com/jstl/core; prefix=c % c:out value=${form.property[0]}/ -- Wendy Smoak

Re: Printing Bills

2005-07-06 Thread Aleksandar Matijaca
PDF is definitely the way to go While not strictly a struts thing -- the way to do it in my opinion is: text from the article --- XML (data from the article in XML format) --- create an XSL:FO file using some kind of a tool ( http://altova.com/ ) has demo software you can try for this --

Re: Printing Bills

2005-07-06 Thread Rafael Taboada
So aren't there any other way that PDF? -- Rafael Taboada Software Engineer Cell : +511-97753290 No creo en el destino pues no me gusta tener la idea de controlar mi vida

Re: Printing Bills

2005-07-06 Thread Michael Jouravlev
On 7/6/05, Aleksandar Matijaca [EMAIL PROTECTED] wrote: PDF is definitely the way to go I would not say that pdf is definitely the way to go. CSS with print media type and points or cm or inches for units (not pixels) should work quite well. Michael.

Re: help with a newbie topic-prepopulating a form

2005-07-06 Thread Rick Reumann
Michael Jouravlev wrote the following on 7/6/2005 12:26 PM: So, you use action forms both for input and output. This is great. Change the scope to session, throw in some methods, and you get yourself a backing bean. This is what it should be. Well, not really. I should be able to use a

Re: Printing Bills

2005-07-06 Thread Aleksandar Matijaca
There are a number of commercial products out there -- the products I outlined to you are open source, except the altova product... This is actualy much simpler then it seems Rafael -- have look at FOP... Regards, Alex. On 7/6/05, Rafael Taboada [EMAIL PROTECTED] wrote: So aren't there any

Re: Fired???? was...Re: Struts Books Recommendations

2005-07-06 Thread Michael Jouravlev
On 7/6/05, Rick Reumann [EMAIL PROTECTED] wrote: I can't believe I now have to watch what I say on this mailing list. You always have to watch what you say and do, Big Brother is watching. Kidding aside, I know this first hand. Weather, football and cars seem to be safe topics. Until you call VW

Re: Printing Bills

2005-07-06 Thread Martin Gainty
Rafael Now I understand.. You can use Crystal Reports to pretty print using cascading style stylesheets for formatting but if you want hardcopy used by most of the agencies of the US I would output to PDF Saludos Cordiales! Martin- - Original Message - From: Rafael Taboada [EMAIL

Re: Printing Bills

2005-07-06 Thread Nick Heudecker
I would either use JasperReports to create a simple report definition, or use IText to create the PDF. When we tried to use FOP, we had to embed the fonts which resulted in HUGE PDFs. On 7/6/05, Martin Gainty [EMAIL PROTECTED] wrote: Rafael Now I understand.. You can use Crystal Reports to

RE: Fired???? was...Re: Struts Books Recommendations

2005-07-06 Thread rah
Just to add another perspective. I've been a Struts list lurker for about 3 years and have enjoyed reading the posts. Programmers are often crazy and outrageous (which gives us our charm) , but I had a problem with Mark's remarks about East Indians being faggots. As a guy who has been in IT

Re: Newbie: Where to put instance for database access?

2005-07-06 Thread Aleksandar Matijaca
Create a singleton class, that holds the instance of a connection in a ThreadLocal class in that singleton -- this way you don't have to keep stuff in the session... Regards, Alex. On 7/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi! I have maybe a simple question: My web-app has

Re: Printing Bills

2005-07-06 Thread Aleksandar Matijaca
Interesting, we didn't have that problem at all. I just wish that there was a better way of including graphic objects that were created -on-the-fly... Regards, Alex. On 7/6/05, Nick Heudecker [EMAIL PROTECTED] wrote: I would either use JasperReports to create a simple report definition, or

Re: help with a newbie topic-prepopulating a form

2005-07-06 Thread Derek Broughton
Michael Jouravlev wrote: The only book I would follow without asking for explanation would be a nuclear power station operator's manual. In all other cases I have time to sit down and think things over. Strictly speaking, you shouldn't actually be operating a nuclear power station without

Re: M Galbreath

2005-07-06 Thread Derek Broughton
Larry Meadors wrote: I would like the person who sent this to know that they are the lowest form of life on the planet. Oh, please. That's why the idiot shouldn't have been using a government email address. I've skipped almost all of this, but at the very least he _did_ make threatening

Re: Newbie: Where to put instance for database access?

2005-07-06 Thread Ed Griebel
You should be using some type of data source or preferrably a connection pool based on a data source. Most web servers include a connection pool implementation and all that's needed is to define the connection pool, define the data source, and then link the two. Your web app will then get a

Re: Struts Books Recommendations

2005-07-06 Thread James Mitchell
You are kidding right? -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. http://www.edgetechservices.net/ 678.910.8017 AIM: jmitchtx Yahoo: jmitchtx MSN: [EMAIL PROTECTED] Skype: jmitchtx On Jul 6, 2005, at 10:19 AM, Mark

Re: Newbie: Where to put instance for database access?

2005-07-06 Thread BHansard
Depending on the level of usage to the database, I would recommend implementing a connection-pool and requesting a connection each time you need to query the database. If you hold a single connection for your application, you will limit your scalability and hurt performance based on the user

Re: [OT] M Galbreath

2005-07-06 Thread Nick Andros
Oh, please. That's why the idiot shouldn't have been using a government email address. I've skipped almost all of this, but at the very least he _did_ make threatening noises. You just can't go doing that on government time. Yep. If you can't say it to your boss' face, then you shouldn't

Re: [offlist] Re: Newbie Help

2005-07-06 Thread Rahul Akolkar
On 7/6/05, Frasso, Anthony [EMAIL PROTECTED] wrote: snip/ Instead of doing what I would expect, it prints out the the text of $(project.projectId} instead of its value. Note that I also tried using your JSP 2.0 recommendation, replacing the c:out tag with just ${project.projectId}. Same

Re: How to access the first item in a Collection in a JSP?

2005-07-06 Thread Zarar Siddiqi
Wel, I catually have something like form.cards[0].cardNumber, but it is also not an array. It is a collection. Doesn't matter, it works for both as long as you got a getCardNumber() in there. Wendy Smoak wrote: From: Mick Knutson [EMAIL PROTECTED] I have a Collection in my ActionForm,

Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations

2005-07-06 Thread Nick Andros
talk about an OT thread! 1) The inconsistency in what is protected. For example everyone today talks about tolerance. But what does this mean? What it ends up meaning is There are no moral absolutes so the only valid belief system protected is one that doesn't espouse moral judgments. But

Re: How to access the first item in a Collection in a JSP?

2005-07-06 Thread Martin Gainty
Mick- Or you could use map entry.. c:forEach var=entry items=${QUERYRESULT[FormName]} c:out value=${entry.key}/ - c:forEach var=eo items='${entry.value}' ${eo.name.value} /c:forEach /c:forEach HTH, Martin- - Original Message - From: Mick Knutson [EMAIL PROTECTED] To: Struts Users

Struts MVC design (was:: help with a newbie topic-prepopulating a form)

2005-07-06 Thread Michael Jouravlev
On 7/6/05, Adam Hardy [EMAIL PROTECTED] wrote: I pity the poor noob who asked the original question! Little did he suspect that he would spark off a dialog on advanced MVC design. This debate has come up before and for me, it is one of the weak points of struts - I remember a couple of years

Re: [offlist] Re: Newbie Help

2005-07-06 Thread Frasso, Anthony
Thanks for your help, Rahul. My current web.xml file looks like this: ?xml version=1.0? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app ... According to the wiki, it seems that I should

Re: How to access the first item in a Collection in a JSP?

2005-07-06 Thread Mick Knutson
Worked. Thanks.. Zarar Siddiqi wrote: Wel, I catually have something like form.cards[0].cardNumber, but it is also not an array. It is a collection. Doesn't matter, it works for both as long as you got a getCardNumber() in there. Wendy Smoak wrote: From: Mick Knutson [EMAIL

Re: help with a newbie topic-prepopulating a form

2005-07-06 Thread Craig McClanahan
On 7/6/05, Adam Hardy [EMAIL PROTECTED] wrote: Now there is talk of Struts in the future containing ActionCommands which can be substituted in place of Actions, and strung together in a chain, and presumably can perform View-Controller logic. If you look at Shale (with its support for both

(OT) Re: Struts vs .NET???

2005-07-06 Thread John Henry Xu
Hi Dakota Jack, very funny. I think someone had suggested to put this thread to OT. BTW, I don't want spend too much time on this and I had said enough about you in my emails. Now I can focus on my job and be more productive by not having to write getters and setters manually. Only when I

Re: Struts MVC design

2005-07-06 Thread Rick Reumann
Michael Jouravlev wrote the following on 7/6/2005 5:03 PM: The action class provides the event contract, while the action form does the dirty work. Well in this case the struts-config file would provide the contract and you could simply use one ForwardAction for everything. You've

Re: Struts MVC design

2005-07-06 Thread Michael Jouravlev
On 7/6/05, Craig McClanahan [EMAIL PROTECTED] wrote: On 7/6/05, Adam Hardy [EMAIL PROTECTED] wrote: Now there is talk of Struts in the future containing ActionCommands which can be substituted in place of Actions, and strung together in a chain, and presumably can perform View-Controller

Re: Struts and Generics

2005-07-06 Thread Michael Taylor
Java generics are a compile-time feature only. The compiler uses your extra information (parameterized types) in order to detect some errors and eliminate the drudgery of some casting for you. However, when you run the JVM it has no knowledge of generics. Therefore, if you have an instance

Re: Struts MVC design

2005-07-06 Thread Michael Jouravlev
On 7/6/05, Rick Reumann [EMAIL PROTECTED] wrote: Michael Jouravlev wrote the following on 7/6/2005 5:03 PM: The action class provides the event contract, while the action form does the dirty work. Well in this case the struts-config file would provide the contract and you could simply

need 2 parameters for html:link

2005-07-06 Thread Mick Knutson
I have the following that works almost fine: html:link forward=historicalTransactions paramId=commonEnrollmentID paramName=consumerValidatorForm paramProperty=commonEnrollmentID

Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations

2005-07-06 Thread Brandon Goodin
Would all you shad up and get back to talking about how dead struts 1.x is :) Long live Shale and JSF!!! Brandon On 7/6/05, Nick Andros [EMAIL PROTECTED] wrote: talk about an OT thread! 1) The inconsistency in what is protected. For example everyone today talks about tolerance. But what

Re: need 2 parameters for html:link

2005-07-06 Thread Michael Jouravlev
On 7/6/05, Mick Knutson [EMAIL PROTECTED] wrote: I have the following that works almost fine: html:link forward=historicalTransactions paramId=commonEnrollmentID paramName=consumerValidatorForm

Re: need 2 parameters for html:link

2005-07-06 Thread Rick Reumann
Mick Knutson wrote the following on 7/6/2005 6:42 PM: html:link forward=historicalTransactions paramId=commonEnrollmentID paramName=consumerValidatorForm paramProperty=commonEnrollmentID

Re: need 2 parameters for html:link

2005-07-06 Thread gvanmatre
On 7/6/05, Mick Knutson [EMAIL PROTECTED] wrote: I have the following that works almost fine: html:link forward=historicalTransactions paramId=commonEnrollmentID paramName=consumerValidatorForm

Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]

2005-07-06 Thread Christian Bollmeyer
On Wednesday 06 July 2005 19:48, Rick Reumann wrote: Hi, Daniel Perry wrote the following on 7/6/2005 12:49 PM: Hah, it's the business use of web/email they fire you for. Go read your terms of employment, and the reference to IT acceptible use policy that you inadvertantly agreed to.

Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]

2005-07-06 Thread Brandon Goodin
A Christian named Christian... that's original :) On 7/6/05, Christian Bollmeyer [EMAIL PROTECTED] wrote: On Wednesday 06 July 2005 19:48, Rick Reumann wrote: Hi, Daniel Perry wrote the following on 7/6/2005 12:49 PM: Hah, it's the business use of web/email they fire you for. Go read

Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]

2005-07-06 Thread Martin Gainty
Unfortunately in the US you can be canned for being too old or having the wrong religious views we have a ton of laws on the books but they are unenforced My question is how do I (an older engineer with politically incorrect views) get work in Germany Vielen Danke, Martin- - Original

Re: Struts MVC design

2005-07-06 Thread Craig McClanahan
On 7/6/05, Michael Jouravlev [EMAIL PROTECTED] wrote: On 7/6/05, Craig McClanahan [EMAIL PROTECTED] wrote: On 7/6/05, Adam Hardy [EMAIL PROTECTED] wrote: Now there is talk of Struts in the future containing ActionCommands which can be substituted in place of Actions, and strung

Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]

2005-07-06 Thread Brandon Goodin
Where do you work!? I am going to notify your boss of you disgruntle behavior on this list!!! No wonder why we have H1Bs. They never complain and just take their 2 cents an hour. And I mean that in the best possible way :p ;-) :D Brandon On 7/6/05, Martin Gainty [EMAIL PROTECTED] wrote:

Re: banned

2005-07-06 Thread blah blah blah
I am absolutely NOT kidding. The point is NOT that I was using my government email address to subscribe to a technical mail list. Nor is it that I was posting irreverent nonsense. The point is that somebody on this list copied selective posts with my government email address in the subject line

Re: banned

2005-07-06 Thread Niall Pemberton
I cc'd them on the message I sent to this list in a moment of madness at the rubbish arriving in my inbox and which I now regret. http://www.mail-archive.com/user%40struts.apache.org/msg29119.html Niall - Original Message - From: blah blah blah [EMAIL PROTECTED] To: Struts Users

  1   2   >