Re: Url tag and automatic parameter setting

2008-04-28 Thread Jukka Välimaa
Thank you for answering my question. I assume setting includeParams to 'none' means it will not automatically set any parameters at all, including ajax parameters? On Mon, Apr 28, 2008 at 10:52 PM, Laurie Harper <[EMAIL PROTECTED]> wrote: > Jukka Välimaa wrote: > > > Hi, > > > > I have a problem-

Re: Struts1 and Struts2 in the same app

2008-04-28 Thread Sandy143
It is a single application. when trying to access struts2 action ... it is unable to find the path. (Error: Invalid Specified Path ...) I have interceptors in struts.xml. I have plugin jar in web-inf/lib. I am not sure of what needs to be done in addition to this... Your help would be greatly

Re: devMode + Windows + Eclipse + Tomcat = not reloading struts.xml

2008-04-28 Thread Al Sutton
I'm pretty sure it's an Windows/Eclipse thing as I see the same thing with or without devMode set to true on Windows with JDK 1.5.0_14. Struts has very little control over how it is deployed into the webapp container (tomcat in your case), so you might want to check in with the eclipse guys to

RE: Simplified usage of:@com.company.Constants.StaticCOnstants

2008-04-28 Thread Ravichandra C
Hi, This doesn't seem to be working. My main problem is that why is it not throwing any exceptions if its not the right way to display it? Any other way of fixing this issue??? Ravi -Original Message- From: Chris Pratt [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 29, 2008 10:40 AM

[Struts2] Exception starting filter (Connection Timed Out)

2008-04-28 Thread Pierre Thibaudeau
Just moving from Struts1 to Struts2.0.11. No problem on Tomcat 6.0.16. However, I get the following exception on startup with Tomcat 6.0.14. Does anyone know a way round this? (I've included excerpts from web.xml further down.) *** EXCE

Re: Simplified usage of:@com.company.Constants.StaticCOnstants

2008-04-28 Thread Chris Pratt
I think it may need to be: But I haven't tried it myself. (*Chris*) On Mon, Apr 28, 2008 at 9:44 PM, ravi_eze <[EMAIL PROTECTED]> wrote: > > hi, > > i tried this way: > > > > > but its not working nor it throws an exception if its wrong way of doing. > > any help? > > cheers, > r

Context Root for Image Button src attribute

2008-04-28 Thread Yellek
I am trying to write an image button of the form: where context-root is the configured context root of my web application. Can anyone suggest a good way to dynamically populate the context root? I am assuming that the src string is being interpreted via OGNL but I can't figure out an appropria

Re: Simplified usage of:@com.company.Constants.StaticCOnstants

2008-04-28 Thread ravi_eze
hi, i tried this way: but its not working nor it throws an exception if its wrong way of doing. any help? cheers, ravi Wes Wannemacher wrote: > > > http://struts.apache.org/2.x/docs/set.html > > > > On Mon, 2008-04-28 at 08:17 -0700, ravi_eze wrote: >> hi, >> >> we want to access

Re: datetimepickers

2008-04-28 Thread Jeromy Evans
Alan Nisbet wrote: Hi, I'm trying to capture date and time from a datetimepicker, so I want the date object to contain both date and time. Has anyone come up with a decent solution on how to do this? I would have thought it was a relatively common thing to try and do! Best Regards, Alan.

Re: jsp page with s:action to call an action with a redirect-action

2008-04-28 Thread crappycrumpet
Currently I have made a work around by assigning the result for actionB to b.jsp which invoke actionA using another and parsing the parameter through using . I just thought perhaps you can just redirect action without a page in between the two actions. Oh well. cheers. -- View this message in

nested tags in velocity

2008-04-28 Thread Musachy Barroso
Does anyone know how to use nested tags in velocity, like building a url? I have tried many, many combinations of the form: #surl ... #sparam ... #end #end and can't seem to get it right. (and google is no giving me any love on this one) musachy -- "Hey you! Would you help me to carry the ston

error page and tiles.

2008-04-28 Thread balaji.m.cs
i want to show an error page with a application error messages 2 the users when there is an technical error... i am using tiles 1.2 with struts 1.3.5 when there is an error in a jsp tile say a body part or a left part the error page is replaced @ that particular til

Re: inheritance...

2008-04-28 Thread balaji.m.cs
ya its not a problem but i am asking can we able to reffer a childform bean object specified in struts config with the baseform reference.. in the time of rendering into a jsp...? Antonio Petrelli-3 wrote: > > 2008/4/27 balaji.m.cs <[EMAIL PROTECTED]>: >> BaseFrom extends ActionForm { >

RE: Struts 2 tag : Unable to retrieve the value in theaction

2008-04-28 Thread Binu John
This does not help. :( I tried using the setter method as below void setSelectKeyword(String[] selectKeyword) { log.debug(LoginAction.class.getName() + ": execute() : Checkpoint 1"); this.temp = selectKeyword; } But the log statement even does not gets printed. That me

jsp page with s:action to call an action with a redirect-action

2008-04-28 Thread crappycrumpet
Hi, I have a problem where I have a page (let's call it a.jsp) which calls an action using show_name.jsp actionA namespaceA b.thingyId Now it works fine when I call it by going to the url http://XXX/namespaceB/actionB.action?b.id=123 but w

Re: War file does not deploy

2008-04-28 Thread Wes Wannemacher
Vinay, did you try - http://localhost:8080/mailreader/ ? On Mon, 2008-04-28 at 17:46 -0700, Vinay Nagrik wrote: > Hello Group, > > In my server.xml the appbase is "webapps" and I have copied a mailreader.war > file in "webapps" directory > > However the following url does not work in tomcat

Re: Removing package name all over does not work

2008-04-28 Thread Wes Wannemacher
Vinay, You are talking about two different things... First off, in the java source file, the statement 'package tutorial;' relates to the following http://java.sun.com/docs/books/tutorial/java/package/packages.html In struts2, the package declaration is a way to logically organize your actions

Re: War file does not deploy

2008-04-28 Thread Dave Newton
--- Vinay Nagrik <[EMAIL PROTECTED]> wrote: > In my server.xml the appbase is "webapps" and I have copied a > mailreader.war file in "webapps" directory > > However the following url does not work in tomcat > > localhost:8080/mailreader.war > > It says > > "The requested resource (/mailreader.w

Re: Removing package name all over does not work

2008-04-28 Thread Dave Newton
Is the Java class being deployed to the proper location? If you just deleted the package statement w/o moving the file to the appropriate directory you might run into problems. Do you have debugging turned up and/or struts.devMode turned on? Dave --- Vinay Nagrik <[EMAIL PROTECTED]> wrote: > I a

War file does not deploy

2008-04-28 Thread Vinay Nagrik
Hello Group, In my server.xml the appbase is "webapps" and I have copied a mailreader.war file in "webapps" directory However the following url does not work in tomcat localhost:8080/mailreader.war It says "The requested resource (/mailreader.war) is not available. -- Thanks Nagrik

Re: devMode + Windows + Eclipse + Tomcat = not reloading struts.xml

2008-04-28 Thread Chase
Adam Hardy wrote: Chase on 28/04/08 22:14, wrote: Anyone had issues with devMode not working fully on Windows? I've got set and in my Tomcat console log I'm seeing: INFO: Overriding property struts.configuration.xml.reload - old value: false new value: true Windows XP Sun JDK 1.6u6 Eclipse

Removing package name all over does not work

2008-04-28 Thread Vinay Nagrik
Hello Group, I am working with the preliminary HelloWorld.java example and removed the very first line in HelloWorld.java i.e I commented out package tutorial; Thereafter I modified the struts.xml file and it looks like http://struts.apache.org/dtds/struts-2.0.dtd";>

Re: Simplified usage of:@com.company.Constants.StaticCOnstants

2008-04-28 Thread Wes Wannemacher
http://struts.apache.org/2.x/docs/set.html On Mon, 2008-04-28 at 08:17 -0700, ravi_eze wrote: > hi, > > we want to access the constants in our jsp page. So we are proceeding as > follows: > > < s:text field name="[EMAIL PROTECTED]@STATIC_CONSTANTS1]" /> > > the problem with this is that we n

struts2 & displayTag how to use checkBox; Problem: translating the fieldValue

2008-04-28 Thread xianwinwin
Hi all, I have a table with a list of buyers. Each buyer has a checkBox that the user can click and decide if he wants to work with them. I'm using displayTag and this is my code: I wonder why I don't get the *value/content* of the userCheck. Instead, I get ${entityId} (this really very s

Re: devMode + Windows + Eclipse + Tomcat = not reloading struts.xml

2008-04-28 Thread Adam Hardy
Chase on 28/04/08 22:14, wrote: Anyone had issues with devMode not working fully on Windows? I've got set and in my Tomcat console log I'm seeing: INFO: Overriding property struts.configuration.xml.reload - old value: false new value: true Windows XP Sun JDK 1.6u6 Eclipse 3.3.2 Tomcat 6.0.1

Struts 1 hidden tag

2008-04-28 Thread bhaarat Sharma
Hello I am using struts 1 have a Question with the hidden tag. I have a bean named addPartnerGrantModificationForm which has a property called dateStart I want to pass a hidden property named dateStartHidden and give it the value coming from dateStart method of the addPartnerGrantModificationFo

devMode + Windows + Eclipse + Tomcat = not reloading struts.xml

2008-04-28 Thread Chase
Anyone had issues with devMode not working fully on Windows? I've got set and in my Tomcat console log I'm seeing: INFO: Overriding property struts.configuration.xml.reload - old value: false new value: true Windows XP Sun JDK 1.6u6 Eclipse 3.3.2 Tomcat 6.0.16 Tomcat is being controlled and

Re: Struts2 Unit Testing

2008-04-28 Thread Adam Hardy
Nils-Helge Garli Hegvik on 28/04/08 17:51, wrote: - Don't get caught up in the code coverage hysteria. Focus on writing good tests instead of how many lines and branches of code you have tested. I've no idea what level of code coverage Nils holds to be hysterical, but I wouldn't take his advic

Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

2008-04-28 Thread Jim Kiley
Are you using the OpenSessionInViewFilter? If you aren't, you'll want to. If you are doing that already, you may be trying to persist when you should merge. If you're using Hibernate's API directly, take advantage of Hibernate's saveOrUpdate() method, rather than the JPA merge()/persiste() metho

Re: Url tag and automatic parameter setting

2008-04-28 Thread Laurie Harper
Jukka Välimaa wrote: Hi, I have a problem--more of an annoyance, really--with struts s:url tag. It adds parameters into the result url without my say-so and I don't really understand on what grounds. For example, I had the following in my jsp page: It evaluated to this: ajaxEditContract.

Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

2008-04-28 Thread raxden2
HI! i had the same problem, but I have another problem: When i push the button for save Event... throws this exception: excepción javax.servlet.ServletException: javax.persistence.PersistenceException: org.hibernate.PersistentObjectException: detached entity passed to persist: com.fdar.apress.

Re: Struts1 and Struts2 in the same app

2008-04-28 Thread Dave Newton
--- Sandy143 <[EMAIL PROTECTED]> wrote: > Am I wrong? Please let me know ...how to use both the config files. An included file within struts.xml is expected to be an S2 config, AFAIK. Were there any error messages in the logs? If you're using the S1 plugin then the docs at [1] give a decent over

Re: Struts1 and Struts2 in the same app

2008-04-28 Thread Sandy143
Even if I don't include ... it is the same. It doesnot invoke struts2 action class. newton.dave wrote: > > You're including the S1 configuration file in the S2 config file? > > Dave > > --- Sandy143 <[EMAIL PROTECTED]> wrote: > >> >> In struts.xml, I have >> >> ---

Re: Struts1 and Struts2 in the same app

2008-04-28 Thread Sandy143
yes! Am I wrong? Please let me know ...how to use both the config files. I tried that way ...I should be wrong as I remained unsuccessful in using that way. I get an error : " ERROR action.RequestProcessor - Invalid path was requested " newton.dave wrote: > > You're including the S1 confi

Re: migration from struts 1 to 2

2008-04-28 Thread Sandy143
Thank you very much for the very prompt reply. If it possible, then How would I differentiate between struts1 action classes and struts2 action classes (apart from ActionSupport)? Right now, I am trying to use struts2 action in the flow of struts1 action classes. How do I map action classes? I

Re: Struts1 and Struts2 in the same app

2008-04-28 Thread Dave Newton
You're including the S1 configuration file in the S2 config file? Dave --- Sandy143 <[EMAIL PROTECTED]> wrote: > > In struts.xml, I have > > - > > > - > yes! struts.xml is placed in WEB-INF/classes/ > > Do yo

Re: migration from struts 1 to 2

2008-04-28 Thread Alberto A. Flores
Yes it is! Sandy143 wrote: Hello, Can't we have the existing struts1 actions and struts2 actions in the same application? I want to retain my existing web app which is using struts 1.2.8 and tiles 1.1 The new module in the same webapp, I would like to develop using struts2 . Please let me kn

Re: migration from struts 1 to 2

2008-04-28 Thread Sandy143
Hello, Can't we have the existing struts1 actions and struts2 actions in the same application? I want to retain my existing web app which is using struts 1.2.8 and tiles 1.1 The new module in the same webapp, I would like to develop using struts2 . Please let me know if this is something that

Re: Struts2 Unit Testing

2008-04-28 Thread Nils-Helge Garli Hegvik
> > > - Don't get caught up in the code coverage hysteria. Focus on writing > > good tests instead of how many lines and branches of code you have > > tested. > > > > I've no idea what level of code coverage Nils holds to be hysterical, but I > wouldn't take his advice to mean you should avoid cod

Re: [struts] params and staticParams

2008-04-28 Thread Steve Sether
I can't seem to find any indication where this ever wound up from several months ago, but I found the same issue independently after making the (poor) assumption that a statically assigned parameter wouldn't be overridden by a request parameter. I did some searching and found this thread. Li

RE: Struts 2 ResourceBundle Class

2008-04-28 Thread Asleson, Ryan
OK, I answered my own question. Apparently I can use the struts.custom.i18n.resources property and specify the fully-qualified class name of our custom ResourceBundle. -Original Message- From: Asleson, Ryan [mailto:[EMAIL PROTECTED] Sent: Monday, April 28, 2008 9:54 AM To: user@struts

Re: Struts1 and Struts2 in the same app

2008-04-28 Thread Sandy143
In struts.xml, I have - - yes! struts.xml is placed in WEB-INF/classes/ Do you have any solution for it? KonTiki wrote: > > Hi Sandy, > > How exactly did you do the struts.xml inclusion? > (I had a similar

Re: Struts2 Unit Testing

2008-04-28 Thread Adam Hardy
Nils-Helge Garli Hegvik on 28/04/08 09:02, wrote: - Don't get caught up in the code coverage hysteria. Focus on writing good tests instead of how many lines and branches of code you have tested. I've no idea what level of code coverage Nils holds to be hysterical, but I wouldn't take his advic

Simplified usage of:@com.company.Constants.StaticCOnstants

2008-04-28 Thread ravi_eze
hi, we want to access the constants in our jsp page. So we are proceeding as follows: < s:text field name="[EMAIL PROTECTED]@STATIC_CONSTANTS1]" /> the problem with this is that we need to repeat the @com.company.Constants always. So is there a simple way to get this working? I wanted to try ou

Struts 2 tag : Unable to retrieve the value in the action

2008-04-28 Thread Binu John
Hi, I am trying to use the select tag and somehow it does not work as expected. I am populating a Map with the desired values and using that Map object in the select tag. <- Start JSP -> <- End JSP -> <- Start Action Code -> private Map selectKeyword = new HashMap(); pu

Struts 2 ResourceBundle Class

2008-04-28 Thread Asleson, Ryan
Hello, I am new to Struts 2. Our application uses a custom database-backed ResourceBundle. I see that in Struts 2, resource bundle files can be specified using the struts.custom.i18n.resources property. Since we aren't sung resource bundle files, how can I specify the class of our custom

Re: Passing parameters to ftl template with s:param

2008-04-28 Thread Peter Wages
If you want to use the value parameter, you must enclose the value with single quotation marks in addition to double quotation marks. , if your value is a string " ' value ' " The value parameter is assuming you are passing an object. This is associated with OGNL What worked for you A

Re: Passing parameters to ftl template with s:param

2008-04-28 Thread Alan Nisbet
Hi, In case anyone is interested s:param tag only works(for me) when value is defined in body of tag and not in value attribute doesn't work fromDate does work Alan Nisbet wrote: Hi, First time poster and relative struts newbie, I'm trying to create an ftl template that positions two s:

Re: Main differences between Struts 1 and Struts 2

2008-04-28 Thread KonTiki
:-) This article should help: http://www.infoq.com/news/2006/12/struts-migration Antonio Petrelli-3 wrote: > > 2008/4/28 Fernandes Celinio SGCF <[EMAIL PROTECTED]>: >> Can anyone tell me what are the main differences between Struts 1 and >> Struts 2 ? > > It's faster to say what they have

Re: Main differences between Struts 1 and Struts 2

2008-04-28 Thread Nils-Helge Garli Hegvik
http://struts.apache.org/2.x/docs/comparing-struts-1-and-2.html Nils-H On Mon, Apr 28, 2008 at 1:33 PM, Fernandes Celinio SGCF <[EMAIL PROTECTED]> wrote: > Hi, > Can anyone tell me what are the main differences between Struts 1 and > Struts 2 ? > Or point me to links describing them. > > What

Re: Main differences between Struts 1 and Struts 2

2008-04-28 Thread Antonio Petrelli
2008/4/28 Fernandes Celinio SGCF <[EMAIL PROTECTED]>: > Can anyone tell me what are the main differences between Struts 1 and > Struts 2 ? It's faster to say what they have in common: they both are MVC implementations; they both are under the Apache umbrella. The end :-) Antonio --

Main differences between Struts 1 and Struts 2

2008-04-28 Thread Fernandes Celinio SGCF
Hi, Can anyone tell me what are the main differences between Struts 1 and Struts 2 ? Or point me to links describing them. What was added in version 2 ? Thanks ! === Ce message et toutes les pieces jointes (ci-apres le "message") sont confide

Re: Struts1 and Struts2 in the same app

2008-04-28 Thread KonTiki
Hi Sandy, How exactly did you do the struts.xml inclusion? (I had a similar problem, where I found the struts.xml for struts 2 wasn't picking the correct xml) And by java source folder - do you mean WEB-INF/classes/ ? Sandy143 wrote: > > I have to integrate struts 2 actions in my existing st

Re: Redirect-action parameters via POST

2008-04-28 Thread KonTiki
Here are some tests which seemed to have worked with really long URL's. Such as 2K in IE and upto 100,000 characters in Firefox. http://www.boutell.com/newfaq/misc/urllength.html newton.dave wrote: > > --- ancatdubher <[EMAIL PROTECTED]> wrote: >> (Also, the URL is limited to 256 characters

RE: Is there such a thing as flash in S2?

2008-04-28 Thread KonTiki
Brad A Cupit wrote: > > Having said that, I question using the session, since > redirect-after-post was designed to help alleviate back and refresh > button problems. If we store information in the session for the > redirect, then the first GET will find that information, but subsequent > GETs (

Url tag and automatic parameter setting

2008-04-28 Thread Jukka Välimaa
Hi, I have a problem--more of an annoyance, really--with struts s:url tag. It adds parameters into the result url without my say-so and I don't really understand on what grounds. For example, I had the following in my jsp page: It evaluated to this: ajaxEditContract.html?id=-3&decorate

Re: migration from struts 1 to 2

2008-04-28 Thread KonTiki
Yes. In fact, the Actions are POJO's only if they do not extend the ActionSupport class and dont get hooked into the framework statically. An excellent (meaning precise and sweet) introduction to this migration scenario is here by Ian Roughley: http://www.infoq.com/news/2006/12/struts-migration

datetimepickers

2008-04-28 Thread Alan Nisbet
Hi, I'm trying to capture date and time from a datetimepicker, so I want the date object to contain both date and time. Has anyone come up with a decent solution on how to do this? I would have thought it was a relatively common thing to try and do! Best Regards, Alan. -- -

RE: Struts 2 - Where does all the CPU go

2008-04-28 Thread Matthew Seaborn
Where are certainly a number of calls through to OGNL within the Freemarker code, so it could still be that. Unfortunately, I have already in my struts.xml I don't see the WARNings you mention in my logs. -Original Message- From: Jeromy Evans [mailto:[EMAIL PROTECTED] Sent: 27 April

Re: Struts2 Unit Testing

2008-04-28 Thread Nils-Helge Garli Hegvik
This is a really big question. Just having unit tests does not necessarily mean that your code is any better. Writing good unit tests is an art (for any code, not just Struts 2), and is hard to summarize in a few lines. A good book would be a good place to start. I haven't read too many books on th