I have made the necessary changes , and have got rid of the error.Now ,I'm
being able to access the addupDomain function .However , I guess I'm missing
something fundamental as I'm not being able to insert into the database, as
the control is being passed to the ERROR page each time and there is
Could you provide your exception stacktrace?
On 10 March 2011 09:51, JavaNoobie vivek...@enzentech.com wrote:
I have made the necessary changes , and have got rid of the error.Now ,I'm
being able to access the addupDomain function .However , I guess I'm missing
something fundamental as I'm
Hi, I found that that the bean --listbean being created in the
action(DomainAction1.java) class is being set with a null value and as a
result the ERROR page is being executed .Please help as to how i can
overcome this issue . Thanks
--
View this message in context:
I can't see any reference to the listbean property in your JSP.
And also in the Action I can't see any initialization of listbean.
Johannes
JavaNoobie wrote:
I have made the necessary changes , and have got rid of the error.Now ,I'm
being able to access the addupDomain function .However ,
I can't see any reference to the listbean property in your JSP.
And also in the Action I can't see any initialization of listbean.
Johannes
JavaNoobie wrote:
I have made the necessary changes , and have got rid of the error.Now ,I'm
being able to access the addupDomain function .However ,
Hi,
I have corrected my jsp page, (not sure whether this is correct ) , and have
attached it below . But I have already initialized listbean in the action
class , whose code snippet im pasting below.
-
private DomainBean listbean;
---
public String addupDomain(){
String
Hi,
Name of LoginAction-Validation.xml file name must be
LoginAction-validation.xml; so Validation's first character must be
lowercase.
And you should consider to struts form which theme definition used for
it. Look at the
http://struts.apache.org/2.2.1/docs/struts-2-themes.html
Maybe you could
i dont use the osiv filter i just make sure the DAO object method returns the
objects initialised correctly (i.e. all lazy collections that are to be
accessed are initialised) for how its going to be used - i might have a DAO
method to return the plain object with no collections initialised
Great discussion, but just to give some background on my OT:
- Blessed Struts ver. is 2.0.11.1. This does not have the JSON plugin
which I think was included only in 2.1.7
- I have used GSON, and I was very impressed. Marshalling/UNMarchalling JSON
is literally 1 line of code if the model
Good morning,
Does someone know where I can find a good:
jquery + struts2 = autocompleter example?
Since dojo deprecated, I am thinking using jquery + struts2.
Basically, autocompleter's value list needs to be calculated by struts2
action class to retrieve from Database.
Thanks a lot!
Lu
Try this one
http://code.google.com/p/struts2-jquery/wiki/AutocompleterTag
/peter
Emi Lu em...@encs.concordia.ca 2011-03-10 15:13
Good morning,
Does someone know where I can find a good:
jquery + struts2 = autocompleter example?
Since dojo deprecated, I am thinking using jquery +
Hi,
You can find example in the two showcases war (the bin for jsp and the source
one if you want to see action java class) of the struts2-jquery plugins :
http://code.google.com/p/struts2-jquery/downloads/list
And on the wiki :
http://code.google.com/p/struts2-jquery/wiki/AutocompleterTag
Thank you very much all!
If I did not get your help, I will almost do this way:
http://viralpatel.net/blogs/2009/06/tutorial-create-autocomplete-feature-with-java-jsp-jquery.html
I think if the two websites can link each other, it will help users like
me a lot!!!
(1)
On Thu, Mar 10, 2011 at 10:08 AM, Emi Lu wrote:
(1) http://code.google.com/p/struts2-jquery/wiki/AutocompleterTag
(2) http://docs.jquery.com/Plugins/autocomplete
I strongly hope that (1) can be added to (2).
Not sure what you mean there, there will never be docs on the jQuery
site that are
Martin -
This is what has me confused. I don't believe that Hibernate's FLUSHMODE is
even being set and I am starting to question if that is because of how I am
using JPA in conjunction with Hibernate with Spring's transaction management
system.
bean id=entityManagerFactory
I don't use Spring to instantiate my actions, they're not defined like that.
Spring injects my services into my actions because I use the @Autowired
annotation. I then have all my services and DAO classes annotated with the
@Service and @Repository annotations so that I can wire then through
On Thu, Mar 10, 2011 at 11:32 AM, CRANFORD, CHRIS wrote:
I don't use Spring to instantiate my actions, they're not defined like that.
And you're not using the S2 Spring plugin? (Just for the sake of
completeness; I'm only marginally following this thread.)
Dave
Dave -
Yes the plugin is in the app's lib directory.
-Original Message-
From: Dave Newton [mailto:davelnew...@gmail.com]
Sent: Thursday, March 10, 2011 10:37 AM
To: Struts Users Mailing List
Cc: CRANFORD, CHRIS; Maurizio Cucchiara
Subject: Re: RE: Re : Re : ModelDriven Hibernate
On Thu, Mar 10, 2011 at 11:38 AM, CRANFORD, CHRIS wrote:
Yes the plugin is in the app's lib directory.
Just FYI, that sets the object factory to spring, so Spring is
instantiating your actions.
(At least it used to.)
Dave
-
Oh, learn something new every day :)
-Original Message-
From: Dave Newton [mailto:davelnew...@gmail.com]
Sent: Thursday, March 10, 2011 10:40 AM
To: CRANFORD, CHRIS
Cc: Struts Users Mailing List; Maurizio Cucchiara
Subject: Re: RE: Re : Re : ModelDriven Hibernate Entities
On
Annotating @Transactional on the action didn't help.
-Original Message-
From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com]
Sent: Thursday, March 10, 2011 1:41 AM
To: Struts Users Mailing List
Cc: CRANFORD, CHRIS
Subject: Re: RE: Re : Re : ModelDriven Hibernate Entities
Dave et el -
I can only conclude that either something is severely lost in my
understanding of a Struts2 ModelDriven action coupled with Spring3 and
Hibernate/JPA. I have tried numerous configuration changes,
annotations, etc and nothing has appeared to avoid allowing dirty data
to make it to
Here is an old thread talking of this same issue. It appears some
suggestions are given, but still an issue. Dave was *marginally*
following this thread as well ;-)
http://www.coderanch.com/t/58423/Struts/Struts-Model-Driven-fundamentally-flawed
On Thu, Mar 10, 2011 at 11:55 AM, CRANFORD,
I have never run into this issue while using OiSV, but couldn't it be
easily solved by not referencing any related entity or collections
directly from the model you are modifying in your action? In other
words, the object that is in your model (e.g Customer) would be in
getModel() and in the form
Hi guys,
I need your help, at least your expertise...
My site generates permaLinks dynamic like
www.mysite.com/abusiness.html
and struts2 makes a mapping (in struts.xml file) that redirect on an action
that takes params
ex:
struts
package name='catchall' extends=struts-default
not i the type of result is redirectAction
http://struts.apache.org/2.0.14/docs/redirect-action-result.html
we could provide more informed solutions if you could explain what you wish to
implement and a rough workflow
Martin Gainty
__
Verzicht
the main idea is
I generate permaLink for businesses
ex: mysite.com/abusiness.html
and I need to redirect on the detail business page...
so I parse the url and do a redirection...but the browser changes the url...and
I don't want the user to see something like
That's kind of what a redirect *is*.
Perhaps you're thinking of a forward?
Dave
On Thu, Mar 10, 2011 at 9:44 PM, François Rouxel rouxe...@yahoo.com wrote:
the main idea is
I generate permaLink for businesses
ex: mysite.com/abusiness.html
and I need to redirect on the detail business
does struts2 have a type='forward' ?
because I use type='redirectAction'
Francois Rouxel
- Message d'origine
De : Dave Newton davelnew...@gmail.com
À : Struts Users Mailing List user@struts.apache.org
Cc : François Rouxel
On Thu, Mar 10, 2011 at 9:52 PM, François Rouxel rouxe...@yahoo.com wrote:
does struts2 have a type='forward' ?
because I use type='redirectAction'
Like I said--a redirect... redirects.
http://struts.apache.org/2.x/docs/result-types.html
http://struts.apache.org/2.x/docs/dispatcher-result.html
well thx,
but I need struts2 to do a little job, parse the url...and go to another
action... without changing the url...
because,
actually, there is no www.mysite.com/abusiness.html
it's just a fake, but I want to 'redirect', 'forward' I don't know the right
word, to the a detail business page
hi Dave
how ru.
am facing a problem sir. here am attaching a pdf of jasper report and jrxml
file. In that detail tab is stretching like anything. Space between detail
tab and coloumn footer is very high. i want detail tab correctly fit to the
data. am attaching that jrcml file and pdf
On Fri, Mar 11, 2011 at 11:10 AM, François Rouxel rouxe...@yahoo.comwrote:
well thx,
but I need struts2 to do a little job, parse the url...and go to another
action... without changing the url...
because,
actually, there is no www.mysite.com/abusiness.html
try chain?
redirectAction is
33 matches
Mail list logo