http://andromda.org/
DISCLAIMER: I do not endorse MDA. I just know _of_ the technology and have
used it. So don't bite my head off thanks.
On 9/22/06, SrinivasaReddy <[EMAIL PROTECTED]> wrote:
HI All..,
I want to generate hibernate code by using hibernatetools-3.1.0.beta5.
but i dont know ho
HI All..,
I want to generate hibernate code by using hibernatetools-3.1.0.beta5.
but i dont know how to do
Any one know help me
we are using
Struts 1.2
Hibernate3
MyEclipse4.1.1+EclipseSDK3.1
and
i downloaded the hibernatetools-3.1.0.beta5
Got it... had to explicitly set the Content-Type of the request to
application/x-www-form-urlencoded on the XMLHttpRequest object. Didn't
even occur to me because I set the method to POST, didn't even consider
that might not be sufficient. Weird thing is, I know I have code where I
POST but don't
Quick update: it has something to do with the fact that its an AJAX
request at the end... or because its a POST, one or the other... I built a
URL with the parameters as a query string, and it worked fine... I don't
know what it is yet yet, exploring now... the request looks identical
aside from me
Can you just use simple objects in the form?
public class MyActionForm extends ActionForm {
AnotherActionForm1 af1;
AnotherActionForm2 af2;
MyActionForm() {
af1 = new SimpleObject1AsAnotherActionForm1();
af2 = new SimpleObject2AsAnotherActionForm2();
}
}
Access:
<%= masterFor
On Fri, September 22, 2006 3:59 pm, Hubert Rabago wrote:
> I can't see anything that would cause your problem.
> I guess if it were me, I'd fire up my debugger and start stepping
> through some code.
> Sorry.
Yeah, that's the next step. Was hoping to avoid it with an easy answer,
but that's the w
I can't see anything that would cause your problem.
I guess if it were me, I'd fire up my debugger and start stepping
through some code.
Sorry.
All I can say at this point is that I know what you're doing is
possible cause that's how FormDef does nested beans.
Hubert
On 9/22/06, Frank W. Zammett
On Fri, 2006-09-22 at 17:30 +0300, Ilja S. wrote:
> Hello
> Could you please explain why i get "JspException: Wrong format string:
> '###,###.00' " when I use when
> other then "EN" locale is in user's session?
>
> At the same time if use "format" tag
> then no matter what locale is in sessio
It still sounds like Struts is getting nulls for the subbeans when it
tries to populate subbean.fieldX. Put some more logging, this time in
the getters for the subbean in MasterForm, and log what it's
returning.
Hubert
On 9/22/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
As a follow-up, I
As a follow-up, I threw some logging in the field1 and field2 setters in
the subbeans... they don't appear to ever get called. I don't have to do
anything special to tell Struts I'm using nested beans, do I? I didn't
think so...
Frank
--
Frank W. Zammetti
Founder and Chief Software Architect
Either that or create new beans (if they're null) when their getters are called.
By the time Struts attempts to populate the form bean, the nested
forms should already be instantiated. MasterForm.getAction1Form() and
MasterForm.getAction2Form() should not return a null.
Hubert
On 9/22/06, Chri
In your no-arg constructor of your outer ActionForm (the container), make
sure it instantiates each of the nested ActionForms using their no-arg
constructors.
(*Chris*)
On 9/22/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
Sorry, by af1 and af2 I did mean actionForm1 and actionForm2... my m
Does it have to be a parameter? You should be able to do
request.setAttribute("id","1"), which you can retrieve in Action 2 with
request.getAttribute("id").
(*Chris*)
On 9/22/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
The ActionForward instances returned by findForward() are unalterable
I'm just guessing but is global.format missing from your other
ApplicationResource files? Maybe it's trying to tell you it couldn't find
the right format string for the users browser, not that the string itself is
invalid.
(*Chris*)
On 9/22/06, Ilja S. <[EMAIL PROTECTED]> wrote:
Hello
Could y
Sorry, by af1 and af2 I did mean actionForm1 and actionForm2... my mistake
wasn't quite *THAT* obvious! ;) LOL
Frank
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projec
Hi Hubert,
Yes, I get nulls for af1 and af2... I do have getters and setters for them.
Lemme throw some data your way... I was hoping to avoid posting all this,
but I suspect there to be something my eyes just aren't catching, so...
Here's ActionForm1:
package app.test.formbeans;
import org.a
So what does happen when you submit the form? Are you getting NPEs?
By the time Struts attempts to populate the form bean, the nested
forms should already be instantiated. You should have getters and
setters for af1 and af2, and getAf1() and getAf2() should not return a
null. This could be an
The ActionForward instances returned by findForward() are unalterable,
that's what the exception is telling you. What you can do is:
ActionForward fwd = new ActionForward(mapping.findForward("gf_action2"));
That gives you an exact copy of the forward, and you can then alter it as
required.
Fran
Hi, thank you very much.
But I got the "java.lang.IllegalStateException:
Configuration is frozen"
exception.
Could you please help me?
Thanks,
qq
--- "Givler, Eric" <[EMAIL PROTECTED]> wrote:
> Can't you do something like this:
>
> fwd = mapping.findForward( "gf_action2" );
> fwd.setP
I'm facing a situation where ideally I'd like to have a single ActionForm
like so:
public class MyActionForm extends ActionForm {
AnotherActionForm1 af1;
AnotherActionForm2 af2;
}
When in my JSP I do:
...I do indeed see the value as I expect. The way I did this is to have
an Action mappin
http://tomcat.apache.org/connectors-doc/howto/workers.html
Search for "sticky_session" on this page.
-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED]
Sent: Friday, September 22, 2006 11:42 AM
To: 'Struts Users Mailing List'
Subject: New Session PER REQUEST
I have a seri
Hi all,
I use Ajax on my application, but after the ajax is execute, the focus is
lost, is there a way of keep the focus?
Can't you do something like this:
fwd = mapping.findForward( "gf_action2" );
fwd.setPath( fwd.getPath() + "?id=100");
return fwd;
gf_action2 would be a global-forward to action2.
-Original Message-
From: Tony Smith [mailto:[EMAIL PROTECTED]
Sent: Friday, September 22, 2006 10:46 AM
I have a serious problem.
I'm running a webapp built on Struts 1.2.9 running in Tomcat 5.5 and using
an Apache 2.2 http server. I've noticed that any value I put into the
session is always removed after one request/response cycle. In the Tomcat
Manager, I can see that every time I hit the webapp a
What's the leading "/" for?
-Original Message-
From: Martin Burkhart [mailto:[EMAIL PROTECTED]
Sent: Friday, September 22, 2006 9:40 AM
To: user@struts.apache.org
Subject: Migrating Struts application from weblogic 8.1 to 9.2
Hi
Im trying to get my struts 1.2.7 application running prope
Hi,
I have to actions, action1 and action2,
Inside action1,
protected ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse respose)
Hi,
I have to actions, action1 and action2,
Inside action1,
protected ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse respose)
Hello
Could you please explain why i get "JspException: Wrong format string:
'###,###.00' " when I use when
other then "EN" locale is in user's session?
At the same time if use "format" tag
then no matter what locale is in session it is working fine AND do
format according to locale
Than
Hi
Im trying to get my struts 1.2.7 application running properly on
weblogic 9.2. It is working fine on weblogic 8.1 but page forwarding
doesn't seem to work on 9.2. Here is what I did to the application in
order to being able to compile it with the weblogic application
compiler:
- Made web.xml c
Yeap, I try the two solutions, give the url a random number (don´t work for
me, but for many people did) and use the 3 lines that I put on a previus
mail for no caching, that works for me.
Thanks
2006/9/22, Francesco Azzola <[EMAIL PROTECTED]>:
It is possible to append ad the URL end a random
It is possible to append ad the URL end a random number to avoid cache problems.
I tried it and it works fine with IE and FireFox.
Bye
F.
__
Do You Yahoo!?
Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto
spazio gratuito
I got everything I needed !
Ciao, marcello
-Messaggio originale-
Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Inviato: giovedì 21 settembre 2006 18.37
A: user@struts.apache.org
Oggetto: RE: Handling breadcrumbs with Struts
Creating a working sample would be quite a bit of work, and I
32 matches
Mail list logo