My solution looks like this:
public Foo getModel() {
foo = (Foo) session.get(Foo);
if (foo == null) {
foo = new Foo();
session.put(Foo, foo);
}
return (foo);
}
Then,
Hello. I'm trying to make a simple hibernate setup, but i encounter an error
when i start the server (Apache).
Apr 26, 2011 3:20:18 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter struts2
java.lang.NoClassDefFoundError: org/hibernate/Session
at
Hi Jake,
maybe this aproach would help You:
http://struts.apache.org/2.2.1.1/docs/stream-result.html
Best greetings,
Paweł Wielgus.
2011/4/24 Jake Vang vangj...@googlemail.com:
Dave,
is there anyway to set it up so that the session can be created and
not destroyed when i return null?
i am
Just because ant or an ide sees a class doesn't mean the web server does
when you're deploying or starting up.
Almost certainly a classpath issue with the server, almost certainly not
Struts, just like the exception indicates.
Dave
On Apr 26, 2011 8:52 AM, alex zaim icid...@yahoo.com wrote:
Thank you, can you please show me what line indicates that the error is
specific to the server but not struts?
Some ppl on the net testify that changing their xwork-core version fixes the
problem. here
--- On Tue, 4/26/11, Dave Newton davelnew...@gmail.com wrote:
From: Dave Newton
On Apr 26, 2011 10:40 AM, alex zaim wrote:
Thank you, can you please show me what line indicates that the error is
specific to the server but not struts?
Caused by: java.lang.ClassNotFoundException: org.hibernate.Session
Dave
Hi I am trying to run the Struts2 project in Netbeans . I have included
all necessary jar files. But i am getting following error:
SEVERE: Exception starting filter struts2
java.lang.NoSuchMethodError:
com.opensymphony.xwork2.util.finder.ClassFinder.
What does this mean? And how can i fix
On Tue, Apr 26, 2011 at 3:08 PM, Anjib Mulepati anji...@hotmail.com wrote:
com.opensymphony.xwork2.util.finder.ClassFinder
What versions of S2/XW2/etc. are you deploying?
Dave
-
To unsubscribe, e-mail:
- Struts 2.2.1
- Tomcat 6.0
- JDK 1.5.0_22
- Code example of the problem: http://pastebin.com/eyyJaBg4
- Description:
I have two fields in my action class: user and userId. The user variable
is of type User, which also contains a userId. In both cases userId is of
type String.
While
Doubt you're doing anything wrong; I'd expect it's how OGNL does its
lookup but haven't confirmed that.
Dave
On Tue, Apr 26, 2011 at 3:52 PM, Eric Lentz eric.le...@sherwin.com wrote:
- Struts 2.2.1
- Tomcat 6.0
- JDK 1.5.0_22
- Code example of the problem: http://pastebin.com/eyyJaBg4
-
I don't use ModelDriven myself, but as I understand it, it places the Model
Object at the top of the Value Stack, which would make userid be a reference
to an attribute in the Model Object, not in the Action. When you use
user.userid, it's because it's trying to find the user attribute in the
Oh, duh!
On Apr 26, 2011 4:20 PM, Chris Pratt thechrispr...@gmail.com wrote:
I don't use ModelDriven myself, but as I understand it, it places the
Model
Object at the top of the Value Stack, which would make userid be a
reference
to an attribute in the Model Object, not in the Action. When you
That is how OGNL works -- the Model object is higher and has a property
of the name userId so it is the first match.
Chris
On 4/26/2011 3:52 PM, Eric Lentz wrote:
- Struts 2.2.1
- Tomcat 6.0
- JDK 1.5.0_22
- Code example of the problem: http://pastebin.com/eyyJaBg4
- Description:
I have two
I am using
Struts 2.1.7
xwork-core-2.1.6
javassist 3.8.0
jackson-core-lgpl 1.7.6
jackson-mapper-lpgl 1.7.6
struts-convertion-plugin 2.2.1
On 4/26/2011 3:16 PM, Dave Newton wrote:
On Tue, Apr 26, 2011 at 3:08 PM, Anjib Mulepatianji...@hotmail.com wrote:
Hi guys,
I'm having a couple of issues with my freemarker tempates.
One is with extending the 'simple; theme. I have setup a custom theme which
has a theme.properties file containing a single line, parent=simple
The problem I'm having is that it can't find the simple directory.
Freemarker keeps
For the checkbox list try using collection notation for the checkbox names ,
square brackets with an index (list/array index).
Dave
On Apr 26, 2011 8:22 PM, Zoran Avtarovski zo...@sparecreative.com
wrote:
Hi guys,
I'm having a couple of issues with my freemarker tempates.
One is with
16 matches
Mail list logo