A few years ago, huh? You make it seem like such an archaic approach :)
My question, I guess using a servlet/interceptor to do the same as this
abstract class would conform more with the 'accepted' methodology? (I did
play around with a servlet, but couldn't get it to redirect correct - I
admit I
On Thursday 20 August 2009 10:15:17 pm Tommy Pham wrote:
>
> THANK YOU Wes!!! :) Slightly off topic: if I have nested lists such as
>
>
>
>
> How would I get list2value.name? would it be %{#list2value.name} ? Doing
> all of this in scriptlets is easier for me but code looks messy :)
>
Yeah, %{#
- Original Message
> From: Wes Wannemacher
> To: Struts Users Mailing List
> Sent: Thursday, August 20, 2009 6:05:00 PM
> Subject: Re: [struts2] problem
>
> I can never remember which things can be accessed through EL, but my
> guess is that you can't get "language" because the top of
- Original Message
> From: Martin Gainty
> To: Struts Users Mailing List
> Sent: Thursday, August 20, 2009 5:45:48 PM
> Subject: RE: [struts2] problem
>
>
>
> why not checkboxlist?
>
>
> http://struts.apache.org/2.1.2/docs/checkboxlist.html
> Martin Gainty
> __
I can never remember which things can be accessed through EL, but my
guess is that you can't get "language" because the top of the struts
value stack is not the same thing as a request scoped variable.
Instead of the el notation try using the s:property tag like this -
notice the hash mark in
fron
why not checkboxlist?
http://struts.apache.org/2.1.2/docs/checkboxlist.html
Martin Gainty
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger
se
I used this same approach for an app I worked on a few years ago.
There is nothing wrong, in fact its simplicity is a bit of an
advantage. If you can fit your needs into this type of setup then you
will probably be happy that it is so easy to follow.
On 8/20/09, Lee Clemens wrote:
> This may not
Hi,
Looks like I'm still having problems with the . I have a
LinkedHashMap list which I want to iterate and show the contents. This is the
code for it:
ID
ISO
Code 2
ISO
Code 3
Name
Native Nam
This may not be perfect, and I welcome any criticism to this approach:
abstract class extends ActionSupport which overrides execute() to
authenticate requests and then return a call to abstract method, say,
doAction(), or error if they are not authenticated/timed out.
Each action which needs to b
Hi,
I'm working with freemarker as the template engine instead of JSP.
What I am trying to do is to access the parameter defined in web.xml
as context-param from freemarker template. I'm using technique
described here:
http://struts.apache.org/2.1.2/docs/using-freemarker-templates.html
<#if Appli
Personally, I used to prefer container managed security, like what
Tomcat provides ->
http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html
But found that I didn't like being forced into their database schema,
so I started using ACEGI, which is now called Spring Security.
There are some that
I am currently preparing the steps to port a legacy Struts1 application
to Struts2. The rewrite of the web application also includes a
transition from Tiles to Sitemesh along with the introduction of the
Spring and Hibernate frameworks.
The authentication and security model used in the Struts1
On Thu, Aug 20, 2009 at 12:38 PM, Zied Bejaoui wrote:
> Thanks for the help guys.
>
> change User usr= userService.getUser(username);
> to User usr=userServiceImp.getUser(username);
>
> userService is a UserServiceImp instance--> UserServiceimp userService.
>
You were on the right track be
I suspect that the output of your tag is not passed through the
processor again to resolve the other tags.
I have been considering writing my own custom tag. Can you point me to
some doc to get started?
mitch
AlexPresley wrote:
> Hi !:
> I created a Custom tag,it works fine,but when i try to d
On Thu, Aug 20, 2009 at 11:01 AM, stanlick wrote:
> You rock bro! So is there a way to get the TreeItem attributes passed back
> to the server? If not, I am confused as to why they would be set on the
> node object.
At this point you probably know more about it than I do :) (insufficient memory)
You rock bro! So is there a way to get the TreeItem attributes passed back
to the server? If not, I am confused as to why they would be set on the
node object.
Musachy Barroso wrote:
>
> On Thu, Aug 20, 2009 at 8:06 AM, stanlick wrote:
>> P.S. I was surprised to see that you had worked on th
Thanks for the help guys.
change User usr= userService.getUser(username);
to User usr=userServiceImp.getUser(username);
userService is a UserServiceImp instance--> UserServiceimp userService.
avoid static references such as userService.getUser(username);
better to
getUserService().getUse
On Thu, Aug 20, 2009 at 5:27 PM, Martin Gainty wrote:
>
> agreed..i would also suggest wrap the code in try catch for the
> NullPointerException
>
> good call wes!
>
> Martin Gainty
Why?
Nils-H
-
To unsubscribe, e-mail: user-u
agreed..i would also suggest wrap the code in try catch for the
NullPointerException
good call wes!
Martin Gainty
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vo
On Thu, Aug 20, 2009 at 11:13 AM, Martin Gainty wrote:
>
> cannot do a get(0) on a null result
Might be true, but it also demonstrates why method chaining can be
troublesome, we don't know if the NPE is coming from there or from the
call to getHibernateTemplate(), etc. I would suggest breaking thi
On Thu, Aug 20, 2009 at 8:06 AM, stanlick wrote:
> P.S. I was surprised to see that you had worked on this project Musachy.
> You just pop up everywhere!
I think I wrote that tree so I wouldn't trust it too much :)
musachy
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
-
cannot do a get(0) on a null result
public User getUser(String userName) {
return (User)getHibernateTemplate().find("from User as u where
u.name = ?", userName).get(0);
}public interface UserService cannot be referenced directly so best to use your
impl class
change User usr= userServ
Thanks guys --
Actually, I needed a Q&D tree on a JSP page and it worked great. The one
issue I am having though is this. I am creating the tree by attaching
TreeItem nodes. I am populating these nodes with attributes
Goal goal = goals.next();
Hi !:
I created a Custom tag,it works fine,but when i try to do this:
sb.append("http://www.nabble.com/Struts-tag-inside--Custom-tag-tp25063279p25063279.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To u
Hi martin,
Thanks again the template are message source problems are solved, however
now I am getting a NullPointerException in the Login Action class in this
line:
User usr= userService.getUser(username);
Here is the setter of userService:
Public void SetUserService (UserServiceImp userSer
action.LoginAction contents:
public void setMessageSource(ResourceBundleMessageSource
messageSource)
{
this.messageSource = messageSource;
}since messageSource is private LoginAction will require getMessageSource e.g.
public ResourceBundleMessageSource getMessageSource()
{
return this.mes
You are kind, Wes. I saw that message and thought "I don't want anything to do
with
this person!"
Chris
-Original Message-
From: Wes Wannemacher
To: Struts Users Mailing List
Sent: Thu, Aug 20, 2009 9:39 am
Subject: Re: Re: Why submit didn't support param
On Thu
Hi Martin,
Thanks for your help, i have de fined the hibernate template like this like
this:
And then use it in the DAO:
I couldnt change this line by adding the parameter cause it shows an error
so kept it like this:
public User getUser(String userName) {
return (User)getHibernat
On Thu, Aug 20, 2009 at 6:23 AM, xnpeng wrote:
>
> how to remove my email from this fucking list?
[snip]
>>-
>>To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>For additional commands, e-mail: user-h...@struts.apache.or
the UserDaoImpl class refers to hibernateTemplate in multiple statements most
notably
public User getuser(String password) {
return (User)getHibernateTemplate().find("from User as u where
u.password = ?", password).get(0);
you'll need to define the hibernateTemplate bean which ref bean can ref
This is the definition of my session factory, hibernate properties and data
source :
po/user.hbm.xml
hibernate.dialect=org.hibernate.dialect.MySQLDialect
MY d
mg>take a look inside all of the provided xml files.. did you
mg>define a sessionFactory..alternatively implements
mg>
mg>or mappingResources
mg>
mg>or mappingDirectoryLocations
mg>
mg>a sessionFactory needs a dataSource jndiName something like
mg>java:comp/env/jdbc/dataSource
mg>the sessionFact
how to remove my email from this fucking list?
how to remove my email from this fucking list?
how to remove my email from this fucking list?
how to remove my email from this fucking list?
how to remove my email from this fucking list?
how to remove my email from this fucking list?
how to remove my
how to remove my email from this fucking list?
how to remove my email from this fucking list?
how to remove my email from this fucking list?
how to remove my email from this fucking list?
how to remove my email from this fucking list?
how to remove my email from this fucking list?
how to remove my
how to remove my email from this fucking list?
how to remove my email from this fucking list?
how to remove my email from this fucking list?
how to remove my email from this fucking list?
how to remove my email from this fucking list?
how to remove my email from this fucking list?
how to remove my
I still have the same exception, I am posting all my code amd my project
structure hope you can fix me to fix the problem:
Package action:
package action;
import com.opensymphony.xwork2.ActionSupport;
import java.util.Locale;
import org.springframework.context.support.ResourceBundleMessageSource
36 matches
Mail list logo