Some people use the @struts.form XDoclet tags to create their form classes,
although I wasn't able to get it to work with non-EJB classes. I've written
an XDoclet extension to create dynamic form bean definitions to get around
this.
Your problem is that you're going from HBM > Java Bean > Form Be
I'd be incredibly surprised if someone wrote a program (or ant task) to
auto-create a basic JSP listing html:whatever tags. How could a programmer
know from the *.hbm.xml file if a field should be a checkbox, a radio
button, an input field, a file upload, a textarea, or anything else? If it
did m
Good point about cglib-asm.jar. The standalone was 2.0.3. As for the other
2 jar files, I've got jcs.jar in my 2.1.X webapp (plus others that might
just be for displaytag, not necessarily for hibernate 2.1.X. Hrm... last
try, does this page help:
http://www.hibernate.org/166.html because it li
David, It works perfectly fine.
You see, based on, for instance, Person.hbm.xml,
hbm2java will generate Person.java
but since I use struts, I still need to generate PersonForm.java
and Person.jsp
PersonForm would be very similar to Person.java, with the difference is that
in PersonForm, all field
The jar's I'm not using are all listed in the 2.1 readme as optional, or
should be. It's late :-)
Are you sure you are using 2.1.x of Hibernate? Cglib-asm.jar hasn't been
used since 2.0.3
> c3p0.jar
> cglib-asm.jar missing from your 2.1 definition
> commons-beanutils-1.6.1.jar commons-col
What's wrong with the hibernate extension tools
and the Code Generator that creates .java files from
the hbm.xml files you give it?
See:
http://prdownloads.sourceforge.net/hibernate/?sort_by=date&sort=desc
Item: hibernate-extensions-2.1.zip (or the 2.0.2 zip file for 2.0.X
versions)
I've only use
H -- It might be me after all. I'm going to sleep now, but just I
discovered one of the other libraries I had was set up to be dependent
on the struts jars. I'm never going to use this "feature" of JBuilder
again, because that dependency was aimed at a Struts Nightly Build that
was older than t
Altough my question is related to hibernate, I hope it's still relevant.
Is anyone aware of tools, open source is better, that can generate
ActionForm and the JSP's (containing struts's HTML Input tag)
based on a hibernate's mapping (i.e. *.hmb.xml)?
cheers,
dion
---
Joe,
JBuilder isn't something I'm familiar with, so I'll end the night with this
information:
I made a stand-alone Hibernate java program and it needs the below jars.
I've made a note next to the few jar's I see your 2.1 definition does not
include.
c3p0.jar
cglib-asm.jar missing from your
http://jakarta.apache.org/struts/userGuide/struts-bean.html#cookie
It looks like that is for defining a scripting variable (to use in your JSP)
from a cookie, rather than for writing a cookie to the response.
-Max
- Original Message -
From: "chaitu_4_u2003" <[EMAIL PROTECTED]>
To: <[EMA
I'm using JBuilder 8 and the version of Tomcat it comes with: 4.1.12,
which could use updating, but hey.
I've declared in JBuilder "Library" definitions for each of the
Hibernate Distributions. They are below. I've trimmed some out of the
Hibernate 2.1.2 definition to rule out things, but I think
How can this be, Martin, when the method getMap() has no parameters? What
is the point of the getValue/setValue methods? This is very confusing to
me at this point.
At 10:33 AM 4/22/2004, Martin Cooper wrote:
What are you actually trying to do, Michael? Given the code you have below,
and assum
Martin, thank you very much for sharing your knowledge.
In my first Struts project, (now i'm about to embark a second one,
so i'm thinking of better designs etc), I use one Action for
several use cases, I'll try your suggested approach then.
For others, sorry that when I create the new thead by re
Joe,
How are you switching between Hibernate versions 2.1.X and 2.0.3? What is
your application manager? Tomcat? Are you fully shutting down Tomcat and
restarting or are you simply stopping the webapp, changing jars in the
WEB-INF/lib directory, and restarting it? Which jars are you switching?
Dies almost before it begins. Hibernate Logging is set to debug.
This is everything before the exception
StandardManager[]: Seeding random number generator class
java.security.SecureRandom
StandardManager[]: Seeding of random number generator has been completed
StandardContext[]: Servlet thre
Make sure that the DOCTYPE for your web.xml specifies Servlet 2.4
Avinash Gangadharan wrote:
Hi All,
I'm trying to use the jstl/functions tag library and cannot seem to make
it work.
In my jsp I have something of the this sort:
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"
Toby,
Struts ActionServlet only allow configuration for one mapping. From your
experiments, the last one in the web.xml sounds like it takes precedence and
resets internal ActionServlet settings for the latest mapping. Think of it
this way: If you had two mappings, how would you make the html:fo
Do you have any hibernate related messages in any of your logs? And the one
or two lines above/below NoClassDefFoundError?
Regards,
David
-Original Message-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 22, 2004 5:02 PM
To: 'Struts Users Mailing List'
Subject: RE: Hiber
Martin
Something similar came up where someone wanted to throw some kind of
security exception if the user wasn't logged on - they had it working fine
with the execute() method of their actions but wanted to also do the same
kind of thing in the ActionForm.validate() method. Do you think theres a
Thanks, Martin. I want to use the getValue method with
Michael
At 10:33 AM 4/22/2004, Martin Cooper wrote:
What are you actually trying to do, Michael? Given the code you have below,
and assuming you have a Page instance stored as an attribute named "foo" and
want to print out the value of the
I have my action servlet mapped to 2 different url patterns (which are used for
filtering purposes elsewhere in my site). It seems the order of my servlet mappings
affects the action attribute of my form by appending of the suffix of the last mapping
to the end of the form's action.
As an exam
"Jing Teng" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi All,
>
> I am using the file upload features in a web application. Basically the
app
> has three components. Application.jsp has a html form, the form is
captured
> in JobApplicationActionForm, the action of the form is
My understanding of it (which could be incorrect) is that setLocale(request,
locale) only sets the locale that Struts uses internally. It doesn't set the
locale that the request object uses, or any other processes that looks for
locale in the request object.
If you somehow need the locale that you
Unfortunately, not a bit :(
It's not getting to the point of storing the SessionFactory in the JNDI
tree or Servlet Context. It dies on construction of the SessionFactory.
Ted's Plugin from the Struts-Hibernate example (still there as it turns
out) avoids JNDI anyway.
The current plugin listed o
As anyone who's probably tried to put an array of objects as part of a
DynaForm knows, if you try to submit a form with the array on it, struts
in it's infinite wisdom does not create the array correctly, but instead
throws an ArrayOutOfBounds exception. I've extended DynaValidatorForm
and made it
Hi All,
I'm trying to use the jstl/functions tag library and cannot seem to make
it work.
In my jsp I have something of the this sort:
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"; %>
The length is : ${fn:length( str )}
The standards-example webapp that comes as a par
we wrote our own. we might be doing this back-assward, but basically our
first step is to put the factory we want into the JNDI tree. with tomcat
or resin, this is done in server.xml or web.xml; in weblogic it's done
with a startup class (ours is ContentServiceFactoryStartup, it puts an
instance of
OK. At least I know you got the message. Hope somebody has an idea,
because I'm really lost!
> Option (c) - but that's just in my case..:)
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROT
Option (c) - but that's just in my case..:)
> -Original Message-
> From: Hernan Soulages [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 22, 2004 4:18 PM
> To: [EMAIL PROTECTED]
> Subject: setLocale 2.0
>
>
> I sent a message asking about a problem with setLocale. Since
> I haven't
>
In option 1:
Option 1, states that both editEntryAction and createEntryAction have
Different entries in the strutst-config.xml with their 'name' attribute
set
To their used form name.
What if you have a form that is similar both for create and update.
In the JSP, which action would you put in the
I sent a message asking about a problem with setLocale. Since I haven't
received any anwser, I think one of three thing has happened:
- You didn't receive it.
- It was too stupid a question to bother anwsering (hope not!).
- Nobody has a cleu of what is happening to me.
Wichever is the case, please
Hi All,
I am using the file upload features in a web application. Basically the app
has three components. Application.jsp has a html form, the form is captured
in JobApplicationActionForm, the action of the form is to apply.do.
The application runs well at most of the time, but when the resume
+1.
I've been down the "option 2" road and things get messy fast.
I've since switched to the first option and applications scale much
easier.
robert
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Martin Cooper
> Sent: Thursday, April 22, 2004 1:52 PM
> To: [EMAIL
What Plugin are you using?
Specifically, how do you go about generating your SessionFactory?
> -Original Message-
> From: John McGrath [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 22, 2004 2:13 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Hibernate 2.1.X and Struts 1.2
>
>
or you can do this:
in the Validation:
errors.add(new ActionError("topForm","app.resource.str")); //for the top form
errors.add(new ActionError("bottomForm","app.resource.str")); //for the bottom
form
in JSP:
//put above topForm
//put above bottomForm
got it?
Henrique Viecili
- Origin
I should know this, but does the initial property in struts-config work for this (Is
this actually what it is set to when reset() is called?)
I know that dynaforms have an initialize() method that should be called that takes all
the initial properties.
Hopefully overriding is not your only opti
Thanks for your help, but after another developer had a moment it turned out
to be something as simple as the fact I had removed the default no-arg
constructors from my ActionForm classes. When I was "cleaning" up some code
I removed these without thinking.
-Original Message-
From: Niall
Hi Toby,
You can define an extra servlet definition with the same class but
different name to use in your second servlet mapping. Something like
this:
actionOne
org.apache.struts.action.ActionServlet
config
/WEB-INF/struts-config.xml
1
actionTwo
o
Hi guys,
I am very new to this grouop and this is my first mail to the
group.
I have one problem
when iam using the tld with
i want to use the setmaxage() method to this cookie.
how do i use it please help, i need to deliver.
regrds
chaitu
-
hi out there!
I've written a jsp with a form and some checkboxes within.
So, there is the problem with unchecked boxes, they will not sent.
The solution to this problem should be to overwrite the reset() method and set the
value to FALSE.
But, how to do that with an DynaAction
Can anybod
I have my action servlet mapped to 2 different url patterns (which are used for
filtering purposes elsewhere in my site). It seems the order of my servlet mappings
affects the action attribute of my by appending the suffix of the last
servlet mapping to the end of the form's action (usually the
Look at the form class. If it couldn't find the class it should throw a
ClassNotFoundException, the fact that it throws an InstantiationException
implies theres a problem with how the class is defined - its not abstract is
it or an interface?
Niall
- Original Message -
From: "Brian Ivey"
Put the html:errors tag above the first form only at top.
-Original Message-
From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 22, 2004 1:27 PM
To: [EMAIL PROTECTED]
Subject: Displaying Error Message on Top
Hi
I hv defined separate form for top(xyzForm) and
Hi
I hv defined separate form for top(xyzForm) and body(xyzForm) of my jsp page and both
are of the same form (XyzForm) and I hv a single action class(XyzAction) for both the
form and I'm validating both form fields(top and body) is there anyway I can display
error message belongs to top on top
we're using Struts 1.2 and Hibernate 2.1, works great, though it took a
little fiddling with the jars and classpath to get it going. also, we
had some problems with the version of cglib2 that came with hibernate (i
think it was RC2), so we downloaded the final version of 2, that worked.
we also ha
After several months of working on new additions to our web application, I
have returned to a module that was working well not so long ago. Now I get
this error:
java.lang.InstantiationException: mypackage.myactionformname
The location of this error as reported by chainsaw is:
org.apache.struts
There are some major advantages to the first option, especially when you're
building a large and/or highly customisable application. A couple of
examples:
* It is much easier to reconfigure your application. without needing to
change any Java code. You may think you know which "actions" are relate
What are you actually trying to do, Michael? Given the code you have below,
and assuming you have a Page instance stored as an attribute named "foo" and
want to print out the value of the "bar" entry in your map, this might be
what you want:
The "map" refers to your getMap/setMap property - you
Thank you. I got it. I need to introduce a new attribute "done" in the
request scope and check for this existance on the window open.
Thank you Geeta and Nathan!
From: "Geeta Ramani" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[
My Intention was to create a "mulitpurpose"-Collection, that contains
some stuff I need regulary. But maybe it's a better approach to split
them into several collections and then use the -Tag because sometimes I need
an entry in the comboxbox preselected and the struts
-Tags handle this quite well.
Sudheshna:
I think you may be misstating the problem whne you say "exzamine the errors object in
the child window" and thereby tying yourself in knots. :) Because really the
"examination" is happening in the action. This may be why you have not seen what
Nathan has been trying to suggest. Anywa
The next meeting of the Silicon Valley Struts User Group will be a
presentation by Vic Cekvenich on BasicPortal and Rich User Interfaces for
the Web. The meeting will be at VeriSign in Mountain View on the evening of
May 5th, 2004. The full meeting announcement including directions can be
found her
I don't have a strong opinion on this but I think the "less work" argument
is weak - it was only a few lines of code - not exactly large/complex
solution :-) Also once you've set it up, if you need to do it again, then
you can re-use it - this solution, you have to bodge it every time.
Also from a
It might be worth having a look at the struts-bsf library at
http://struts.sourceforge.net/ It would allow rapid development
using scripting languages to write actions while still providing a
more future-proof "interface" between your view and your controller.
That is, the JSPs wouldn't have t
Geeta,
Exactly this is what i am looking for. I need to examine the errors object
on the child window and if it is empty, I need to close this child window.
Thank you.
From: "Geeta Ramani" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing
This is exactly the behavior you will get with my suggestion. I'm using
in the done.jsp page. When the
action processes and there are no errors, it immediately forwards to
that page and the window closes. From the users perspective, the
instant they hit submit the window closes, they can't tell
Marc,
i think the best way, according to the MVC pattern (JSP is the View), you should
split the collection in 2 collections leaving the Control to your Action. But if
you don´t wanna do this you can try to use just instead of
Henrique
- Original Message -
From: "Marc Tinnemeyer" <[EM
yippee, time for lunch then: you've earned it..:)
> -Original Message-
> From: Matt Bathje [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 22, 2004 12:22 PM
> To: Struts Users Mailing List
> Subject: Re: session form "reset"
>
>
> Well I changed my tactic a little and got somethign to
Well I changed my tactic a little and got somethign to work - instead of
trying to reset the info in the submit action, in the preloader action I get
the info out of the form and reset it to default data. Don't know why I
hadn't thought of that before.
Thanks for the help.
Matt Bathje
- Ori
HI,
There is no such kind of limitations in application Resource.
bye.
JBalaji
jbalaji <[EMAIL PROTECTED]> wrote:
HI,
There is no such kind of limitations in application Resource.
bye.
JBalaji
Yuriy Setko wrote:hello all,
are there any recommendations/limitations in order to what maximum
App
hi Sudheshna,
Pls check u have given the struts-congfig.xml
that "done"
bcoz.. when u r forwarding the actionpage to search at
struts-config.xml then it will send the link.something u have specified in the
somethin.do action inthe struts-config.xml .
>From the jsp r j
HI,
There is such kind of limitations in application Resource.
bye.
JBalaji
Yuriy Setko <[EMAIL PROTECTED]> wrote:hello all,
are there any recommendations/limitations in order to what maximum
ApplicationResources.properties file size is recommended (from performance
point of view)?
thank yo
Ok, then I guess I'm stumped too.. Sorry!
(just for kicks though, can you use your debugger or something and see *right after*
you set your session attribute "myform", what values does it have? Are they correct?
Just curious to know where the resetting to old bad values happen.. Also, another
th
HI,
There is such kind of limitations in application Resource.
bye.
JBalaji
Yuriy Setko <[EMAIL PROTECTED]> wrote:
hello all,
are there any recommendations/limitations in order to what maximum
ApplicationResources.properties file size is recommended (from performance
point of view)?
thank y
Hey I think I know what you are looking for. Correct me if I am wrong but here's what
i assume you are doing:
You have a "parent" window where somebody licks a link or something which opens a
"child" window and the user edits stuff in the child window and then submits it. Off
the form goes to a
hi Sudheshna,
Pls check u have given the struts-congfig.xml that "done"
bcoz.. when u r forwarding the actionpage to search at struts-config.xml then it will
send the link.something u have specified in the somethin.do action inthe
struts-config.xml .
>From the jsp r ja
I am designing an interface to interact with our proprietary servers. For a
clean application you would typically make calls to this interface through
struts actions that you would write that are specific to your application &
have form beans that are specific to your view.
Now we also have some c
Team,
I think I need to have something like this psuedo code:
<%
if(errors.isEmpty()){
%>
javascript:window.close();
<%
}
%>
Can anybody correct this code? I am getting errors not defined. I want to
access ActionErrors
Thank you.
From: "sudheshna aaa" <[EMAIL PROTECTED]>
Reply-T
Well Actually I am using JSP to write data into the form bean that is stored
in the session.
Then have a html form that allows the user to manipulate some of the data in
the form-bean before submission.
I am changing the subject because the bulk of the email deals with a
different question...
Ac
It doesn't give me an error if I do session.setAttribute("myform", myForm);
after I do the removeattribute. It just keeps the "incorrect" data in the
form.
I just tried it without doing the removeattribute, and it still leaves the
wrong data. (No crashes though...)
Matt Bathje
- Original Me
then should there be a done.jsp just to close itself?
From: "Nathan Ewing" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: RE: close the window if no errors
Date: Thu, 22 Apr 2004 11:46:17 -0400
Read the pa
How about just this: (iow, don't add the "session.removeAttribute("myform"); bit.
That's the part that gives you the error, right?)
>
> myForm.set("mybean", mybean);
> request.setAttribute("mybean", mybean);
> session.setAttribute("myform", myForm);
Won't that work for you?
Geeta
-
Thanks for your response Henrique,
I already tried your solution, but there is a problem with it.
I don't want to get all objects from that collection only those that
have an attribute that matches a certain value.
for example:
in my collection I have three objects with the following attributes:
Read the past conversation, if there are no errors your are directing to
a jsp page that immediately closes itself.
-Original Message-
From: sudheshna aaa [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 22, 2004 11:45 AM
To: [EMAIL PROTECTED]
Subject: RE: close the window if no errors
I
Thanks for the reply.
Actually, we thought of a different workaround, requiring somewhat less work, and
I welcome your comments on it.
Let's say the field we want to validate is "myField". The getter in the ActionForm
is getMyField(). Suppose we simply add another method to the form called
get
> >
> > Here is the chain of events, maybe that will help
> >
> > Form Preloader -> Form Page -> Submit Action -> Form
> > Preloader -> Form Page
> >
> > In Submit Action, I have tried doing
> > session.removeAttribute("myForm"); and
> > it doesn't work (gives the beanutils.populate error). I have
Hi Hernan,
Htanx for ur input, but I am still experiencing problems
Here is my validation.xml
test
(buttonSelected == "find") and
((destinationRef == null) or (*this* != null))
You cannot use a jsp tag as an attribute of another tag
" >
^^
In general you can use rt to get round this:
However, in you case there is no reason to use the jsp over
simple html tag
Actually since you are going to close that window onLoad anyway, it wouldn't really
matter :), but in the interest of not scaring your users ;), you'd probably want to
forward to the "same page" they were on. (Btw, according to Nathan's suggestion, the
closing is done by Javascript, so your not
I don't want to go to any JSP, I want to close the window if errors are
empty.
Thank you.
From: "Nathan Ewing" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: RE: close the window if no errors
Date: Thu,
Something like this in the :
-Original Message-
From: sudheshna aaa [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 22, 2004 11:39 AM
To: [EMAIL PROTECTED]
Subject: RE: close the window if no errors
what should it be in the struts-config.xml corressponding to "done" to
close
the windo
Matt:
> -Original Message-
> From: Matt Bathje [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 22, 2004 11:27 AM
> To: Struts Users Mailing List
> Subject: Re: session form "reset"
>
>
> Here is the chain of events, maybe that will help
>
> Form Preloader -> Form Page -> Submit Action
what should it be in the struts-config.xml corressponding to "done" to close
the window?
Thank you.
From: "Geeta Ramani" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: RE: close the window if no errors
>
> Couple of suggestions. First (potentially yukky): Add appropraite
> javascript:onLoad() methods. Easy to do, but..
Yah, that is way messier than I am looking for :)
>
> Also, is it so bad to display the form with the earlier data in
> it? Maybe be termed a feature not a bug?? :)
I've pulled
hello all,
are there any recommendations/limitations in order to what maximum
ApplicationResources.properties file size is recommended (from performance
point of view)?
thank you,
yuriy
-
To unsubscribe, e-mail: [EMAIL PROTECTE
I'm trying to upgrade from Hibernate 2.0.3 to 2.1.2, and my pre-existing
Hibernate Plugin hates it. (It's based on the Struts-Hibernate example
Ted wrote, which doesn't appear to be on sourceforge. anymore).
I'm getting this exception, which implies I'm loading old jar files from
2.0.3, but I don'
> -Original Message-
> From: David Neiman [mailto:[EMAIL PROTECTED]
>
> My question is whether or not I should use the struts-el tags
> where they
> exist in place of the original struts tags. Would this be
> considered a "best
> practice"? Is it just a matter of personal preference? It
Yes you do! :)
-Original Message-
From: sudheshna aaa [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 22, 2004 11:14 AM
To: [EMAIL PROTECTED]
Subject: RE: close the window if no errors
But if I use
mapping.findForward( "done" ); screen is hanging
Do I need to define "done" in struts-con
But if I use
mapping.findForward( "done" ); screen is hanging
Do I need to define "done" in struts-config.xml
Thank you for your help.
From: "Nathan Ewing" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: R
If there are multiple sessions getting destroyed?
Which session will get first destroyed? or sessiondestroyed method will
override old session?
-Jignesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
Hi Matt:
Couple of suggestions. First (potentially yukky): Add appropraite javascript:onLoad()
methods. Easy to do, but..
Also, is it so bad to display the form with the earlier data in it? Maybe be termed a
feature not a bug?? :)
I have never worked with session scoped forms, but are you say
Go through with SessionBindingListener and SessionAttributeListener.
And implement the appropriate one.
-Jignesh
On Thursday 22 April 2004 20:29, Matt Bathje wrote:
> Hey all - I'm having a small problem and was wondering if anybody could
> help.
>
> I have a page with a form, that when I submit,
Hey all - I'm having a small problem and was wondering if anybody could
help.
I have a page with a form, that when I submit, comes right back to the same
page with the updated information. The form is held in the session scope
because it has some dynamic indexed data in it.
My problem is that par
Hi Marc,
if you have a collection, it would be nice to use the tag, which
iterates over a collection rendering tags (you shall place inside
or to make sense)
in your case:
i guess it will work!
[]´s
Henrique Viecili
- Original Message -
From: "Marc Tinnemeyer" <[EMAIL PROTECTED]
Hi. I have been trying to get to work the i18n in an application I'm
working on and can't make it work. I found something wrong in the
setLocale. In the login Action I'm using the following code:
---
LoginAdminForm f = (LoginAdminForm) form;
if (f.getLang().equals("es")) {
Assure the type of the object inside the searched
contexts. Don't you have differents attributes (with
distincts classes) in each context: A bean in page
scope, a different one in request scope, another in
session scope, and so on ? Try to use scope attribute
when using ...
--- [EMAIL PROTECTED]
Just save like you normally would, and when it finishes do a "return
(mapping.findForward("done"));", which goes to a page with the following
as part of the html code:
Nathan
-Original Message-
From: sudheshna aaa [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 22, 2004 10:31 AM
To: [
hi everybody,
I got a collection in session scope which contains a lot of properties
that I want to use to fill comboboxes etc.
the objects stored in this collection look like:
id(int), property(string), value(string)
The propertyfield indicates where the object belongs to (eg. country or
os...
Where does Struts-Faces fit into this picture?
It is getting quite complicated to make decisions now.
sandeep
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 22, 2004 10:33 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: newbie stru
Well Ravi has raised a good suggestion on using Dispatch Action for this
case.
I'll try to pointed out the pro n cons for each one. (what i say here
may not be correct this is just my opinion :P)
Step 1. NewAccountAction.java
,EditAccountAction.java,NewAccountFormAction.java
If you use this a
1 - 100 of 131 matches
Mail list logo