A submit button is just another input field, so will have a name value
pair that are submitted with the form.
The value is displayed on the button, so can't be changed, but you can
assign any name you like to the field. Each of your submit buttons
could therefore be and work out which item in th
Hi Guys,
Thanks! I have thought about that. But then I decided to read the source
code.
I did some study and it seems much simpler than I thought:
The function parseActionName in class DefaultActionMapper now is look
like:
protected ActionMapping parseActionName(ActionMapping mappin
he has his own MessageBundle
which was left out
Martin Gainty
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger
sein, so bitten wir hoeflich um
Hi,
My project is building questionnaire web based application. please let
suggest me some good questionnaire framework that integrates with struts.
Your input will be highly appreciated.
thanks
--
View this message in context:
http://www.nabble.com/regarding-integration-of-questionnaire-fra
I do have spring installed and it's configured I wil post the code tomorrow.
Thanks.
ZIED BEJAOUI
Tel: 0044(0)7506628905
> Date: Wed, 19 Aug 2009 13:15:04 -0400
> Subject: Re: Hibernate3+Spring2.5+Struts2
> From: w...@wantii.com
> To: user@struts.apache.org
>
> On Wed, Aug 19, 2009 at 1:0
On Wed, Aug 19, 2009 at 1:07 PM, Dave Newton wrote:
> Tommy Pham wrote:
>>
>> [stuff about java object instantiation]
>
> I suggest you review your Spring: Spring handles object instantiation and
> injection; it should *not* be done in the action if Spring is handling
> object creation.
>
>
>>> Fro
Tommy Pham wrote:
[stuff about java object instantiation]
I suggest you review your Spring: Spring handles object instantiation
and injection; it should *not* be done in the action if Spring is
handling object creation.
From: ZiedBejaoui
Are you using the Spring plugin?
Dave
---
review your java
>speaking of which
>did the op display the source for ResourceBundleMessageSource.java?
>Martin
> Date: Wed, 19 Aug 2009 09:34:48 -0700
> From: tommy...@yahoo.com
> Subject: Re: Hibernate3+Spring2.5+Struts2
> To: user@struts.apache.org
>
>
>
>
>
>
> - Original Messag
ZiedBejaoui wrote:
thanks dave for you help, I know hoe to use struts and since I need a
database app i need hibernate can i just use theses technologies without
spring?
You *can*, but I'm not sure you *should*... it's just so much easier
with Spring. I also always tell people that there *are
- Original Message
> From: ZiedBejaoui
> To: Struts Users Mailing List
> Sent: Wednesday, August 19, 2009 9:23:35 AM
> Subject: Re: Hibernate3+Spring2.5+Struts2
>
> Thanks for your reply however I didn't get you point, I have created a
> userserviceImp instance in my loginaction.
Thanks for your reply however I didn't get you point, I have created a
userserviceImp instance in my loginaction.
could you please tell what you mean?
--
From: "Tommy Pham"
Sent: Wednesday, August 19, 2009 4:59 PM
To: "Struts Users Mailing List"
that is very strange, that should never happen unless you call it from
another thread.
musachy
On Wed, Aug 19, 2009 at 1:39 AM, Wim De Smet wrote:
> Hi list,
>
> I was trying to debug an interceptor someone here wrote that kept
> throwing up NullPointerExceptions. It seems
> ServletActionContext.
- Original Message
> From: Dave Newton
> To: Struts Users Mailing List
> Sent: Wednesday, August 19, 2009 7:18:09 AM
> Subject: Re: Hibernate3+Spring2.5+Struts2
>
> >>
> >> public class LoginAction extends ActionSupport {
> >>
> >>private UserServiceImp userService;
> >>
Yes is the part of my context file:
I have tried to figure out the problem for hours no luck...
-Original Message-
From: Dave Newton [mailto:newton.d...@yahoo.com]
Sent: 19
thanks dave for you help, I know hoe to use struts and since I need a
database app i need hibernate can i just use theses technologies without
spring?
--
From: "Dave Newton"
Sent: Wednesday, August 19, 2009 4:18 PM
To: "Struts Users Mailing List"
Zied Bejaoui wrote:
The problem is in this line in my LoginAction :
User usr = userService.getUser(username);
Then I'd assume the userService is null.
I am sorry if I am not clear but it's because I didn't get the code.
This doesn't really seem to be a Struts issue, but Spring. It's
diffi
Thanks for your reply, well this is the link to the code I am trying to run
it is in two parts in the same blog that will be easier for you to locate
the problem.
http://blogs.sun.com/LiYuanxin/entry/integrating_struts2_0_spring2_5
The problem is in this line in my LoginAction :
User usr = userS
Is there a user service injected into your action?
If so, does the service return a user? (Are you typing your program in
via SMS? It seems like everything is named reasonable except for "usr" :(
It's really difficult for us to help when we don't know the line that's
causing the error: *you*
Well the problem is that this is my first example with spring and hibernate
I have downloaded the example which should create a login application, now
as I said the table have an id a user name and a password.
Here is the line of the exception:
User usr = userService.getUser(username);
Here is th
I am very new user of Struts and I don't know all benefits of using
Tiles, but I am using tiles for example to transfer parameter from one
jsp page to another: if I have jsp page with same part repeated several
times I will put this part in the separate jsp page and give all needed
parameters (
Hi,
I have a problem implementing ScopedModelDriven.
I Have Model / User Java Bean object in action class.
I am trying to implement concept of same model object being used for 3 JSP
pages with PREVIOUS and NEXT button navigation.
Data to be updated in Model object for every page nav
Hi,
Can anyone tell me why use tiles-defs?
I used "traditional" structs from an Action class forward/redirect to
a jsp file.
With tiles-defs, I just simply added "code" to this file to achieve
the url redirection.
Case scenario:
I want to forward to two different search jsp files from another j
java.lang.NullPointerException
at action.LoginAction.execute(LoginAction.java:31)
Looks like you have a NPE at line 31 in LoginAction. What line is
that? Which references could have been null?
Nils-H
On Wed, Aug 19, 2009 at 1:59 PM, Zied Bejaoui wrote:
> Thanks for your help, I have fixed
Thanks for your help, I have fixed this problem by removing the admin property
from the mapping file, now I am having another error, the login page display
then as soon as I enter the login details I receive this exception:
java.lang.NullPointerException
at action.LoginAction.execute(Log
I extended ActionSupport
-Oorspronkelijk bericht-
Van: mailtolouis2020-str...@yahoo.com
[mailto:mailtolouis2020-str...@yahoo.com]
Verzonden: woensdag 19 augustus 2009 12:17
Aan: Struts Users Mailing List
Onderwerp: Re: validation
Hi,
In your action did you extends ActionSupport or impl
Hi all,
in my project we're using Struts 1.3.8. I have a case of editing an
organisation. Because we have two types of organisations, I'm using a
BaseOrganisationForm (extends ValidatorForm) as a form bean where I've
put the validation as xdoclet tags. Then I inherit this class from
OrganisationFo
Hi,
That the source of your problems:
Caused by: org.hibernate.PropertyNotFoundException: Could not find a
getter for admin in class po.User
Check mapping files, you are trying to map admin property which
doesn't exist in User class.
Regards
--
Lukasz
http://www.lenart.org.pl/
http://dailylog.
Thanks for you reply,
In my table I have three coloumns ID, UserName and password.
This is my po.User:
package service;
import po.User;
/**
*
* @author ABIS1
*/
public class UserServiceImp implements UserService {
private dao.UserDao userDao;
public void addUser(String userNam
>From your stack trace:
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'sessionFactory' defined in ServletContext
resource [/WEB-INF/applicationContext.xml]: Invocation of init method
failed; nested exception is org.hib
Hi,
I am trying to run an example to integrate struts2 with hibernate and Spring.
When running the example tomcat display en error: 404 resource is not available.
This is my stack trace:
19-Aug-2009 11:29:06 org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
19-Aug-200
Hi,
In your action did you extends ActionSupport or implement Validateable ?
Louis
From: "sandy.verfai...@roularta.be"
To: user@struts.apache.org
Sent: Wednesday, August 19, 2009 7:16:08 AM
Subject: RE: validation
Yes, that was a copy-mistake of me.
In my app
Hi list,
I was trying to debug an interceptor someone here wrote that kept
throwing up NullPointerExceptions. It seems
ServletActionContext.getRequest() returns null after the
invocation.invoke() has been called in an interceptor. I skimmed most
of the general docs on interceptors and the ServletA
Hi all,
in my project we're using Struts 1.3.8. I have a case of editing an
organisation. Because we have two types of organisations, I'm using a
BaseOrganisationForm (extends ValidatorForm) as a form bean where I've
put the validation as xdoclet tags. Then I inherit this class from
OrganisationFo
Hi all,
in my project we're using Struts 1.3.8. I have a case of editing an
organisation. Because we have two types of organisations, I'm using a
BaseOrganisationForm (extends ValidatorForm) as a form bean where I've
put the validation as xdoclet tags. Then I inherit this class from
Organisati
34 matches
Mail list logo