Showing stacktrace in jsp

2005-07-22 Thread Peter . Zoche
Hi! I wolud like to do the following: If an Action catches an Exception, I would like to forward to an error page that shwos some general message, such as There has been an error accessing tha database. But I would like to provide a link or something else (which is shown to for example all

Hi all, i'm new on struts

2005-07-22 Thread M4RC0
I've lot of experience on web development and want to know about struts, not only it's use but also the core implementation and internal struts proccesses... Do u know some articles, ebooks or else witch could help me? Thanks all and please continue sending interesting materials -- M4RC0

Re: Hi all, i'm new on struts

2005-07-22 Thread Samé
hi marco. madris yo le conozco marco no tiene ni idea de strust. On 7/22/05, M4RC0 [EMAIL PROTECTED] wrote: I've lot of experience on web development and want to know about struts, not only it's use but also the core implementation and internal struts proccesses... Do u know some

How to cancel a cancel

2005-07-22 Thread Kent Boogaart
Hi, I have a form that can be cancelled via an html:cancel button. When it cancels it submits back to its parent action. The problem is, the parent action can also be cancelled and so it thinks it has been cancelled and submits back to its parent in turn. Maybe some ASCII art will help. This is

Re: instantiation of actionforms in session scope

2005-07-22 Thread Martin Morawetz
I still have no solution to my problem, but I tested the application with Tomcat instead of Resin as Servlet-Engine, and it worked. Unfortunately we have to deploy the application with Resin. I think I will use the workaround and copy all the formular-data to a seperate object which I put in

Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread Larry Meadors
On 7/21/05, Nitish Kumar [EMAIL PROTECTED] wrote: Never worked with IBatis, so can not comment. I think I would still like to have the freedom of writing normal SQL queries while having the flexibility of using a mapping tool. I guess Hibernate does provide that kind of flexibility.

Re: [OT] Struts and Content Management

2005-07-22 Thread Glen Mazza
Just to be complete, for a heavily XML/Cocoon based solution, there is also Apache Lenya. I have not used it, however, and am uncertain of its quality. Glen Daniel Henrique Ferreira e Silva escribió: Hi BHansard, Do you really have to stick to Java for a CMS? If, and only if, java is not

Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread netsql
Frank W. Zammetti wrote: It has not been unusual to estimate three months for something, and that's fairly realistic to do it right, and the business says nope, 1.5 months is when we need it. I need you to paint the house, but I only have budget to wash my hair? That is no respect and a bit

Issue - Database Architecture

2005-07-22 Thread Vijay K Anand
Hi All I get error : java.sql.SQLException: Closed Connection: next when number of concurrent requests is more public class PortfolioMgmtAction extends Action{ private Connection con; public ActionForward execute(..){ this.con = dao.getConnection(); } } public class DAO { private

Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread Stéphane Zuckerman
Larry Meadors a écrit : I think I would still like to have the freedom of writing normal SQL queries while having the flexibility of using a mapping tool. I guess Hibernate does provide that kind of flexibility. Wo, you did a great job of describing iBATIS for not ever using it: It uses

Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread netsql
Stéphane Zuckerman wrote: Larry Meadors a écrit : I agree with previous comments saying that Hibernate is useful if your project is quite large. Otherwise, the time taken to set it up would be better used to do something else. It does add some complexity when thinking through a new project,

Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread Ed Griebel
All too often that's how it works. If you say no, there are people that will say yes. Even if they end up taking as much time as you said it would, they've got the project, not you. Sometimes the short time is understandable, possibly due to uncontrollable situations, but most of the time it's due

Design question

2005-07-22 Thread Daniel Łaś
Hi I'm interested in yours opinions about following design approach. I'd like to create some kind of view beans for viewable model beans. Those view beans can generate HTML for attached model bean. This generated HTML is based on resources, so I am able to generate different HTML code

Re: AW: AW: [OT] Struts and Content Management

2005-07-22 Thread BHansard
Thank you all for your input, we are evaluating several of the CMS apps that have been recommended. As always, I applaude the rapid feedback and knowledge that is available on this mailing list. thank you again. Leon Rosenberg [EMAIL PROTECTED] Leon Rosenberg [EMAIL PROTECTED]

Updating JSP causes Workspace to auto rebuild.. causing Tomcat to restart :(

2005-07-22 Thread jacob.willig
Updating JSP causes Workspace to auto rebuild.. causing Tomcat to restart :( I'm now turning off auto build when working in jsp's, obviously forgetting to switch it on when doing java class changes Any other way this can be solved? Jacob Willig ING Bank Europe Web Team OPSIT/ADC GS/AM COSS/EWT

Re: Design question

2005-07-22 Thread BHansard
I think you are re-inventing something here. To do what you are wanting is already in struts to some degree. you have your User Bean, You define an formbean which either contains UserBean or contains fields that match UserBean on your jsp page you create something like html:html local=true

Re: add a new message to a message resources file

2005-07-22 Thread dumbQuestionsAsker _
Nice to hear it, after making my own :) thank you very much. Dumbo From: Laurie Harper [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: user@struts.apache.org Subject: Re: add a new message to a message resources file Date: Thu, 21 Jul 2005 16:38:17 -0400

OT: StringUtil to trim dup subsequent characters

2005-07-22 Thread klute
hello all, my appologies for the OT. before i write this little util, is there such thing already present out there? I need to do something like: MyStringUtil.trimSubsequentOccurrences(String input, String pattern) Example: MyStringUtil.trimSubsequentOccurrences(it's a good day, ) - not

Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread Stéphane Zuckerman
netsql a écrit : So are you saying Hibreante for big complex or iBatis for big complex? I don't know about iBatis, but Hibernate is definitely for medium to big projects. The real complexity of Hibernate is in its configuration (there is more or less one Java class for each table in your

[OT] Re: Updating JSP causes Workspace to auto rebuild.. causing Tomcat to restart :(

2005-07-22 Thread Stéphane Zuckerman
[EMAIL PROTECTED] a écrit : Updating JSP causes Workspace to auto rebuild.. causing Tomcat to restart :( I'm now turning off auto build when working in jsp's, obviously forgetting to switch it on when doing java class changes Any other way this can be solved? I suppose you're using the

Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread DGraham
Hibernate Synchronizer is an Eclipse plugin that generates the config and mapping files as well as the VO/DAO classes. So, unless you want to hand-crank it OR you are an anti-Eclipse zealot, I suggest that you visit http://hibernatesynch.sourceforge.net/. Takes about an hour to have

Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread Access Denied
I bought James Elliott's Hibernate (O'Reilly Developer Notebook Series 2004), but a search for iBATIS on amazon returns books like Pocket Guide to the Birds of Britain and North-West Europe and An Introduction To The Mystical Use of Classical Persian Poems. Is there any timely definitive

Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread Stéphane Zuckerman
[EMAIL PROTECTED] a écrit : Hibernate Synchronizer is an Eclipse plugin that generates the config and mapping files as well as the VO/DAO classes. So, unless you want to hand-crank it OR you are an anti-Eclipse zealot, I suggest that you visit http://hibernatesynch.sourceforge.net/. Takes

Re: validation question...

2005-07-22 Thread Aleksandar Matijaca
I like the CSS 'trick' -- I will try it tonight ! Thanks again Wendy, Regards, Alex. On 7/22/05, Wendy Smoak [EMAIL PROTECTED] wrote: From: Aleksandar Matijaca [EMAIL PROTECTED] I would like to automatically place a little red * right beside the input field. For my password

Re: OT: StringUtil to trim dup subsequent characters

2005-07-22 Thread klute
Ed, Thanks! i forgot that i could actually use a pattern within the first arg of replaceAll best, James --- Ed Griebel [EMAIL PROTECTED] wrote: Try using String.replaceAll(), e.g., String x = helloworld; String y = x.replaceAll( +, ); -ed On 7/22/05, klute [EMAIL PROTECTED]

Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread Derek Broughton
netsql wrote: Frank W. Zammetti wrote: It has not been unusual to estimate three months for something, and that's fairly realistic to do it right, and the business says nope, 1.5 months is when we need it. I need you to paint the house, but I only have budget to wash my hair? That is

Re: Design question

2005-07-22 Thread Daniel Łaś
Well, I thing about something else. If UserView bean can generate HTML form fields dependig on User attributes, one for adding, another one for editing I could only change my User bean (model) and my view layer will work without change. I think that it is possible to write action that will

Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread Derek Broughton
Ed Griebel wrote: All too often that's how it works. If you say no, there are people that will say yes. Even if they end up taking as much time as you said it would, they've got the project, not you. Again, that's a situation where you are involving consultants. Consultants are expected to

Re: SelectAction - an improved DispatchAction

2005-07-22 Thread DGraham
1. Have you forgotten http://j2ee.lagnada.com/struts/html-buttons.htm? 2. History is riddled with examples of 2 or more people inventing/creating the same (fundamentally the same) thing simultaneously. Sometimes they were aware of the race, sometimes not. Witness the Wright brothers vs

RE: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread Daniel Perry
Again, that's a situation where you are involving consultants. Consultants are expected to know the technology and not learn it on their customers' time. When a company has its own IT staff, there are rarely opportunities for somebody else to underbid them. Really? the majority of the work

Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread Access Denied
I just shelled out $300 for JetBrains' IDEA because of recommendations from Larry and Rick from this list. Are there plugins for IDEA similar to those available for Eclipse? ~buddy On 7/22/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hibernate Synchronizer is an Eclipse plugin that generates

RE: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread McDonnell, Colm (MLIM)
Here's the address for the IntelliJ plugins homepage: http://www.intellij.org/twiki/bin/view/Main/IntelliJPluginsHome -Original Message- From: Access Denied [mailto:[EMAIL PROTECTED] Sent: 22 July 2005 14:57 To: Struts Users Mailing List Subject: Re: [OT] Hibernate vs. iBatis vs. POJO

Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread Larry Meadors
Are you asking me or Stéphane? I suspect most people who know me, know my answer: If I have a database and a choice, I am using iBATIS. :-) Larry On 7/22/05, netsql [EMAIL PROTECTED] wrote: Stéphane Zuckerman wrote: Larry Meadors a écrit : I agree with previous comments saying that

unable to parse xml string

2005-07-22 Thread temp temp
I get premature end of file sax exception when I try to parse a string which is an xml file returned from database as blob . I printed this string in console copied and pasted in browser .Browser displayed xml without any parse errors.Can somebody guide me what could go wrong or where did the

Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread DGraham
Not sure. However, the source code is available. Sounds like you're just itching to to decouple it from Eclipse? HUMOR I actually use IDEA (4 years now). The only reason I have Eclipse installed is for this plugin /HUMOR -Dennis Access Denied [EMAIL PROTECTED] 07/22/2005 09:56 AM

Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread Larry Meadors
You just lack appreciation for the finer things in life Buddy. Classical Persian poetry is really quite good. ;-) On a serious note: Basing tech decisions on who has more books out is similar to making them on the company with the higher stock price. Sun: $3.85; MS: $26.44...gosh, what does

Re: Design question

2005-07-22 Thread BHansard
There are several possibilities to do what you are asking. You will still have to modify HTML code, it is just where. I would not typically create multiple jsp pages for Add, Update, Display. I would create a single page using a DynaValidatorForm. this way you can use the same form and based

RE: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread Pilgrim, Peter
I think the jewel in the crown with the EJB 3 specification is actually the new persistent model sub part of it. Following Linda De Michels and Scott Crawford presentations at JavaONE this year, you should be able to persist POJOs with any O/RM implementation that supplies a

Re: How to cancel a cancel

2005-07-22 Thread Rick Reumann
Kent Boogaart wrote the following on 7/22/2005 5:49 AM: My actions for pages 2 and 3 have code like this in them: if (isCancelled(request)) { return mapping.findForward(FORWARD_CANCELLED); } My question is: is this the normal way to do it? If so, is there an easy / nice way to

Re: SelectAction - an improved DispatchAction

2005-07-22 Thread Niall Pemberton
I presume you're referring to the fact that Michael Jouravlev's flavour of DispatchAction uses the .x and .y suffixes which HTML appends to image button parameters to determine the method to execute as being code purloined from Michael McGrady? (If not, then what?) I agree that, to my knowledge,

Re: instantiation of actionforms in session scope

2005-07-22 Thread Martin Morawetz
Martin Morawetz schrieb: Hi to all, I use a formbean within session-scope (declared in struts-config.xml). However it behaves like it would be within request-scope. Every new page it gets instantiated again. I checked the sessionid and it is every page the same, so I guess am within the same

Re: Issue - Database Architecture

2005-07-22 Thread Daniel Henrique Ferreira e Silva
Hi Vijay, Have you ever tried iBatis? It is a framework that allows you to map sql statements to POJOs and takes care of a lot of issues like: mapping database types to java types, caching, dynamic sql, etc. It really works great, specially for legacy databases. You can get more information on

Re: SelectAction - an improved DispatchAction

2005-07-22 Thread DGraham
Let's recognize prior art: http://www.jguru.com/faq/view.jsp?EID=893423 - Dennis Niall Pemberton [EMAIL PROTECTED] 07/22/2005 11:33 AM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject Re: SelectAction - an

Re: How to cancel a cancel

2005-07-22 Thread Michael Jouravlev
On 7/22/05, Rick Reumann [EMAIL PROTECTED] wrote: Kent Boogaart wrote the following on 7/22/2005 5:49 AM: My actions for pages 2 and 3 have code like this in them: if (isCancelled(request)) { return mapping.findForward(FORWARD_CANCELLED); } My question is: is this

Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread Rick Reumann
Larry Meadors wrote the following on 7/22/2005 10:43 AM: Books are not always a requirement...do you have a book on bicycling or going to the bathroom? I guess some people do, but 99% of us do not because we can do it well enough without them. If I want to be the next Lance Armstrong or

Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread Rick Reumann
Access Denied wrote the following on 7/22/2005 9:56 AM: I just shelled out $300 for JetBrains' IDEA because of recommendations from Larry and Rick from this list. Are there plugins for IDEA similar to those available for Eclipse? Yup: http://plugins.intellij.net/plugins/ -- Rick

RE: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread Derek Broughton
Daniel Perry wrote: Again, that's a situation where you are involving consultants. Consultants are expected to know the technology and not learn it on their customers' time. When a company has its own IT staff, there are rarely opportunities for somebody else to underbid them. Really?

Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread Wendy Smoak
Access Denied wrote: it seems no one is writing their own DAOs anymore. No one except those of us who have no choice. :) I use a multi-valued database, IBM's UniData, which does not [easily] speak JDBC. (The DBMS can, but there is a third-party app sitting on top of it that severely limits my

Re: Issue - Database Architecture

2005-07-22 Thread Dave Newton
Vijay K Anand wrote: I get error : java.sql.SQLException: Closed Connection: next when number of concurrent requests is more public class PortfolioMgmtAction extends Action{ private Connection con; public ActionForward execute(..){ this.con = dao.getConnection(); } } public class DAO

[FRIDAY] Re: SelectAction - an improved DispatchAction

2005-07-22 Thread Dave Newton
Niall Pemberton wrote: I presume you're referring to the fact that Michael Jouravlev's flavour of DispatchAction uses the .x and .y suffixes which HTML appends to image button parameters to determine the method to execute as being code purloined from Michael McGrady? (If not, then what?) No

Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread Dave Newton
Wendy Smoak wrote: At one time I thought JDO was going to help, and Bean Managed Persistence has always sounded promising. Unfortunately, all of the examples are SQL based and I don't immediately see how to plug in this strange API that does not have Connection or DataSource. Has anyone else

Re: [OT] Re: Updating JSP causes Workspace to auto rebuild.. causing Tomcat to restart :(

2005-07-22 Thread Lionel
Stéphane Zuckerman wrote: [EMAIL PROTECTED] a écrit : Updating JSP causes Workspace to auto rebuild.. causing Tomcat to restart :( With MyEclipse and JBoss, I do not have this behaviour. Neither with WTP M3/M4/M5 nor with WSAD.

Re: [FRIDAY] Re: SelectAction - an improved DispatchAction

2005-07-22 Thread Michael Jouravlev
On 7/21/05, Dakota Jack [EMAIL PROTECTED] wrote: This code does not belong to Michael. It is purloined from www.michaelmcgrady.com and other discussion on this list. Michael did not even know the reasons for most of the code when he first proposed it as his own. To think he could have coded

Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread Ted Husted
On 7/22/05, Access Denied [EMAIL PROTECTED] wrote: Is there any timely definitive literature available for iBATIS? The definitive literature about iBATIS is published by the iBATIS team. * http://ibatis.apache.org/downloads.html Pro Spring also has an excellent chapter on iBATIS, and covers

[FRIDAY] MVC as metaphor

2005-07-22 Thread Ted Husted
On 7/11/05, Leon Rosenberg [EMAIL PROTECTED] wrote: Some time ago I tried to postulate an enterprise application as a row of mvc patterns each using the previous one as the model, and everyone laughed at me :-) If you look, you can find the MVC pattern everywhere ... not unlike the golden

Re: [FRIDAY] MVC as metaphor

2005-07-22 Thread Greg Ludington
Since it is Friday, don't forget: Curly, Larry, Moe :) Such good separation of layers they could swap in Shemp, Joe, and Curly-Joe without disturbing the others... -Greg On 7/22/05, Ted Husted [EMAIL PROTECTED] wrote: On 7/11/05, Leon Rosenberg [EMAIL PROTECTED] wrote: Some time ago I tried

Re: [FRIDAY] MVC as metaphor

2005-07-22 Thread Ron Grabowski
For more information on the golden rectangle: Donald in Mathmagic Land (1959) http://www.imdb.com/title/tt0052751/ :-) --- Ted Husted [EMAIL PROTECTED] wrote: On 7/11/05, Leon Rosenberg [EMAIL PROTECTED] wrote: Some time ago I tried to postulate an enterprise application as a row of

[FRIDAY] J2EE Web frameworks are in a state of flux

2005-07-22 Thread Michael Jouravlev
I was thinking about should I post a quote from an article which discusses a rival project? Then I thought, whatever. They already got Shale. http://www.devx.com/webdev/Article/28041/1954?pf=true Overall, J2EE Web frameworks are in a state of flux, having no clear technology leader. Struts is

Re: [FRIDAY] Re: SelectAction - an improved DispatchAction

2005-07-22 Thread Rick Reumann
Dave Newton wrote the following on 7/22/2005 12:32 PM: No offense to anybody, but hasn't everybody had to deal with this issue in one way or another if they've used images as buttons? I haven't had to deal with it. I haven't look at Michael Jouravlev's stuff but do remember discussing all of

Re: [FRIDAY] Re: SelectAction - an improved DispatchAction

2005-07-22 Thread Rick Reumann
Rick Reumann wrote the following on 7/22/2005 1:33 PM: onclick=myForm.dispatch.value='someDispatchMethod' You can use this kind of code with almost anything (with images just also add myForm.submit()). Easy to use and no need to figuure out how yet another flavor of

Re: [FRIDAY] J2EE Web frameworks are in a state of flux

2005-07-22 Thread Craig McClanahan
On 7/22/05, Michael Jouravlev [EMAIL PROTECTED] wrote: I was thinking about should I post a quote from an article which discusses a rival project? Then I thought, whatever. They already got Shale. http://www.devx.com/webdev/Article/28041/1954?pf=true Overall, J2EE Web frameworks are in a

Re: [FRIDAY] Re: SelectAction - an improved DispatchAction

2005-07-22 Thread Michael Jouravlev
On 7/22/05, Rick Reumann [EMAIL PROTECTED] wrote: I only see these current solutions having merit if you are *required* to not have any javascript. For me, this will never be a requirement and I doubt it will ever be. Since I can use javascript it's so easy for me to just add

Re: [FRIDAY] Re: SelectAction - an improved DispatchAction

2005-07-22 Thread Craig McClanahan
On 7/22/05, Rick Reumann [EMAIL PROTECTED] wrote: When you start adding alternative ways to have your disaptch method called, it becomes more confusing to try and figure out what actually gets called. This was a big beef I had with LookUpDispatchAction... it was so annoying to figure what

Re: Issue - Database Architecture

2005-07-22 Thread Ed Griebel
You need to be using connection pools rather than creating a raw JDBC connection every time you have a database access, this is why you are running out of concurrent connections. I suspect you are running out of connections because they are never close()d either. Most web/application servers

Re: [FRIDAY] Re: SelectAction - an improved DispatchAction

2005-07-22 Thread Dave Newton
Craig McClanahan wrote: This philosophy is one of the lessons we took to heart in designing JSF. In the particular case of buttons and hyperlinks, the label of the button and the binding to an action are separated and explicit: h:commandButton id=save value=#{messages['save.button.label']}

Re: [FRIDAY] J2EE Web frameworks are in a state of flux

2005-07-22 Thread Michael Jouravlev
On 7/22/05, Craig McClanahan [EMAIL PROTECTED] wrote: PS: If you like the concepts and approaches of Spring WebFlow, you will also like Dialogs in Shale ... it's the same conceptual model. I followed discussion on Spring forum about using SWF in JSF. I even put out some ideas (one of them is

Re: [FRIDAY] Re: SelectAction - an improved DispatchAction

2005-07-22 Thread Frank W. Zammetti
Since this topic is already a Friday topic, I don't feel bad going OT :) On Fri, July 22, 2005 2:04 pm, Craig McClanahan said: h:commandButton id=save value=#{messages['save.button.label']} action=#{mybean.save_action} .../ I noticed this last night watching a demonstration of

Re: instantiation of actionforms in session scope

2005-07-22 Thread Martin Morawetz
And here comes the solution, damm it. I put an object with properties which didn't implement the Serializable Interface into the Session. In the resin.conf (we still use Resin Version 2.1.6) always-load-sessiontrue/always-load-session was set. So when Resin loads the session, it couldn't load

[OT] Java .Net web services interoperability

2005-07-22 Thread Brent Vaughn
We have a web service written in Java and a C# client to consume the Java web service. We are trying to send SOAP messages with attachments, but the problem is that .NET only accepts DIME attachments. Is it possible for Java to send its SOAP attachments in the DIME format? Basically, does Java

Re: [OT] Java .Net web services interoperability

2005-07-22 Thread Dave Newton
Brent Vaughn wrote: We have a web service written in Java and a C# client to consume the Java web service. We are trying to send SOAP messages with attachments, but the problem is that .NET only accepts DIME attachments. Is it possible for Java to send its SOAP attachments in the DIME format?

Technique for undetermined time of processing - progress bar

2005-07-22 Thread David Erickson
Sorry for the vague subject. I've got a situation where I need to do some processing before moving a user to a specific page. The processing could be very fast or very long. I'd like to have some kind of a progress bar type meter than can show how much time is left. I will know for sure the

Re: [OT] Java .Net web services interoperability

2005-07-22 Thread Tom Ziemer
Hi Brent, yes that's possible. I've just implemented a web service (based on Apache Axis) that sends DIME Attachments. We have Java and .NET clients that can consume these. The only problem is that there is bug in the official 1.21 Axis Release so you would have to use the CVS version. Regards,

Re: [FRIDAY] Re: SelectAction - an improved DispatchAction

2005-07-22 Thread Frank W. Zammetti
On Fri, July 22, 2005 2:42 pm, Craig McClanahan said: The standard (HTML centric) set of JSF components was deliberately designed to use attribute names that are similar to (or identical to) the HTML attributes that they correspond to. The thinking was that newcomers to JSF who were using

error handling in forms

2005-07-22 Thread timo.traub
Hi. I want to show the error on a form at the specific field. I use logic:messagesPresent property=myProperty/logic:... But as this is kinda lot of code even in a small form I tried to use a tile instead. I pass the property with tiles:put to the definition and I can read that from the

Re: Design question

2005-07-22 Thread Ed Griebel
Hi Daniel- The idea of a smart bean which knows how to render itself is a pretty cool idea, and it's a clean idea conceptually. But, I think the Struts framework and struts jsp tags removes a lot of the hassle because of what it gives you out of the box. I've been faced with the same situation,

Re: Technique for undetermined time of processing - progress bar

2005-07-22 Thread BHansard
I use AJAX to kick off the process. For this case You can send an AJAX request to get the time, once recieved display a div that will contain the progress bar and submit a second request to run the actual process. On completion, you can forward the page to the next url. If you use DWR and can

Struts and 508

2005-07-22 Thread Sher, Allen - BLS CTR
Has anyone had any experience in making a Struts-based system 508-compliant? Since Struts support all standard HTML and XHTML elements and attributes, I would think it shouldn't be a problem. I just want to know if anyone has any horror stories to tell. Thanks.

Re: [FRIDAY] Re: SelectAction - an improved DispatchAction

2005-07-22 Thread Rick Reumann
Michael Jouravlev wrote the following on 7/22/2005 2:58 PM: But what about a newbie who just wants a better dispatching action? He wants to get all needed service from a framework. What are you suggesting him? Go search mailing list, find Rick's site, read lessons, see why it does not work,

Session mixup

2005-07-22 Thread Srinivas Gunturu
We are having a strange session mixup in our application. Environment Tomcat 5.0 Struts 1.2.7 Tiles Upon successful user login, we store user bean class with user info such as name, department, phone on session. This profile is used for keeping track of who is entering data

Re: Session mixup

2005-07-22 Thread Dave Newton
Srinivas Gunturu wrote: We don't have any static method calls or static objects we reference in action classes. Do you have any _instance_ variables in any servlets, actions, filters, etc.? I will almost guarantee you that you are accessing a non-synchronized object or instance data.

Re: Session mixup

2005-07-22 Thread Srinivas Gunturu
Most of our action classes are extended from a BaseAction class which initializes protected variables such as session, user bean, ActionForm, request and response objects inside an init method which is called by decendents in the execute method. Sounds like instance variables inside an action

Re: Session mixup

2005-07-22 Thread Dave Newton
Srinivas Gunturu wrote: Most of our action classes are extended from a BaseAction class which initializes protected variables such as session, user bean, ActionForm, request and response objects inside an init method which is called by decendents in the execute method. Sounds like instance

Re: Session mixup

2005-07-22 Thread Dave Newton
Srinivas Gunturu wrote: Most of our action classes are extended from a BaseAction class which initializes protected variables such as session, user bean, ActionForm, request and response objects inside an init method which is called by decendents in the execute method. Sounds like instance

Re: Session mixup

2005-07-22 Thread Srinivas Gunturu
That fixed our problem that has been nagging us for little over a week. If only, I had posted this earlier to the group :-) Thanks a bunch [EMAIL PROTECTED] 07/22/05 4:17 PM Srinivas Gunturu wrote: Most of our action classes are extended from a BaseAction class which initializes protected

nested html:form

2005-07-22 Thread Tony Smith
If I have a html:form, can I have another html:form inside it and pointed to a different action? For example: html:form action=outter.do ... html:form action=inner.do ... /html:form /html:form __ Do You Yahoo!? Tired of spam? Yahoo!

Re: nested html:form

2005-07-22 Thread Wendy Smoak
From: Tony Smith [EMAIL PROTECTED] If I have a html:form, can I have another html:form inside it and pointed to a different action? For example: html:form action=outter.do ... html:form action=inner.do ... /html:form /html:form No, it's invalid HTML.

Re: SelectAction - an improved DispatchAction

2005-07-22 Thread Dakota Jack
Actually, the image buttons were not using that idea. Any idea that does something with image buttons at all must account, of course, for the fact that the key in the key/value pair has an x and a y appended. That, of course, is a red herring and not the issue at all. Since you pick something

Re: [FRIDAY] Re: SelectAction - an improved DispatchAction

2005-07-22 Thread Dakota Jack
No is the answer. On 7/22/05, Dave Newton [EMAIL PROTECTED] wrote: Niall Pemberton wrote: I presume you're referring to the fact that Michael Jouravlev's flavour of DispatchAction uses the .x and .y suffixes which HTML appends to image button parameters to determine the method to execute as

html:select onchange

2005-07-22 Thread Tony Smith
I have html:select in my jsp. When user make a new seletion in the select, I could like to go ot a new page and use the current selected item as parameter. How can I do it? Here is my jsp: html:select name=myform property=myfield onchange=location.href='mynewpage.do?para=XX' ... /html:select

Re: [FRIDAY] Re: SelectAction - an improved DispatchAction

2005-07-22 Thread Dakota Jack
Clearly people don't even think it is worth understand what the hell is going on here. They don't know much more about it than you did. You should be careful about these things, in my opinion, and certainly an open source project should be. I note that Niall was going to put that code in and

Re: [FRIDAY] Re: SelectAction - an improved DispatchAction

2005-07-22 Thread Dakota Jack
Yes. McGrady made a big deal of that. www.michaelmcgrady.com. On 7/22/05, Rick Reumann [EMAIL PROTECTED] wrote: Rick Reumann wrote the following on 7/22/2005 1:33 PM: onclick=myForm.dispatch.value='someDispatchMethod' You can use this kind of code with almost anything (with images just

Re: [FRIDAY] Re: SelectAction - an improved DispatchAction

2005-07-22 Thread Dakota Jack
J. you don't even understand your own code. How can you make a decision? On 7/22/05, Michael Jouravlev [EMAIL PROTECTED] wrote: On 7/22/05, Rick Reumann [EMAIL PROTECTED] wrote: I only see these current solutions having merit if you are *required* to not have any javascript. For me, this

Re: [FRIDAY] Re: SelectAction - an improved DispatchAction

2005-07-22 Thread Dakota Jack
Which has been a long time, then. I think this burgeoning technology almost predates Java itself, doesn't it? Anyway, I don't believe this. Let's see the proof, Craig. If you mean the image button stuff, like the other rocket scientists, then that is irrelevant. PS: Don't tell DJ, but JSF

RE: How to cancel a cancel

2005-07-22 Thread Kent Boogaart
Thanks for the suggestions guys. I stared at this one a bit longer and this is what I came up with...I put this code in my action class: @Override public ActionForward cancelled(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { return

Re: SelectAction - an improved DispatchAction

2005-07-22 Thread Craig McClanahan
On 7/21/05, Dakota Jack [EMAIL PROTECTED] wrote: This code does not belong to Michael. It is purloined from www.michaelmcgrady.com and other discussion on this list. In the midst of chuckling at the assertions made in this thread, a serious comment for DJ (and others like him) to consider.