Struts 2.1 & AjaxAnywhere

2008-03-25 Thread Shoaib Gauhar
Hello, Has anyone tried AjaxAnywhere with Struts 2.1? My action class is never called. Actually, i am using ajax to achieve pagination in displaytag. I have used the example from the following link raibledesigns.com/rd/entry/the_future_of_the_displaytag. But the control doesnt reach my action cla

Replacement For MessageResourceConfig and MessageResourceFactory in struts-2

2008-03-25 Thread sandyvj83
Hi All, Does someone now the replacement for MessageResourceConfig and MessageResourceFactory in struts2. And also need a brief description for using message resources in struts 2. Thanks in Advance, Sandeep -- View this message in context: http://www.nabble.com/Replacement-For-MessageResource

Re: [struts] S2: Actions/DAO interaction getting messy...

2008-03-25 Thread Dale Newfield
The other benefit of the DAO / Manager / Action layers is that you can use spring to wire up the Manager/Service methods as the transaction boundaries. Sets of changes you want to all succeed or fail atomically? Put it in the manager. Managers are where business logic belongs, DAO's where DB

Re: The validator does not work

2008-03-25 Thread Chen Chunwei
Finally I found the problem! I did apply a slight change to the validator.xml yesterday: just added the following xml header. http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";> But in the above header, the version of validator is declared as 1.1 while in my validator-rules.xml, the ve

The validator does not work

2008-03-25 Thread Chen Chunwei
Hi all, It seems that my struts application's validator does not work. I've add to my struts-config.xml and these two files surely exist. Actually, it did work yesterday and I don't remember there are any change applied to my application. But the validator just does not work. Have you e

Re: S2: Actions/DAO interaction getting messy...

2008-03-25 Thread Adam Hardy
Eric D Nielsen on 25/03/08 14:29, wrote: Its a Struts2/Spring2/JPA(Hibernate) based project. I'm using a slightly modified version of the Generic DAO pattern shown in the Java persistence with Hibernate book and/or the IBM ThoughtWorks very similar example. (Modified to allow Spring Based Injecti

Re: Best way to get request information

2008-03-25 Thread Laurie Harper
mojoRising wrote: Struts 2 - Java - JSP For storing user login information in the database, when a user logs in I need to get the following types of information: Hostname, IP address, User-Agent, sessionId, etc. Before using Struts2, I would access the HTTPSession and request object and use meth

Best way to get request information

2008-03-25 Thread mojoRising
Struts 2 - Java - JSP For storing user login information in the database, when a user logs in I need to get the following types of information: Hostname, IP address, User-Agent, sessionId, etc. Before using Struts2, I would access the HTTPSession and request object and use methods such as: reques

Re: Javascript error using struts select tag

2008-03-25 Thread Laurie Harper
Since html:submit doesn't emit any Javascrip, the error has to be in your custom Javascript code. That came through somewhat unreadably formatted, though, and you didn't include its dependencies so it's tough to debug from here... I would strongly recommend installing Firefox + Firebug and step

Re: S2: Actions/DAO interaction getting messy...

2008-03-25 Thread Laurie Harper
Eric D Nielsen wrote: I'm starting to get some rather stinky code in one of my projects and wanted to ask for some advice. ( Its a Struts2/Spring2/JPA(Hibernate) based project. I'm using a slightly modified version of the Generic DAO pattern shown in the Java persistence with Hibernate book and/

Re: HashMap and updates

2008-03-25 Thread Laurie Harper
Kalpesh Modi wrote: Hi, I am having a problem in updates. I have a base class Employee.java. I have subclasses HourlyEmployee.java, ContractEmployee.java, FullTimeEmployee.java. I display these three types of employees under 3 tabs on my JSP. I create 3 lists for each type of employees and put

Re: How to implement browsing history

2008-03-25 Thread Chris Pratt
On Tue, Mar 25, 2008 at 1:23 PM, Andriy Kharchuk <[EMAIL PROTECTED]> wrote: > Hi guys, > > Is there standard or preferable way to enable user to go back when he/she > browses website? > As of now I can think only of caching something like > > http://acegisecurity.org/acegi-security/xref/org/ac

How to implement browsing history

2008-03-25 Thread Andriy Kharchuk
Hi guys, Is there standard or preferable way to enable user to go back when he/she browses website? As of now I can think only of caching something like http://acegisecurity.org/acegi-security/xref/org/acegisecurity/ui/savedrequest/SavedRequest.htmlor request.getRequestURL()+request.getQueryString

Re: Actions not called from their expected forms

2008-03-25 Thread Laurie Harper
wwwclaes wrote: Hi, we have an S2 application with a lot of actions that are supposed to be called from html forms. Since a few weeks ago something or someone has started calling these actions directly, hence the required input values are missing (which generate a lot of error mails to us adminis

Re: About Message Icons

2008-03-25 Thread Laurie Harper
Chris Pratt wrote: On Mon, Mar 24, 2008 at 10:58 PM, Chen Chunwei <[EMAIL PROTECTED]> wrote: Maybe some pre-defined style of message display or something else. I know I can do these all myself. But if there's already something can do this, why not just use it? There are the , , and tags,

Re: Problem with dojo loading dynamic html source

2008-03-25 Thread Dave Newton
--- cree <[EMAIL PROTECTED]> wrote: > My problem arises when I write out html to a jsp in a way like > out.println(" with theme="ajax" and targets set to a panel div. That's not how things work. JSPs are compiled (by the container) into a servlet; you don't have a JSP, you have an output stream

Problem with dojo loading dynamic html source

2008-03-25 Thread cree
My problem arises when I write out html to a jsp in a way like out.println("Link When dojo renders this source I get an error of: DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate widget implementation for "a" in "s.widget" registered to namespace "s". Developers must

Re: [struts] Running a prepare method before the assigned action method

2008-03-25 Thread Dale Newfield
meeboo wrote: Still no solution to this problem. How come parameters in actions with wildcards (for example myapp/modelObject/*) aren't parsed in the prepare method? They work fine when I parse them in my assigned action method :( If you're using 2.1, there are now a number of ways in which par

Re: struts 2 jsf plugin problem

2008-03-25 Thread Daniel
I have done that. Every time i get this error. I have no idea why this is thrown, and i don't know what he wants. Is there no librabry loaded for parsing the jsf page? I have no idea. On Mon, Mar 24, 2008 at 4:03 PM, Randy Burgess <[EMAIL PROTECTED]> wrote: > I would take everything out of your J

Javascript error using struts select tag

2008-03-25 Thread Joe Yuen
I am trying to use the tag in my jsp page but am getting the following javascript error, Microsoft JScript runtime error: Object expected. In my jsp page I have: * Here is the javascript funtion that is called when a onchange event is detec

S2: Actions/DAO interaction getting messy...

2008-03-25 Thread Eric D Nielsen
I'm starting to get some rather stinky code in one of my projects and wanted to ask for some advice. ( Its a Struts2/Spring2/JPA(Hibernate) based project. I'm using a slightly modified version of the Generic DAO pattern shown in the Java persistence with Hibernate book and/or the IBM ThoughtWorks

Re: Running a prepare method before the assigned action method

2008-03-25 Thread meeboo
Still no solution to this problem. How come parameters in actions with wildcards (for example myapp/modelObject/*) aren't parsed in the prepare method? They work fine when I parse them in my assigned action method :( meeboo wrote: > > Hey again > > I'm posting via nabble, and it seems to strip

HashMap and updates

2008-03-25 Thread Kalpesh Modi
Hi, I am having a problem in updates. I have a base class Employee.java. I have subclasses HourlyEmployee.java, ContractEmployee.java, FullTimeEmployee.java. I display these three types of employees under 3 tabs on my JSP. I create 3 lists for each type of employees and put these lists in a Hash

Re: Multiple Selects and optionsCollection

2008-03-25 Thread Antonio Petrelli
2008/3/24, Tom Holmes Jr. <[EMAIL PROTECTED]>: > > The number of combo-boxes will change dynamically ... based on previous > information. I think that, in your case, you need to manage HttpServletRequest parameters directly. There's nothing wrong with it :-) Antonio

Re: Multiple Select

2008-03-25 Thread Antonio Petrelli
2008/3/22, Thangalin <[EMAIL PROTECTED]>: > > styleClass="filter"> Does "select_name" have the value "fiscal_year"? Antonio

Re: How to eliminate an entry from an array with s2 tags

2008-03-25 Thread Dave Newton
--- Ezequiel Puig <[EMAIL PROTECTED]> wrote: > in my jsp, i have an array of ids and i will like to remove one of that > ids using s2 tags: > > I have tried the following, but it doesn't work :( > > > > > > > > > > Does anyone know how to do it ? Depending on the und

How to eliminate an entry from an array with s2 tags

2008-03-25 Thread Ezequiel Puig
Hi, in my jsp, i have an array of ids and i will like to remove one of that ids using s2 tags: I have tried the following, but it doesn't work :( Does anyone know how to do it ? thanks. Ezequiel.