Re: moving on to Hibernate with S2...

2007-05-11 Thread Rick Schumeyer
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

Re: moving on to Hibernate with S2...

2007-05-11 Thread Rick Schumeyer
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

moving on to Hibernate with S2...

2007-05-11 Thread Rick Schumeyer
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

Re: Problems getting started with Tiles2/S2

2007-05-11 Thread Rick Schumeyer
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

Re: Problems getting started with Tiles2/S2

2007-05-11 Thread Rick Schumeyer
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]

Problems getting started with Tiles2/S2

2007-05-10 Thread Rick Schumeyer
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

S2 and tiles2 status

2007-05-10 Thread Rick Schumeyer
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

Are S2 actions POJOs?

2007-05-10 Thread Rick Schumeyer
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

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-19 Thread Rick Schumeyer
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

Re: very basic S2 question

2007-03-16 Thread Rick Schumeyer
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:

Re: very basic S2 question

2007-03-16 Thread Rick Schumeyer
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

very basic S2 question

2007-03-16 Thread Rick Schumeyer
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

struts/hibernate/tomcat question

2007-01-02 Thread Rick Schumeyer
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

Re: I think I want to convert to S2 !

2006-12-22 Thread Rick Schumeyer
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 think I want to convert to S2 !

2006-12-21 Thread Rick Schumeyer
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

Re: S1.3.5: ActionForm with Date

2006-12-21 Thread Rick Schumeyer
#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:

S1.3.5: ActionForm with Date

2006-12-21 Thread Rick Schumeyer
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

Re: basic JSTL question

2006-12-19 Thread Rick Schumeyer
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

basic JSTL question

2006-12-19 Thread Rick Schumeyer
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/

S2 with eclipse/WTP

2006-12-15 Thread Rick Schumeyer
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

how to initialize an edit page?

2006-12-11 Thread Rick Schumeyer
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

Re: problems with tag

2006-12-11 Thread Rick Schumeyer
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.

problems with tag

2006-12-11 Thread Rick Schumeyer
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?

Re: struts action servlet interaction with jsp files

2006-12-09 Thread Rick Schumeyer
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

Action maps back to same page...best way to reset ActionForm?

2006-12-09 Thread Rick Schumeyer
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

very basic bean/iterator question

2006-12-05 Thread Rick Schumeyer
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:

newbie struts and beans scope question

2006-11-03 Thread Rick Schumeyer
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

Re: Tiles "best practices" question

2006-11-01 Thread Rick Schumeyer
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

Re: ModuleException

2006-11-01 Thread Rick Schumeyer
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*

Re: ModuleException

2006-11-01 Thread Rick Schumeyer
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

ModuleException

2006-11-01 Thread Rick Schumeyer
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. --

tiles and resource bundle

2006-10-31 Thread Rick Schumeyer
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

Exception handling best practices: ModuleException

2006-10-31 Thread Rick Schumeyer
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

Tiles "best practices" question

2006-10-30 Thread Rick Schumeyer
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

taglib uri question

2006-10-30 Thread Rick Schumeyer
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

Re: newbie confused by struts and ant

2006-10-10 Thread Rick Schumeyer
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

newbie confused by struts and ant

2006-10-10 Thread Rick Schumeyer
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