Re: Security @ Struts2, using Acegy or Inspector

2008-04-02 Thread Lukasz Lenart
Hi, > so, if I extend this action, the action will query and get security > permission from database.. because i prefer database driven .. You can do this with Acegi and even combine database with LDAP or with something else. I have used such solution in my projects. > but i thinking a interc

Re: xml based validation vs Annotations based validation

2008-04-02 Thread Lukasz Lenart
Hi, > Wanted to get opinion from the struts2 user community if there are any > advantages/disadvantages of using one approach over another (Xml vs Annotation > based validation). Nope ;-) There is no one good answer for your question, because it depends ;-) For me, the best thing is, you can com

Re: Actionerrors & the Store Interceptor

2008-04-02 Thread Chris Pratt
On Wed, Apr 2, 2008 at 11:17 PM, Al Sutton <[EMAIL PROTECTED]> wrote: > Chris, > > I've used the StoreInterceptor and my opinion is that it just isn't > flexible enough to use. > > To illustrate the point, consider try following; > > 1) You have a View Action which displays all of the data of a

Re: Actionerrors & the Store Interceptor

2008-04-02 Thread Al Sutton
Chris, I've used the StoreInterceptor and my opinion is that it just isn't flexible enough to use. To illustrate the point, consider try following; 1) You have a View Action which displays all of the data of a specific type, which uses the StoreInterceptor in retrieve in order to show confir

Re: Struts 2.1 TabbedPanel scenario

2008-04-02 Thread Shoaib Gauhar
First of all, thanks for replying. I really appreciate it. Making a single action class will make the classes very bulky and complex. I dont want to have that. I used the remote tabs functionality in tabbed panel but all it does is that it goes into a infinite recursive loop. It adds infinite numb

issue

2008-04-02 Thread Niral Trivedi
Hi All, I am using Struts 2.0.11 on RAD7, Webspher 6.1, JDK 1.5. I am trying to create radio buttons using a dynamic Map as below: But when I try to load the page, it is giving Freemaker Template exception as below(I haven't pasted entire stack trace for readabi

Re: Hidden field null in IE

2008-04-02 Thread phms
Ok. Lets go: I have a javascript function that sets a value of a hidden field : hidden field: Javascript function: function adiciona(){ document.getElementById('mode').value='add'; } In my form i have a The problem is that the field is not set when i am using IE. -- newton.dave wrote

Re: rrrrr...why my field returns null????

2008-04-02 Thread xianwinwin
thank you Laurie for your reply. I made a type - its str not the Note. so the str is null :-( when I remove the theme="ajax" it works fine. BUT I need it there (the idea that the form will disappear once the action is completed). how do I get the value of the str? rr :-( I've been trying di

Re: Security @ Struts2, using Acegy or Inspector

2008-04-02 Thread Frans Thamura
> If you anticipate having the complexity of a full ACL implementation, I'd > just go ahead and use AceGI; why re-invent all that machinery? If you decide > to roll your own, though, then the interceptor can access the action through > the ActionInvocation object and, through the action, can access

Re: [OT] Struts - Spring - hibernate and lazy initialization

2008-04-02 Thread Yayo
Oki, thanks, I've posted to Spring mailing list with my problem ^g^ On Wed, Apr 2, 2008 at 11:14 PM, Laurie Harper <[EMAIL PROTECTED]> wrote: > This isn't really a Struts issue, since you're asking how to drive your > service/dao layout from a thread outside the context of a Struts-served > reque

Re: Optiontransferselect list issue

2008-04-02 Thread Ryan
Well, I got it working...thanks for the sanity check, Laurie! The user.groups collection was not getting assigned appropriately at the bottom of a long, dark path of assignment logic. I suppose a null collection really isn't technically a collection, hence the exception error message, but the messa

xml based validation vs Annotations based validation

2008-04-02 Thread akash agrawal
Hi, Wanted to get opinion from the struts2 user community if there are any advantages/disadvantages of using one approach over another (Xml vs Annotation based validation). Thanks, -Akash - You rock. That's why Blockbuster's offering you one month of Bl

Re: Using sets of objects with tags

2008-04-02 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > by using the "setname[id].fieldname" format above, would I simply > be able to access the entire set in the following Action by a getter > and setter with a like named set (i.e. "setname")? Yep. You might want to check out the type conversion docs [1] if you haven

Re: Actionerrors & the Store Interceptor

2008-04-02 Thread Chris Pratt
Sorry Lucas, I'm still not seeing how that will help differentiate between which result's need the messages collected and which don't? And I have to agree with Laurie, that I don't understand the difference between the store interceptor and what you're proposing. (*Chris*) On Wed, Apr 2, 2008 a

Re: Using sets of objects with tags

2008-04-02 Thread jstraub
> You're not relating the fields to the students collection in any way. > > You'd need a collection of students in your action (probably mapped by > ID), > and each field would use something like "student[id].firstname" as the > field > name. > > The code you've provided (below) will just create a

Re: Actionerrors & the Store Interceptor

2008-04-02 Thread Lukasz Lenart
> Umm, that's what the Store Interceptor is. Not exactly, you have to specify for which action store the messages, and for which retrieve them back. There is no magic, everything hand coded ;-) Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart -

Re: Actionerrors & the Store Interceptor

2008-04-02 Thread Chris Pratt
Thanks Laurie, any ideas on the original problem? (*Chris*) On Wed, Apr 2, 2008 at 2:19 PM, Laurie Harper <[EMAIL PROTECTED]> wrote: > Lukasz Lenart wrote: > > > Hi, > > > > I think the best solution is to develop two Interceptors, one will run > > after action invocation and will store messages

Re: [s2] conversion validator and repopulateField

2008-04-02 Thread Kevin Wade
Ok, I think I have the solution to my own problem. Since reviewdate is a date field, I was using the s:date tag in my jsp, like this: name="moviereview.reviewdate" size="12" maxlength="10"/ I gather that reviewdate can't be set properly when I use the date tag like this since what's being

Re: Using sets of objects with tags

2008-04-02 Thread Dave Newton
You're not relating the fields to the students collection in any way. You'd need a collection of students in your action (probably mapped by ID), and each field would use something like "student[id].firstname" as the field name. The code you've provided (below) will just create a bunch of fields

Re: Using sets of objects with tags

2008-04-02 Thread jstraub
> > You don't need to 'parse the stream', Struts does that for you. Struts > will call the setters on the objects in your set to pass the form inputs > into them. In other words, the result you want to achieve is what > happens automatically, provided you specify your input fields correctly. > > L

Re: Actionerrors & the Store Interceptor

2008-04-02 Thread Laurie Harper
Lukasz Lenart wrote: Hi, I think the best solution is to develop two Interceptors, one will run after action invocation and will store messages in session or some other objects from given request key. And second one, which will be run before action invocation, that will retrieve such stored mess

Re: [OT] Struts - Spring - hibernate and lazy initialization

2008-04-02 Thread Laurie Harper
This isn't really a Struts issue, since you're asking how to drive your service/dao layout from a thread outside the context of a Struts-served request. What you need to do in that case is to manage the Hibernate session from your worker thread. The thread needs to setup and open the Hibernate

Re: rrrrr...why my field returns null????

2008-04-02 Thread Laurie Harper
Your action doesn't have a bean of name/type Note, it only has a single String property 'str'. Did you mean this property is not being set? From the code you've included, it should be set from the textfield so you must have something configured wrong. What does your action mapping look like? Ar

Re: Using sets of objects with tags

2008-04-02 Thread Laurie Harper
[EMAIL PROTECTED] wrote: Struts 2? Sorry, yes I am using Struts 2. Er, what other forums would you have tried? Varied coding forums that happened to have a struts/hibernate/whatever-else subsection Use map- (and/or) index-based field names. Trivial with S2, don't actually remember for S

Re: Hidden field null in IE

2008-04-02 Thread Dave Newton
--- Musachy Barroso <[EMAIL PROTECTED]> wrote: > Oh my eyes!, now seriously, that is kind of hard to read (and you > didn't even say what field it was). > > On Wed, Apr 2, 2008 at 4:35 PM, phms <[EMAIL PROTECTED]> wrote: > > I have a JSP page in which i need to set a hidden field **(mode)** using

[s2] conversion validator and repopulateField

2008-04-02 Thread Kevin Wade
Hello. I am having a problem getting "repopulateField" to work. In short, I have added date validation to one of my actions. In my validation xml file, I have this: true Date of Review entered is not a valid date.

Re: Hidden field null in IE

2008-04-02 Thread Dave Newton
Can you reduce that to a minimal use-case and repost? It's hard to wade through that much HTML/JavaScript/Java/JSP to find out what's actually happening. Dave --- phms <[EMAIL PROTECTED]> wrote: > > Folks, > > I have a JSP page in which i need to set a hidden field (mode) using > javascript an

Re: Actionerrors & the Store Interceptor

2008-04-02 Thread Lukasz Lenart
Hi, I think the best solution is to develop two Interceptors, one will run after action invocation and will store messages in session or some other objects from given request key. And second one, which will be run before action invocation, that will retrieve such stored messages from session and p

Re: Hidden field null in IE

2008-04-02 Thread Musachy Barroso
Oh my eyes!, now seriously, that is kind of hard to read (and you didn't even say what field it was). Tips: * Put all that inlined javascript in functions. * Check for javascript errors on the page * Minimize the example to something small that replicates the problem * This is not an struts proble

RE: struts-default.properties

2008-04-02 Thread Barron, Daniel
OK - found it. For anyone else looking for it in the future, it is in the org.apache.struts2 package root not the root of the jar. Dan -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2008 11:51 AM To: Struts Users Mailing List Subject: RE: struts

Hidden field null in IE

2008-04-02 Thread phms
Folks, I have a JSP page in which i need to set a hidden field (mode) using javascript and send it to a form using struts. The code works on Firefox but in IE the field is not modifyed (null). Below is my code: <%@ page language="java" %> <%@ taglib uri="http://struts.apache.org/tags-bean"; pre

Re: Regarding Service layer getting called twice

2008-04-02 Thread Laurie Harper
Struts invokes your actions, not your service layer, so the first step is to determine where the calls to the service layer are coming from. Either your action is doing that or your action is being called more than once during one 'logical request' -- which would probably mean the browser was i

Re: Struts - Spring - hibernate and lazy initialization

2008-04-02 Thread Yayo
Sorry, more explanation is needed... I've got to launch a "batch process" it's not a batch but it's a long lasting process that could raise a timeout and tomcat will kill the worker thread... So I've launched a worker of my own to do the job and inform the user with a progress indicator or the like

Re: application folder name in webapps folder in tomcat.

2008-04-02 Thread Laurie Harper
Raghuveer wrote: I have HelloServlet ,HelloServletContextListener in 3 different applications in tomcat webapps\AppHello1 webapps\AppHello2 webapps\AppHello3 How to identify in my listner class what is the folder/context name in my server. public void contextInitialized(ServletContextEvent

Re: Security @ Struts2, using Acegy or Inspector

2008-04-02 Thread Laurie Harper
Frans Thamura wrote: hi there I want to filter any .action in my cimande project and i want to give several database security to the action i just think this will become ACL for Struts2 but... I am also using Spring, anyone can help me is this better create my own interceptor (how to devel

Re: Struts - Spring - hibernate and lazy initialization

2008-04-02 Thread Adam Hardy
Yayo on 02/04/08 20:23, wrote: I'm developing a struts - spring based application. I've got actions-delegates-managers and daos and I use the open session in view filter from hibernate. In some cases I've got to return lazy results to the user so I've got to launch a new worker thread and taht

Re: Struts - Spring - hibernate and lazy initialization

2008-04-02 Thread Gabriel Belingueres
Try to post a stack trace or something more meaningful, but first of all, as a general architectural guideline, try first to refactor your code to avoid circular dependencies. 2008/4/2, Yayo <[EMAIL PROTECTED]>: > Hi, > > I'm developing a struts - spring based application. > > I've got actions-de

Re: [S2] checkboxes in each row of table - set values in action

2008-04-02 Thread Laurie Harper
lbastil wrote: Hello, I have the following problem: in action i have a collection of class User each class User have different attributes, one is: boolean permission in JSP I use struts 2 iterator tag to iterate the User Objects. For each User entry I create one row in table. for displaying/ch

Re: Struts 2.1 TabbedPanel scenario

2008-04-02 Thread Laurie Harper
Shoaib Gauhar wrote: Hello, Here is the scenrio. I have two action classes. ClassA and ClassB. There is no relationship among these classes. You might say that if there is no relationship then why i have to put them in one single jsp. Well its a client's requirement. That's an implementation d

Re: Help with tutorial

2008-04-02 Thread Laurie Harper
Lukasz Lenart wrote: Hi, org.hibernate.AnnotationException: java.lang.NoSuchMethodException: As for me, such fragment says that you maybe made some miss typo with method name, in class or in Spring xml file Either that, or you have a classpath issue. Check you have all required JARs deplo

Re: Optiontransferselect list issue

2008-04-02 Thread Laurie Harper
Have you double-checked that getUser().getGroups() is returning what it should be? I.e. getUser() is not returning null; getUser().getGroups() is really returning a collection? As a sanity check, what happens if you include the following in your JSP: user: user.groups:

Struts - Spring - hibernate and lazy initialization

2008-04-02 Thread Yayo
Hi, I'm developing a struts - spring based application. I've got actions-delegates-managers and daos and I use the open session in view filter from hibernate. In some cases I've got to return lazy results to the user so I've got to launch a new worker thread and taht new one doesn't have an hib

rrrrr...why my field returns null????

2008-04-02 Thread xianwinwin
Can anyone advise why my bean is null. I have the following jsp page: when the user cllicks submit - the action 'insert' kicksin but the bean (Note) is null (yes, i have getter and setter) //action @Validation public class NoteActi

Re: Using sets of objects with tags

2008-04-02 Thread jstraub
> > Struts 2? > Sorry, yes I am using Struts 2. > > Er, what other forums would you have tried? > Varied coding forums that happened to have a struts/hibernate/whatever-else subsection > > Use map- (and/or) index-based field names. Trivial with S2, don't actually > remember for S1. > I may not

RE: struts-default.properties

2008-04-02 Thread Dave Newton
--- "Barron, Daniel" <[EMAIL PROTECTED]> wrote: > There is no "default.properties" file in the v2.0.11.1 S2 core jar [...] Then you have a corrupt struts2-core-2.0.11.1.jar file. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Strange behavior: Trying to implement saveToken() in display actions.

2008-04-02 Thread Doug Lochart
On Wed, Apr 2, 2008 at 2:37 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Doug Lochart <[EMAIL PROTECTED]> wrote: > > > --- Martin Gainty <[EMAIL PROTECTED]> wrote: > > > > Is there any reason (other than political) why you are using 1.3.8 > > > > [Singletons? Filters?] > > > > I guess I'm n

Re: Using sets of objects with tags

2008-04-02 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > I am loading a simple set of objects representing users in an action; they > have names, passwords, etc., all loaded from a database. Struts 2? > Next, I use the iterator to create textfield tags instead of property > tags, with the goal of allowing the viewer to ed

Re: Strange behavior: Trying to implement saveToken() in display actions.

2008-04-02 Thread Dave Newton
--- Doug Lochart <[EMAIL PROTECTED]> wrote: > > --- Martin Gainty <[EMAIL PROTECTED]> wrote: > > > Is there any reason (other than political) why you are using 1.3.8 > > > [Singletons? Filters?] > > I guess I'm not sure what that has to do with an S1 token issue; could > > you explain further? >

Re: html:button

2008-04-02 Thread Antonio Petrelli
2008/4/2, puneet duggal <[EMAIL PROTECTED]>: > frnds how to use Simple html:button to perform action in action class > without using submit button Use Javascript in the onclick attribute. Antonio - To unsubscribe, e-mail: [EM

RE: How is the dependency and dependency conversion list built on struts website?

2008-04-02 Thread Griffith, Michael *
Ignore my question... I found it... Maven 2 Report, thanks. MG -Original Message- From: Griffith, Michael * [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2008 12:50 PM To: Struts Users Mailing List Subject: How is the dependency and dependency conversion list built on struts websit

Actionerrors & the Store Interceptor

2008-04-02 Thread Chris Pratt
We're having a problem configuring the system and, since this seems like a common problem, we're hoping someone has found a solution. We have a bunch of actions that can't be run twice, so we're using the redirect-action result type to make sure a refresh doesn't accidentally resubmit the request.

RE: struts-default.properties

2008-04-02 Thread Barron, Daniel
There is no "default.properties" file in the v2.0.11.1 S2 core jar and constants in struts.xml work but not for "struts.configuration" key it seems. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2008 10:44 AM To: Struts Users Mailing List Sub

Using sets of objects with tags

2008-04-02 Thread jstraub
Perhaps this is the wrong place to seek help, and perhaps there is no direct solution to my problem, but I have to try. I am loading a simple set of objects representing users in an action; they have names, passwords, etc., all loaded from a database. I am displaying the elements of this set in a

How is the dependency and dependency conversion list built on struts website?

2008-04-02 Thread Griffith, Michael *
Hello all, I think I know the answer to this, but I am wondering how the dependency and dependency convergence lists are built on the Struts Website? http://struts.apache.org/2.x/struts2-core/dependencies.html http://struts.apache.org/2.x/struts2-core/dependency-convergence.html Is this

Re: Strange behavior: Trying to implement saveToken() in display actions.

2008-04-02 Thread Doug Lochart
> --- Martin Gainty <[EMAIL PROTECTED]> wrote: > > Is there any reason (other than political) why you are using 1.3.8 instead > > of 2.0.11+ There are numerous reasons and one being that we are still supporting 1.x in other applications. All the books I have at my disposal deal with 1.x. Regar

html:button

2008-04-02 Thread puneet duggal
frnds how to use Simple html:button to perform action in action class without using submit button - Sent from Yahoo! Mail. A Smarter Inbox.

Re: struts-default.properties

2008-04-02 Thread Dave Newton
--- "Barron, Daniel" <[EMAIL PROTECTED]> wrote: > It is not clear to me - is the struts-default.properties just a template > for struts.properties or is it actually being loaded? I do not see it > being loaded in anyway and only see values from struts.properties being > used. Can anyone provide s

struts-default.properties

2008-04-02 Thread Barron, Daniel
It is not clear to me - is the struts-default.properties just a template for struts.properties or is it actually being loaded? I do not see it being loaded in anyway and only see values from struts.properties being used. Can anyone provide some insight on this please? Thanks in advance. D

Re: [S2] Menu Tag Library struts-config.xml problem.

2008-04-02 Thread Dave Newton
I don't know about S2/Struts-Menu integration, but I guarantee you that blindly following instructions for an S1 application has no chance of working in a typical S2 application. Dave --- sassien <[EMAIL PROTECTED]> wrote: > > Hello all, > > I am used to JSF, and, trying to learn how to handle

Re: Strange behavior: Trying to implement saveToken() in display actions.

2008-04-02 Thread Dave Newton
--- Martin Gainty <[EMAIL PROTECTED]> wrote: > Is there any reason (other than political) why you are using 1.3.8 instead > of 2.0.11+ > if your concerned about implement singleton servlet context then implement > your own FilterDispatcher e.g. > > public class MyFilterDispatcher extends FilterDis

RE: Use Myeclipse

2008-04-02 Thread Dave Newton
--- Jose Cardoso <[EMAIL PROTECTED]> wrote: > MyEclipse would solve your problem. Just for completeness, MyEclipse is, AFAIK, S2-unaware and would do nothing in particular to aid in S2 development. I'm sure this will change at some point, though. > -Original Message- > From: Sam Wun [mai

Re: Eclipse with struts

2008-04-02 Thread Dave Newton
--- Sam Wun <[EMAIL PROTECTED]> wrote: > Do you meant unzip the struts-xxx.zip file into the WEB-INF/lib/ folder? > or use File->Import in Eclipse or Weblogic? You should File->Import only the specific S2/etc. libraries you need into WEB_INF/lib folder. In particular do *not* import plugin librar

application folder name in webapps folder in tomcat through struts plugin

2008-04-02 Thread Raghuveer
I have done this this requirement in org.apache.struts.action.PlugIn. Here also I am getting public void init(ActionServlet actionServlet, ModuleConfig config) throws ServletException { Properties _ini_config = new Properties(); try { String

Regarding Service layer getting called twice

2008-04-02 Thread Prajapati Manish Narandas
Hi all, i am using spring object factory action itself,service layer and Dao layer. Here, service layer method is getting called twice and due to that dao layer method is also called twice. Can any body tell me what can be the reason of it? This not happening service layer of all action. Like i hav

[S2] Menu Tag Library struts-config.xml problem.

2008-04-02 Thread sassien
Hello all, I am used to JSF, and, trying to learn how to handle struts 2, I noticed that there is no integrated tag to create menus (like richFaces, for example). So I found this library: "Struts-menu", which had initially been written for Struts 1. http://struts-menu.sourceforge.net/userguide.ht

application folder name in webapps folder in tomcat.

2008-04-02 Thread Raghuveer
I have HelloServlet ,HelloServletContextListener in 3 different applications in tomcat webapps\AppHello1 webapps\AppHello2 webapps\AppHello3 How to identify in my listner class what is the folder/context name in my server. public void contextInitialized(ServletContextEvent ce) { contextName =

Re: Optiontransferselect list issue

2008-04-02 Thread ryangr
> Are you just missing the getter for user? Struts2 has to call > getUser().getGroups(). The action has getters and setters for both user and groups, and the user object has a getter/setter for its groups attribute. > I never have these two attributes pointing to the same property. It may > w

RE: Use Myeclipse

2008-04-02 Thread Jose Cardoso
MyEclipse would solve your problem. -Original Message- From: Sam Wun [mailto:[EMAIL PROTECTED] Sent: 02 April 2008 14:17 To: Struts Users Mailing List Subject: Re: Eclipse with struts - Original Message From: Dave Newton <[EMAIL PROTECTED]> To: Struts Users Mailing List Se

Re: Eclipse with struts

2008-04-02 Thread Sam Wun
- Original Message From: Dave Newton <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Wednesday, April 2, 2008 11:46:06 PM Subject: Re: Eclipse with struts --- Sam Wun <[EMAIL PROTECTED]> wrote: > When I tried to follow the tutorial as shown in the following link: > http://www.l

Re: Strange behavior: Trying to implement saveToken() in display actions.

2008-04-02 Thread Martin Gainty
Doug- Is there any reason (other than political) why you are using 1.3.8 instead of 2.0.11+ if your concerned about implement singleton servlet context then implement your own FilterDispatcher e.g. public class MyFilterDispatcher extends FilterDispatcher { public void setFilterConfig(FilterConfi

Re: Eclipse with struts

2008-04-02 Thread Dave Newton
--- Sam Wun <[EMAIL PROTECTED]> wrote: > When I tried to follow the tutorial as shown in the following link: > http://www.laliluna.de/first-steps-using-struts-tutorial.html > > my newly created project in Eclipse don't have Struts libraries in the > list. What should I do to import Struts in to E

Security @ Struts2, using Acegy or Inspector

2008-04-02 Thread Frans Thamura
hi there I want to filter any .action in my cimande project and i want to give several database security to the action i just think this will become ACL for Struts2 but... I am also using Spring, anyone can help me is this better create my own interceptor (how to develop interceptor that can

[S2] checkboxes in each row of table - set values in action

2008-04-02 Thread lbastil
Hello, I have the following problem: in action i have a collection of class User each class User have different attributes, one is: boolean permission in JSP I use struts 2 iterator tag to iterate the User Objects. For each User entry I create one row in table. for displaying/changing the boole

Eclipse with struts

2008-04-02 Thread Sam Wun
Hi, I am new to Eclipse and Struts. When I tried to follow the tutorial as shown in the following link: http://www.laliluna.de/first-steps-using-struts-tutorial.html my newly created project in Eclipse don't have Struts libraries in the list. What should I do to import Struts in to Eclipse? Tha

Re: Strange behavior: Trying to implement saveToken() in display actions.

2008-04-02 Thread Doug Lochart
I am just learning Struts. I think I may have forgotten some information that you might need in order to provide any help. I am using Struts 1.3.8, JDK 1.6, running on Tomcat 5.5. If my problem is SO SIMPLE and hence why I have heard silence then I am sorry but this is my first app and I so far

Struts 2.1 TabbedPanel scenario

2008-04-02 Thread Shoaib Gauhar
Hello, Here is the scenrio. I have two action classes. ClassA and ClassB. There is no relationship among these classes. You might say that if there is no relationship then why i have to put them in one single jsp. Well its a client's requirement. In a single jsp there are two tabs. Tab1ForClassA

struts.xml

2008-04-02 Thread Adam Hardy
Can I have a second struts.xml in my test directory, and if so, how do I configure it? I'm testing some stuff using HttpUnit which launches the whole webapp in my tests. Having a test-only struts.xml will keep the test mappings out of the real webapp, allow me to drop stuff I don't need for th

Re: Help with tutorial

2008-04-02 Thread Lukasz Lenart
Hi, > org.hibernate.AnnotationException: java.lang.NoSuchMethodException: As for me, such fragment says that you maybe made some miss typo with method name, in class or in Spring xml file Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart -

Help with tutorial

2008-04-02 Thread Roland Dong
Hello, I have been following your tutorial Struts 2 + Spring 2 + JPA + AJAX http://struts.apache.org/2.x/docs/struts-2-spring-2-jpa-ajax.html. However, I have spent nearly 10 hours without figuring out why I keep getting this error after I followed all the steps in "Doing it yourself" in ecli