and would much rather use Struts 2.
Josh
On 5/11/07, Rick Schumeyer <[EMAIL PROTECTED]> wrote:
Let me ask you a question that I've never really received a good answer
to. Keep in mind that my knowledge of Java web programming is some S1,
and just starting with S2. I have never real
ed using Spring?. It plays nicely with Struts and hibernate,
plus there are some examples around I think.
musachy
On 5/11/07, Rick Schumeyer <[EMAIL PROTECTED]> wrote:
Now I'm trying to configure Hibernate with S2, which many others have
done. I was trying to follow the example in Web
Now I'm trying to configure Hibernate with S2, which many others have
done. I was trying to follow the example in WebWork in Action, but
things have obviously changed since then.
To be clear, the problem is to create a SessionFactory once in such a
way that all my actions can easily have acce
I can now answer my own question regarding Struts2/Tiles2. I hope this
information helps someone else.
I frankly have little grasp of the relationship between S2 and T2, but
this information here works for me. If anything is incorrect or
misleading I would love to know about it.
This infor
could be useful
you can download it here: http://luniks.net/struts2-tiles-blank.zip
Torsten
Rick Schumeyer wrote:
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I'm trying to follow the directions at
http://struts.apache.org/2.x/docs/tiles-plugin.html
but with no success. At the moment, I am only trying to get the app
running with tiles configured...I'm not actually using tiles yet!
I get this error:
SEVERE: Exception sending context initialized eve
I've been partially paying attention to this list for several months
while I was mostly working with Ruby-on-Rails. I finally have some time
to try and come up to speed on S2. I will obviously need some sort of
view/template solution, and I'm leaning towards JSP + tiles2. (But I'm
willing to
It's quite possible I'm confused, but I thought that actions in S2 were
now POJOs. In Webwork in Action, for example, we see:
public class HelloWorld implements Action
but in the blank application we see
public class ExampleSupport extends ActionSupport
Is this an example where Webwork in Ac
This thread has been fascinating, because others have expressed exactly
my thoughts. I have a lengthy background in C/C++, and some Java and
C#. All
of which are strongly typed languages. As someone else said, I really
like when the compiler knows the difference between an int and a cat.
I
n provides this integration support.
Interestingly, there are also Struts 2 plugins for Spring MVC and
Spring WebFlow integration support, although they aren't anywhere near
as widely used.
http://cwiki.apache.org/S2PLUGINS/home.html
Don
On 3/16/07, Rick Schumeyer <[EMAIL PROTECTED]> wrote:
Dave Newton wrote:
--- Rick Schumeyer wrote:
I had thought that Spring was another framework,
and that you would use either S2 or Spring but not
both.
Spring provides a lot of different functionality;
Spring MVC is the web-ish portion of it. You probably
(but you can!) would not use
I has started to learn S2 a few months ago and then got sidetracked.
I'm willing to tackle the learning curve, but I have a very basic question:
I notice that many people are combining S2 with Spring. I don't know
anything about Spring; I had thought that Spring was another framework,
and th
The examples I have seen (in S1) for using hibernate with struts involve
using a plugin which creates a hibernate sessionFactory and stores it in
session context.
Each Action then retrieves the sessionFactory from the session and
passes it to a model bean.
It is my understanding that if I wer
still apply to S2, and which parts I should ignore?
Ted Husted wrote:
The running example in WebWork in Action uses Hibernate. In fact, it's
a wrapper around the auction example from Hibernate in Action.
-Ted.
On 12/21/06, Rick Schumeyer <[EMAIL PROTECTED]> wrote:
I may regret this,
I may regret this, but I think I'm reaching the point with S1 where I'm
really tempted to give S2 a serious try. My biggest concern is the
current state of documentation. There are, as far as I know, no S2
books yet. I am aware of the webworks book but earlier comments make me
think that boo
#x27;adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire.
- Original Message -----
From:
I hope someone can show me a better way of doing this.
I have an input page in which the user enters a date. Of course, the
user really enters strings for month, day, and year.
My ActionForm has string fields dateOfBirthYear, dateOfBirthMonth, and
DateOfBirthDay.
It is my understanding tha
eans
Thanks anyway.
Rick Schumeyer wrote:
These should be easy questions, but I can't find the answers...if
someone could either answer them or point me to the right docs, I
would appreciate it.
1. What is the proper uri for the jstl core library? According to my
JSP book it
These should be easy questions, but I can't find the answers...if
someone could either answer them or point me to the right docs, I would
appreciate it.
1. What is the proper uri for the jstl core library? According to my
JSP book it should be
<%@ taglib prefix="c" uri="http://java.sun.com/
I would like to learn S2 while using the eclipse/WTP IDE. I currently
use eclipse/WTP for a struts 1.3 project. But the way I constructed the
eclipse project was a bit of a pain.
In reviewing the list archives, it looks like there is an easy way to
generate a blank template for an S2 project
this is a struts 1.3.5 question.
I am looking for an example of an edit cycle. Let's say I have a list
of employee names; If I click on one I want to have a page to edit the
employee values.
The initial click would call an action that queries the database, gets
the employee data, and stores
Never mind...it turns out that I added a non-default constructor to the
ActionForm bean without also adding a default constructor.
Rick Schumeyer wrote:
I'm using struts 1.3.5.
I have a jsp that displays a .
If I surround the table with:
...
then nothing in the page renders.
I'm using struts 1.3.5.
I have a jsp that displays a .
If I surround the table with:
...
then nothing in the page renders. The EmployeeAdd action exists; it is
associated with an ActionForm that also exists.
Does anyone have any idea what can cause this problem?
Can I ask, what is the reason for avoiding the Struts tags and using the
JSTL tags? (It begs the question, what is the purpose of the struts tags?)
Wendy Smoak wrote:
On 12/9/06, Fabio Miranda Hamburger <[EMAIL PROTECTED]>
wrote:
How can I 'send' this array from fooBarStrutsAction.java, and
I have jsp containing a form to add employees. This submits to an
action that adds the new employee to the database, and then forwards
back to the add employee page so that more employees can be added.
Currently, when I get back to the jsp the ActionForm still contains the
original data, but
I'm slowly improving with struts, but have a basic question.
I query a database using hibernate, which returns a List.
On the other end, I have a jsp page that displays the result. I know
that the jsp can access beans using tags like logic:iterate and bean:write.
(Here is the dumb question:
I'm trying to understand how and when beans are available within struts.
(1.3.5)
For example, if my Action class contains code like:
MyBean mybean = new MyBean() // NOT an ActionForm, just a regular bean
I would have thought (and the docs suggest) that I would need something
like
requ
s.xml.
If anyone know a better way, please let me know! But this method seems
reasonable.
Adam Hardy wrote:
Antonio Petrelli on 31/10/06 08:07, wrote:
Rick Schumeyer ha scritto:
I have a layout that includes:
My definition does *not* include "body"
The "actual" jsp page de
umm...let me make something up real quick...one can obviously handle
exceptions in non-struts Java apps. I was thinking at the time you
could do the same thing in struts, and simply not take advantage of any
of the exception handling features of struts.
I didn't mean to suggest there is *one*
Thanks for the reply. It's not that I'm nervous about ModuleException,
but rather that there are several ways to do it. There is the
traditional java way, ModuleException, your method of catching
exceptions and forwarding to a global error page...and many others. I
was hoping to learn about
Let me give this one more try: I'm considering using the
ModuleException class for exception handling. It looks like a
reasonably painless way to go. Is there any reason *not* to use this
method? Or if anyone can point me to an example showing a better
method, that would be great also.
--
In struts 1.3.x, what is the best way to use resource bundle keys
together with tiles? I found the following feature request, but it is a
couple of years old...I don't know whether this was ever
implemented...but basically this is what I'm trying to do:
It would be convenient to implement
I would appreciate any insights people have on the best way to handle
exceptions. I would really like to keep it simple, and not create a
custom exception handler or whatever if I don't need to.
I ran across ModuleException, mentioned in the Jakarta Struts book by
Cavaness (2nd ed for struts
I'm a new tiles user. I'm using the tiles-defs.xml method for
definitions (if it matters).
I have a layout that includes:
My definition does *not* include "body"
The "actual" jsp page determines the proper value for "body":
Question: the way I'm doing this means I now have *two *pages f
I'm coming up to speed on struts 1.3.5, and I will be asking some
possibly silly questions soon.
I have been reading the "Jakarta Struts" book by Cavaness (2nd ed) which
covers struts 1.1. I get the impression that there were several
significant changes from 1.0 to 1.1; I'm not sure how big t
eady laid out to make ant happy?
Rick Schumeyer wrote:
I'm trying to get into the struts game, which means I'm simultaneously
trying to come up to speed on at least three Apache projects: tomcat,
ant, and struts. Plus servlets and jsps. I'm sorry if this is a
basic question, bu
I'm trying to get into the struts game, which means I'm simultaneously
trying to come up to speed on at least three Apache projects: tomcat,
ant, and struts. Plus servlets and jsps. I'm sorry if this is a basic
question, but I'm a little flustered.
Ant seems to expect a certain directory str
37 matches
Mail list logo