Re: Re: S2 + REST urls

2007-07-29 Thread Aram Mkhitaryan
> > I do not understand well. Do you mean to create new package in sruts.xmland > add an action which serves static content ? > Exactly, Best, Aram Aram Mkhitaryan 52, 25 Lvovyan, Yerevan 375000, Armenia Mobile: +374 91 518456 E-mail: [EMAIL PROTECTED]

how to handle unchecking a check box

2007-07-29 Thread Joe Yuen
I am running into a situation where once a user has checked a box and has submitted the form, there is now no way to uncheck the box. What is the proper way to handle this situation? Thanks, Joe

[S2] AJAX with Sitemesh

2007-07-29 Thread Grish
I tried taking a modified version of the Struts 2 + Spring 2 + JPA + AJAX tutorial that I've done and integrated it with Sitemesh. I realized that if i have div tags with the ajax theme, Sitemesh will decorate that area so I will end up with and embedded decorator in the main page. I need to excl

Re: How to format the actionerrors and actionmessages in the jsp page?

2007-07-29 Thread M.Liang Liu
Hi, Richard Sayre Thanks for ur reply. I have been looking for a solution by myself but to find that there was none to resolve it just change the configuration-file. I have no experience in taking use of FreeMarker. However,ur way may be just the only one. I will just try and thanks for ur commen

RE: [S2] Passing URL as parameter between JSP pages

2007-07-29 Thread Srinivas.N.
I need to pass the URL from the including page to the included page within the same http request and not across requests (hence the form, hidden variables are not needed). Let me illustrate with an example. Lets say I have searchResults.jsp that lists a page of results and at the bottom, I include

Re: struts buttons to invoke actions

2007-07-29 Thread Jeromy Evans
Your approach seems fine. See if you can access "CategoryEditor.action" directly using the browser. If not, the action name is incorrect. Have you confirmed that its actually posting a request? Also the logging and debugging interceptor for more insight. Session A Mwamufiya wrote: Hi, I use

RE: struts buttons to invoke actions

2007-07-29 Thread Session A Mwamufiya
I tried that, but it doesn't change a thing, I still never get the actions called. I'm sure that someone must have already used a button to call a struts 2 action; could you please send me a jsp example of that so that I could do the same in my case. Thanks, Session > > hey to get things m

RE: [S2] Passing URL as parameter between JSP pages

2007-07-29 Thread Himanshu Ranavat
Hey Srinivas Maybe u cud create a form and create a hidden variable to pass the URL around between different pages. Retrieve the URL from the form, process it if u need, add it again as a hidden variable in a form in the next page. try to submit the form by post. Also see if this helps: http://s

Using JAAS with Struts and MySQL

2007-07-29 Thread Diego Ezquerro
Hi to everyone. I'm new to Struts and I'm trying to use JAAS Authentication using mysql database to store usernames and passwords. I've found tutorials in google but they show how to configure JAAS with struts using a file to store the authentication data of the users. The tutorial is http://www

[S2] Passing URL as parameter between JSP pages

2007-07-29 Thread Srinivas.N.
I am developing an app for which there is a common pagination bar (call it "paginationInclude.jsp") that is included at the bottom of several different pages. The pagination include needs to get a "base url" from the including page and then append a "pagenum" param to that URL to generate the fin

Re: IoC and Guice 1.0 Struts 2.0.8

2007-07-29 Thread Jeromy Evans
Lukasz, It was a few months ago, but I recall encountering the same problem when trying to define a Guice module. As you described, it worked fine without a Module but failed when one was specified. I tracked it down to a bug (in the plugin I think?) and it was solved by building the current v

RE: Is Struts still a better choice over JSF as on today ?

2007-07-29 Thread souravm
Hi Frank, Thanks again for the detailed response. I think I've got your points. Yes I'm aware of Swing/VB technology and that analogy helped me a lot to understand the perspective. However, I'm still not very sure whether the design approach of Swing/VB is a right fit for a scenario where the

Re: [s2] Developing Portlets with Eclipse tutorial available

2007-07-29 Thread Don Brown
Very cool! That has been one of those things I keep meaning to work on. If nothing else, add the lines (commented out, of course) to our portlet archetype. Don On 7/29/07, Nils-Helge Garli <[EMAIL PROTECTED]> wrote: > Good tutorial, and a nice way to get started with portlet development! > > Ma

Re: Submitting a variable amount of form data

2007-07-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard, Richard Sayre wrote: > I have a form that can have 1 to many 'Name' text fields. In struts > 2 how do I set up the action so it can automatically grab the values > that are in those fields? > > If I had 1 name field I would just put a name

Exception Handling and Logging

2007-07-29 Thread Richard Sayre
After reading the Mail Reader walk through, it would seem the best practice for handling exceptions is throwing them back to your Action and having a result mapped to handle each specific exception. Is this the best way to do this? If I use this method how can I log the stack of each exception th

Submitting a variable amount of form data

2007-07-29 Thread Richard Sayre
I have a form that can have 1 to many 'Name' text fields. In struts 2 how do I set up the action so it can automatically grab the values that are in those fields? If I had 1 name field I would just put a name variable in the Action Class and create a setter and getter for it. How do I do this w

Re: How to format the actionerrors and actionmessages in the jsp page?

2007-07-29 Thread Richard Sayre
For clarification the following line: <#include "/${parameters.templateDir}/xhtml/validationarea.ftl" /> was added to the first line of form.ftl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

Re: How to format the actionerrors and actionmessages in the jsp page?

2007-07-29 Thread Richard Sayre
Hi, I had the same problem. I did not like the way the error were being displayed (In a new row above the field that has the error) To do this I have to chenge the XHTML template First I removed the validation from the controlheader-core <#-- REMOVED We have our own Error area <#if hasFieldEr

Re: [s2] Developing Portlets with Eclipse tutorial available

2007-07-29 Thread Nils-Helge Garli
Good tutorial, and a nice way to get started with portlet development! Maybe not entirely on topic, but inspired by your tutorial and some information I found earlier in the pluto FAQ about embedding pluto, I started playing around with making the maven-jetty-plugin work with a portlet project. Th