Accessing strust beans without

2005-11-04 Thread Lee Harrington
There are situations where just doesn't seem to parse. I've tried substituting <%= formBeanName.getPropertyName%> but it can't find "formBeanName". The form bean is therer as the works in other places in my jsp. How do we directly address the formBean's from within javascript? Lee

Hibernate 3 versioning/concurrency

2005-09-09 Thread Lee Harrington
Hi folks, Would love to get some "best practices" for setting up hibernate with struts. I'm gettin "staleobject" exceptions when I'm the only one editing. I had this problem with Hibernate 2 and eventually solved it, but never really understood. Now the problem is back, and I'm stuck again. N

Hib

2005-09-09 Thread Lee Harrington

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

2005-07-21 Thread Lee Harrington
Pick one. I use hibernatebut I'm sure iBatis is fine too. Either is preferable to writing your own. Lee On 7/21/05, Access Denied <[EMAIL PROTECTED]> wrote: > Alls, > > I can't seem to get a convincing answer to the question of using an > ORM utilitiy, DB interface framework, or home-grown

Re: Eclipse plug-in for Struts

2005-06-22 Thread Lee Harrington
I like MyEclipse -- http://www.myeclipseide.com Lee On 6/22/05, Tony Smith <[EMAIL PROTECTED]> wrote: > Is there an Eclipse plug-in for Struts or Tomcat so > that I can develop, debug, and test my web app all in > Eclipse? Right now, if I want to change something I > have to write my program in E

Re: Subclassing ActionForward

2005-05-18 Thread Lee Harrington
bad idea) > > Sure, you could get foo.jsp (from above) as a context-param, but I like to > keep my work in one place, the struts-config.xml file. > > -- > James Mitchell > Software Engineer / Open Source Evangelist > Consulting / Mentoring / Freelance > EdgeTech, In

Re: Subclassing ActionForward

2005-05-18 Thread Lee Harrington
Okhave a filter...it runs (use logging to determine this). I'm stuck on how to forward to the login page. Here's my filter code: public void doFilter(ServletRequest request, ServletResponse response, FilterChai

Subclassing ActionForward

2005-05-17 Thread Lee Harrington
I want to check to see if the user is logged in before performing any action, and redirect to the login page if they are not. For example...they have a page open and their session times outand then they click a button. Right now an error occurs because they are no longer logged in. I wrote a

Re: ANOTHER IDE

2005-05-02 Thread Lee Harrington
I like Eclipse with MyEclipse. MyEclips is a $30 per year subscription, but well worth it. Lee On 5/2/05, Rafael Taboada <[EMAIL PROTECTED]> wrote: > Hi folks... > > I'm using NetBeans as IDE. But i want to know if there is another > powerful IDE that supports working with struts... > > Net

logic tags with beans

2005-04-22 Thread Lee Harrington
Hi folks, I'm stumped trying to figure out how to compare a value to a bean. I'm in a logic:iteration loop. Element is the bean that holds property "lvl" which I want to compare to the bean "currentLevel". It's a tree, and I need to know when the tree branches. TIA, Lee --

Re: Queries and Paging

2005-02-28 Thread Lee Harrington
Since I use hibernate with my struts, in my service class I added the following: query.setFirstResult(pageStart); query.setMaxResults(pageSize); works great for paging through the records. Lee - To unsubscribe, e-mail: [EMAIL P

Re: Date fields and form processing

2005-02-23 Thread Lee Harrington
Thanks for your help. I changed the type to java.sql.Timestamp and my problem went away. I'm still having a tough time getting Hibernate to prevent 2 users from changing the same data. For any kind souls who know about such things, I've written up my problem on the hibernate forum. http://foru

Date fields and form processing

2005-02-22 Thread Lee Harrington
I have a date field: lastModDate I am using dynaForms and have the following form: My display of the form works fine. I can see the value...there are no type issues. When I try to save the value I get the following error: ==

Re: Request objects

2005-02-22 Thread Lee Harrington
Thanks to all who helped. I resorted to using a session variable as I wanted to save an object. Lee - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Request objects

2005-02-22 Thread Lee Harrington
Thanks for the help. I'm still stumped. When I call my "display form" action it has the following: request.setAttribute("test","test value"); it forwards to a jspthe jsp correctly displays the value with this code: Test: All is good. The jsp has a form wi

Request objects

2005-02-22 Thread Lee Harrington
Which is the way to forward that preserves the request object? Is it redirect="true" or redirect="false". I'm having trouble setting a request variable on display of an edit screenthat is available for the process form action when I hit the form submit. I'm trying to use the hibernate featu

Hibernate: when 2 users simultaneous edite

2005-02-22 Thread Lee Harrington
Perhaps this is a bit off topic, but I know there are struts users like me that use Hibernate: What happens when two people edit a record at the same time? Unless something is done, the last person to save winsthe first edits are lost. I'm seeking input on the following code I wrote to have s

Re: Hibernate object relational mapping

2005-02-10 Thread Lee Harrington
I use hibernate...it's not a "tool for those who don't know sql" -- as I've been a database developer for 20+ years. It's a tool for those who: 1. don't want to have to write a lot of redundant code just to insert, update, delete 2. don't want to have to hand code "class.property = recordset.getF

OT: Handling concurrency issues with web apps

2005-02-07 Thread Lee Harrington
Ok...here's a general development issue that conerns any web based app that is data entry oriented. I've been doing reporting systems so long, I've gotten a bit rusty with transactional development. What's the best strategy for avoiding "last save wins" concurrency issues? If two people open a w

Re: Java IDE's

2005-01-13 Thread Lee Harrington
Another vote for Eclipse (free) with MyEclipse ($30/yr) add on. Wonderfully inexpensive yet productive environment. Lee On Thu, 13 Jan 2005 15:56:32 +0530, Ashutosh Satyam <[EMAIL PROTECTED]> wrote: > Hi, > Though this is an off topic question, but still > I'm posting it here as I have found th

Re: Nested Struts Tags

2004-12-08 Thread Lee Harrington
8 Dec 2004 22:25:47 +0100, Vadim Petrenko <[EMAIL PROTECTED]> wrote: > Hi, Lee, > > Did you try ? > > > > > > > > > Vadim. > > > > -Original Message- > From: Lee Harrington [mailto:[EMAIL

Nested Struts Tags

2004-12-08 Thread Lee Harrington
I'm in a conundrum. I have a page that normally displays a pick list. Sometimes, though, I don't want folks to editso I just display the values. But for picklists, I don't want to display the value, but what the pick list resolves to. I already have the "list" the picklist uses in the reque

Re: Checking radio button based on object value

2004-12-02 Thread Lee Harrington
t; > { > > } > > > > My question now is how/where can I call > > > > Options options = > > (Options)request.getSession().getAttribute("userOptions"); > > > > From within my ActionForm class > > > > Thanks > > > >

Re: Checking radio button based on object value

2004-12-01 Thread Lee Harrington
I'll describe the scenario where you are using a database. In the action that is displaying "existing values" (ones in the database) 1. Retrieve record from database 2. Populate form bean with values from database 3. Forward to the jsp If you are not getting your values from the database

Re: Checking radio button based on object value

2004-12-01 Thread Lee Harrington
If you have and "fromBean" has properties "optionOne/optionTwo" -- then they should automatically be valued at whatever the bean properties are. Lee On Wed, 1 Dec 2004 18:19:09 -, Ciaran Hanley <[EMAIL PROTECTED]> wrote: > Hi, > > I have a form consisting of several radio buttons. Upon fo

Re: request between actions

2004-11-30 Thread Lee Harrington
redirect="false" :) Lee On Tue, 30 Nov 2004 21:17:08 +0100, moralesdefrías wrote: > Hi all¡¡ > > I need your help, please. > > I have an action that forwards to another action, and i'm loosing request > parameters. > > I have in struts-config this lines: > > > > but it doesn't work. >

Re: Post Validation

2004-11-24 Thread Lee Harrington
ailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow > > Sent: Wednesday, November 24, 2004 9:37 AM > > To: [EMAIL PROTECTED] > > Subject: Re: Post Validation > > > > > > You're on the right path, Lee. Instead of setting the "input" to the > > J

Post Validation

2004-11-24 Thread Lee Harrington
I'm using DynaValidator forms. Works great, except when you have pick lists and a validation fails. When the validation fails, it calls the form, but the code that puts the pick lists in the request scope isn't rerun. No biggieI put my lists in the session scope. However, I don't want them

Re: [OT] access Microsoft Access database from remote machine

2004-11-15 Thread Lee Harrington
Microsoft Access is not a "database server" -- it is not designed to be run on a local machine and process sql sent to it. However, you could set up tomcat on the same machine as the access databaseset a local connection from that tomcat...and call a java procedure on the remote tomcat, which

Action validation settings with dispatch actions

2004-11-08 Thread Lee Harrington
In my project I group the CRUD actions for a table into a single dispatch action class. I've found that sometimes I want the form validate to occur, sometimes I don't. To accomodate this, I always have to have two instances of my action mappings, one with validate set to true, the other to false.

Re: patterns for preloading forms and page scope data

2004-11-01 Thread Lee Harrington
Try creating a new action with validate="false" on those times you don't want to validate the data. Lee On Mon, 01 Nov 2004 13:06:31 -0500, Gary S. Cuozzo <[EMAIL PROTECTED]> wrote: > Hello, > I seem to always be struggling with a particular scenario in my Struts > apps and thought I would ask t

Handling errors in business objects

2004-11-01 Thread Lee Harrington
In my Action class, I call a business object -- that does a database action...and can return an exception. All is well, I can trap the exception. However, I am at a loss as to how to handle the error from there. Example code I've seen forwards to an error pagewhat I'd like to do is load Acti

Re: Exposing ActionForm and MVC fields

2004-10-15 Thread Lee Harrington
> In this case, i`m still suceptible to be > hacked by javascript, because of the ActionForm fields > exposure. > What about that??? Different actions. I'd reccomend a dispatch action class...with different methods depending on whether the buyer or seller submitted. That way, in the seller meth

Re: Validator not validating v. 1.2.4

2004-10-14 Thread Lee Harrington
Should your formname start with a "/" ? Lee On Thu, 14 Oct 2004 13:35:54 +0100, Jin Bal <[EMAIL PROTECTED]> wrote: > Hi Guys > > My validator config seems to be incorrect somewhere but I'm stumped as to what it > is. The symptoms are that the validator succeeds in all validations no matter wh

Re: Disappearing request values

2004-10-13 Thread Lee Harrington
onally, if you are > displaying a page for the user who must click to continue, try using > html:hidden tags so that new page's form will be able to pass your > variables, as you desire, without using a session scoped bean. > > Regards, > David > > > > -Or

Disappearing request values

2004-10-13 Thread Lee Harrington
I have an action that forwards to a second action. I set values in the request scope in the first action, but in the second action the values are null. I solved my immediate need by putting the value in a session. As the value is not needed for more than passing into the second action, I'd prefe

Re: iterate paging

2004-10-12 Thread Lee Harrington
On 12 Oct 2004 16:13:43 +0800, Sebastian Ho <[EMAIL PROTECTED]> wrote: > Does anyone has an example using struts iterate? How does indexId works? > > Sebastian Here's an example. I have a list "dataStoreList" in the request scope that I set via "request.setAttribute("dataStoreList",dataStoreList

Chaining Actions

2004-10-12 Thread Lee Harrington
I'm having a problem calling one action from another. Both are dispatch actions. Action 1 is called, does it's business, sets a request.setAttribute(), and forwards to Action 2 Action 2 is run, but none of the request variables are there. I get nulls with I "request.getAttribute". Lee ---