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
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
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
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
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
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
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
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
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
--
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
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
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:
==
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]
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
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
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
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
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
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
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
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
t; > {
> > }
> >
> > My question now is how/where can I call
> >
> > Options options =
> > (Options)request.getSession().getAttribute("userOptions");
> >
> > From within my ActionForm class
> >
> > Thanks
> >
> >
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
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
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.
>
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
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
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
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.
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
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
> 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
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
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
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
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
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
---
38 matches
Mail list logo