Re: [S2] Avoiding nested tags / Using Sitemesh properties within Struts 2 tags

2009-01-31 Thread Randy Burgess
I know this thread is a little old but maybe someone will find this useful.
The variable in this case, listEditEnabled, has to do with enabling editing
of an ajaxified list of items.



 


 

I added a metatag to pages that I don't want listEditEnabled with a content
value of false, otherwise the value is true.

Randy Burgess

> From: Christian Priebe 
> Reply-To: Struts Users Mailing List 
> Date: Sat, 10 Jan 2009 20:30:32 +0100
> To: Struts Users Mailing List 
> Subject: Re: [S2] Avoiding nested tags / Using Sitemesh properties within
> Struts 2 tags
> 
> Thanks Dave für your answer!
> 
> That's what I thought of first :) But I haven't found a solution yet.
> 
> Unfortunately there apparently isn't an accepted notation like  name="dynInc" scope="request"> property="paramName" />.
> The value can only be set by the value-attribute, right?
> 
> I hope there is another possibility. I didn't thought I'm the only one
> with such a need.
> 
> Thanks,
> Christian
> 
> 
> Dave Newton schrieb:
>> Christian Priebe wrote:
>>> " />
>>> 
>>> won't work. Now my question:
>>> What alternative do I have to achieve what I want (if there is a
>>> possibility at all)?
>> 
>> Is there a way to put the decorator properties into a JEE scope? If
>> so, you can just use OGNL.
>> 
>> Dave
>> 
>> 
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>> 
>> 
>> 
> 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: maven2 and new struts 2 project

2009-01-05 Thread Randy Burgess
With m2eclipse I've noticed that if I remove the compiler plugin from a
project then the build settings in Eclipse gets changed to the Maven
defaults of JDK 1.3 and 1.1 compliance. If I create a project from a Maven
archetype, like Struts 2.0.14 starter, then the compiler plugin is in the
pom and the Eclipse project build settings apparently get created based on
that.

I'm using m2eclipse with RAD 7.5 and the "customized" version (with all
Maven features enabled) that comes with MyEclipse 7.0.


org.apache.maven.plugins
maven-compiler-plugin

1.5
1.5
    
    

Randy Burgess

On Sat, Jan 3, 2009 at 11:27 PM, Michael Finney  wrote:

> Hello,
>
> I was about to add to a small open source project of mine a maven
> dependency
> to (Display tag library 1.2) http://displaytag.sourceforge.net/1.2/
>
> When I tried to add this maven dependency, the eclipse/m2eclipse plug-in
> decided to change my facet JDK settings down to JDK1.4 (facet="jst.java"
> version="6.0" changed to "1.4")
>
> I looked at the facets and decided it's worth it to start over with a new
> maven2 project. I figured it may be easier since it is open source.
>
> I read at
> http://www.mail-archive.com/user@struts.apache.org/msg71548.html
> how to create a struts2-archetype-starter. I want the equivalent of
> struts2-blank.
>
> I tried adding the remote catalog of
> http://people.apache.org/builds/struts/2.0.14/m2-staging-repository . When
> I
> try to verify the catalog, it says the catalog is empty.
>
> What do I use for a struts2 2.0.x maven2 project?  Shall I just create a
> new
> maven project, skip archetype selection, and ask it to create a war project
> for me?
>
> What do you recommend at this point?
>
> Thanks,
> Mike
>
>
> --
> Michael Finney - "Always Striving To Serve You Better Every Day"
> fin...@acm.org
> http://www.SmilingSoftwareSolutions.com
>
>
>
> -----
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
>


-- 
Regards,
Randy Burgess


Re: JDK Requirements for Struts 1.2 and 2.x

2009-01-03 Thread Randy Burgess
Your software provider would be incorrect, especially considering that  
WebLogic makes quite a bit of use of Beehive, which is built on Struts  
1.x. I have deployed Struts 2 web apps on 9.2+ without any issues. I  
have been compiling with JDK 1.5 though. I have not had a chance to  
test with 1.6.


Randy Burgess


On Dec 18, 2008, at 2:54 AM, Chris_W wrote:



I had found this pages before.
My problem is, that our software-provider tells me, that neither  
Struts 1.2

nor Struts 2.x runs on JDK 1.6 and Weblogic 10.3

I was not able to convince them that the statement in the below  
mentioned

documentation is a minimum requirement.

I hoped, that someone can give me a positive feedback (maybe from
experience), that we can use both Struts versions on our target  
system.


Thanks and Regards,
Christian


laes1 wrote:


here for struts 2.x
http://struts.apache.org/2.x/index.html,you have juste to look for in
google, and you find the answer

2008/12/17 elyes sallem 


http://struts.apache.org/1.2.x/userGuide/installation.html




--
View this message in context: 
http://www.nabble.com/JDK-Requirements-for-Struts-1.2-and-2.x-tp21053363p21068412.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org





-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts2 with JDK1.4.2_19 & Tomcat 5.0.28

2009-01-03 Thread Randy Burgess
I am developing on JDK 1.5 and using Maven and the retrotranslator- 
maven-plugin (1.0-alpha-2, none of the other versions would work for  
me) to retrotranslate not only struts2-*.jar and xwork*.jar but also  
all of my source code since that is written and compiled for 1.5.


I've run this project on Tomcat 6 (JDK 1.6), WebSphere 6.0 (JDK 1.4)  
and 6.1 (JDK 1.5) and Jetty 6.1(JDK 1.5). Tomcat and Jetty was just to  
see if it would run on platforms besides WAS, production will be on  
WebSphere.


After spending 8 weeks developing this app for WAS 6.1 I was asked if  
I could make it run on 6.0. I'm glad the answer was yes until we can  
get the licensing issues straightened out.


Randy Burgess


On Dec 23, 2008, at 2:15 PM, rorostar wrote:



Hi,

Has anyone had any success trying to use struts2 on java4 environment?
My server is using java 1.4.2, and they would not upgrade.
`I've read the tutorial on how to use retrotranslator and I've  
converted the

following jars:
commons-logging-j4-1.0.4.jar
freemarker-j4-2.3.8.jar
ognl-j4-2.6.11.jar

I was able to get struts2-core-j4.2.0.14.jar and xwork-j4-2.0.7.jar  
from

struts Alternative Java 4 JARs.

When I tried to start tomcat server, I got the infamous SEVERE: ERROR
filterStart.
Dec 23, 2008 12:12:09 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 23, 2008 12:12:09 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 820 ms
Dec 23, 2008 12:12:09 PM org.apache.catalina.core.StandardService  
start

INFO: Starting service Catalina
Dec 23, 2008 12:12:09 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
Dec 23, 2008 12:12:09 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Dec 23, 2008 12:12:10 PM org.apache.catalina.core.StandardContext  
start

SEVERE: Error filterStart
Dec 23, 2008 12:12:10 PM org.apache.catalina.core.StandardContext  
start

SEVERE: Context startup failed due to previous errors
Dec 23, 2008 12:12:10 PM org.apache.catalina.core.StandardHost  
getDeployer

INFO: Create Host deployer for direct deployment ( non-jmx )
Dec 23, 2008 12:12:10 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Dec 23, 2008 12:12:10 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Dec 23, 2008 12:12:10 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/37 config=null
Dec 23, 2008 12:12:10 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 952 ms

I've configured successfully Struts 2 with JRE 1.6 & Tomcat 6.0  
before, and
I'm using exactly the same structure (except for web.xml, I'm using  
web-app

version 2.4 with JDK 1.4.2, as opposed to 2.5 for JRE 1.6).
Could anyone help me?
--
View this message in context: 
http://www.nabble.com/Struts2-with-JDK1.4.2_19---Tomcat-5.0.28-tp21149790p21149790.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org





-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: how to import fragment page with html:??? tags into a form?

2008-09-06 Thread Randy Burgess
Try 

Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC


> From: Guojun Zhu <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Wed, 3 Sep 2008 10:06:54 -0500
> To: 
> Subject: how to import fragment page with html:??? tags into a form?
> 
> Hi,
> 
> I am using struts 1.2.9 with tomcat 5.5.  I had a few  pages with big
> "html:form". There are some common part (with some  tags) in the
> form.  So I tried to put them aside as an import.   I tried 
> jstl  and , all of them import everything literally
> into the form, instead of interprete the  tags.  (I also tried to
> include taglib in the inserted jsp fragment page. not working.)   What
> should I do?  Thanks.
> 
> Sincerely
> Zhu, Guojun



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: pls help: tomcat 6 /struts 1.x hang

2008-08-21 Thread Randy Burgess
I would check on a Tomcat list since Struts 1.x is used in production in
literally millions of web apps and they work perfectly well.

Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC


> From: john lee <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Thu, 21 Aug 2008 13:31:57 -0700 (PDT)
> To: 
> Cc: <[EMAIL PROTECTED]>
> Subject: pls help: tomcat 6 /struts 1.x hang
> 
>  Hi,
>  
> My Susue linux/tomcat 6/struts 1.x always hang, when at hang, all the
> link/application's screen output is just 'null', no matter how to
> refresh/reload or click new link. 
>  
> no any error messages in any of catalina.out, catalina.log, local.log ..
>  
> the only solution is to rebounce the tomcat 6, then everything back to normal.
>  
> I search many similar post on google.com, but no one tel the exact reason.
>  
> Any expert here can give me the suggest for how to debug? at begining, i
> suspect the application(struts 1.x) cause the problem, but if that is the
> case, i should see error message in logfile. but no error message at all.
>  
> Looks like the problem either from configuration of Tomcat or db connection
> pool setting, but how to debug?
>  
> tks in advance.
>  
> pls help.
>  
> john 
>  
>  
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Action as Welcome File

2008-08-21 Thread Randy Burgess
If you use an action as the welcome file you normally would also have to
create a file named welcome.action. I usually just create an empty file with
the appropriate name if I want to use an action as the welcome page.

Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC


> From: Ramez Hassan <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Thu, 21 Aug 2008 17:43:10 +0200
> To: 'Struts Users Mailing List' 
> Subject: RE: Action as Welcome File
> 
> Hi,
> I guess you can do that by specifying the following in web.xml:
> 
> /actionnamespace/welcome.action
> 
> 
> 
> And also by adding the following filter mapping attributes in struts filter
> dispatcher in order to be loaded which ever the type of dispatch by the web
> container
> 
> 
> struts2
> /*
> REQUEST
> FORWARD
> INCLUDE
> ERROR
> 
> 
> 
> -Original Message-
> From: James Neff [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 21, 2008 4:42 PM
> To: Struts Users Mailing List
> Subject: Re: Action as Welcome File
> 
> Felipe Lorenz wrote:
>> Hi..
>> 
>> Did you try change in web.xml file? Change from index.jsp to
>> your_action.action!! i dont know if it work...
>> 
>> Felipe.
>> 
>> On Thu, Aug 21, 2008 at 7:24 AM, Roger <[EMAIL PROTECTED]>
> wrote:
>>   
>>> Sorry, I know that I've read about this here before, but I can't find the
>>> thread. Can someone point me to how to configure an action as the
> "welcome"
>>> file?
>>> 
>>> Regards
>>> 
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>>> 
>>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>>   
> I would like to know if there is a better way to do this.
> 
> In my web.xml I have:
> 
> 
> index.jsp
> 
> 
> and in index.jsp I have:
> 
>  <%
> String redirectURL =
> "http://localhost:8080/myproject/MyAction.action";;
> response.sendRedirect(redirectURL);
> %>
> 
> Seems like a hack to me, but gets the job done.  Is there a more elegant
> way?
> 
> --James
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2.x Forwarding To A Page Securely

2008-08-19 Thread Randy Burgess
Hiding the URL, as in showing one URL but the browser is actually at
another, would be the same as phishing. I'm not saying that is what you are
trying to do but that is the end result of this.

Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC


> From: Wes Wannemacher <[EMAIL PROTECTED]>
> Organization: WanTii, Inc.
> Reply-To: Struts Users Mailing List 
> Date: Tue, 19 Aug 2008 21:27:14 -0400
> To: Struts Users Mailing List 
> Subject: Re: Struts 2.x Forwarding To A Page Securely
> 
> There is a plugin to enforce SSL -
> 
> http://code.google.com/p/struts2-ssl-plugin/wiki/HowToUse
> 
> As far as hiding the URL, I don't know if I can help there.
> 
> 
> -Wes
> 
> On Tue, 2008-08-19 at 20:07 -0500, Michael Finney wrote:
>> Hello. 
>> 
>> If I have built a URL, flow of control is in an action, and I want to send
>> the user to another web application, how can I do that in a way such that
>> the user cannot see the URL and is secure?
>> 
>> Thanks, 
>> Mike 
>> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validation referencing problem, using annotations

2008-08-15 Thread Randy Burgess
You need to use the VisitorFieldValidator annotation for objects referenced
from the action. See
http://struts.apache.org/2.0.11.2/docs/visitorfieldvalidator-annotation.html
. The form doesn't look right nor does your annotation; why do you have
asterisks in the field name and why is type<[EMAIL PROTECTED] in
the annotation? That should be type=RequiredStringValidator. Maybe it got
screwed up posting to the list.

Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC


> From: "dug ." <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Fri, 15 Aug 2008 14:16:36 +1000
> To: 
> Subject: Validation referencing problem, using annotations
> 
> Hi guys
> I'm close to finishing my 1st project with struts2, which I'm quite excited
> about. I've gotten around to validation (!).
> 
> I'm having some issues getting validation to work on one of my actions. I
> can't reference the variables from the web page in order to validate them.
> I've named the variables in such a fashion that they go straight into the
> bean (go struts!).
> 
> How do I properly reference them to validate them?
> 
> 
> *my form:(*fragment)
> 
> 
> your contact details
> 
> 
> ..
> 
> 
> *my action:*
> ...
> @Validations(
> requiredStrings =
> [EMAIL PROTECTED](type<[EMAIL PROTECTED](type>=
> ValidatorType.SIMPLE, fieldName = "
> *applicant.name*", message = "You must enter a value for name.")}
> )
> public class SaveApplication extends ActionSupport  {
> ...
> //add applicant bean to this action
> public void setApplicant(Applicant a) {
> applicant = a;
> }
> 
> public Applicant getApplicant () {
> return applicant;
> }
> 
> }
> 
> *and the applicant bean:*
> public class Applicant {
> .
> private String *name*;
> .
> 
> public String getName() {
> return name;
> }
> 
> public void setName (String s) {
> name = s;
> }
> 
> }
> 
> Please point me in the right direction. Any suggested reading would
> definitely be appreciated.
> 
> Thanks
> 
> doug



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Remotely passing parameters to struts

2008-08-12 Thread Randy Burgess
Have you taken a look at parameters in configuration results?

http://struts.apache.org/2.0.11.2/docs/parameters-in-configuration-results.h
tml

You could pass in the redirectURL from your calling web app. I've never
tried this but it seems like it would work. It's worth a shot.

Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC


> From: jaki <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Mon, 11 Aug 2008 22:57:47 -0700 (PDT)
> To: 
> Subject: Re: Remotely passing parameters to struts
> 
> 
> What's the way to do it using request/response then? I tried it out with
> requestdispatcher only to later find out that requestdispatcher can only
> forward to servlets within the same web app. Is there a way to make it
> forward to a remote servlet?
> 
> jaki wrote:
>> 
>> Hi all, 
>> 
>> I have a web application which needs to pass parameters to a struts app
>> which resides on another machine. I will not be calling the struts class
>> using a jsp but from a normal java method. So, is there a way to pass
>> arguements without using a request/response object?
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Remotely-passing-parameters-to-struts-tp18928369p1893849
> 4.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Remotely passing parameters to struts

2008-08-11 Thread Randy Burgess
You can refactor your action so that the business logic in your action
resides elsewhere, then expose that business logic using Spring/web
services, EJB or really any remoting technology.

Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC


> From: jaki <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Mon, 11 Aug 2008 08:45:37 -0700 (PDT)
> To: 
> Subject: Remotely passing parameters to struts
> 
> 
> Hi all, 
> 
> I have a web application which needs to pass parameters to a struts app
> which resides on another machine. I will not be calling the struts class
> using a jsp but from a normal java method. So, is there a way to pass
> arguements without using a request/response object?
> -- 
> View this message in context:
> http://www.nabble.com/Remotely-passing-parameters-to-struts-tp18928369p1892836
> 9.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] general question about cookies and namespace

2008-08-09 Thread Randy Burgess
Yep absolutely. Just my $.02. I used to use cookies all the time but found
they're more trouble than they are worth compared to the session. I only use
them now when they are the only good solution. :)

Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC


> From: Pierre Thibaudeau <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Sat, 9 Aug 2008 16:19:08 -0400
> To: Struts Users Mailing List 
> Subject: Re: [S2] general question about cookies and namespace
> 
> 2008/8/9 Randy Burgess <[EMAIL PROTECTED]>
> 
>> As long as you set the cookie path and stick to that path it
>> doesn't matter where the user enters the site.
> 
> 
> Well, not entirely, it seems to me.  Say, for example, that I were to set
> the path to "/something/very/complex/and/unwieldy", the browser would make
> those cookies available with the request only when the namespace of the
> request were to be the same (or a child) of that long path.
> 
> Which is why, as you point out, the only practical options are "/" or
> "contextPath()".  (In which case, indeed, it doesn't matter where the user
> enters.)



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Re: [S2] general question about cookies and namespace

2008-08-09 Thread Randy Burgess
I believe so.

Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC


> From: Dave Newton <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Sat, 9 Aug 2008 10:54:59 -0700 (PDT)
> To: Struts Users Mailing List 
> Subject: [OT] Re: [S2] general question about cookies and namespace
> 
> --- On Sat, 8/9/08, Pierre Thibaudeau wrote:
>> [...] I wish to remember the current surfing language of a user
>> and set that in a cookie with path "/", who's to say that, on
>> the next session that the user will start, she won't enter the site
>> through a different logical path?
>> 
>> Is there such a thing as site-wide cookies?
> 
> Isn't a path of "/" a "site-wide" cookie?
> 
> Dave
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] general question about cookies and namespace

2008-08-09 Thread Randy Burgess
You're welcome. As long as you set the cookie path and stick to that path it
doesn't matter where the user enters the site. I normally use either / or
/context for my cookies.

Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC


> From: Pierre Thibaudeau <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Sat, 9 Aug 2008 13:37:35 -0400
> To: Struts Users Mailing List 
> Subject: Re: [S2] general question about cookies and namespace
> 
> Thanks Randy.  That confirms what I have been discovering since last night.
> 
> This is a little annoying given that there are some bits of information that
> I would love to set for the entire site.  For instance, if I wish to
> remember the current surfing language of a user and set that in a cookie
> with path "/", who's to say that, on the next session that the user will
> start, she won't enter the site through a different logical path?
> 
> Is there such a thing as site-wide cookies?
> 
> 2008/8/9 Randy Burgess <[EMAIL PROTECTED]>
> 
>> If the path is different then they are completely separate cookies. So you
>> could have a cookie named "fruit" and a path of "/root" with a value of
>> "apple". You could have another cookie named "fruit" but with a path of
>> "/root/anotherpath" and it has a value of "orange". If you don't set a path
>> for the cookie it gets set for you so to stop this from happening I always
>> set the path explicitly.
>> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] general question about cookies and namespace

2008-08-09 Thread Randy Burgess
If the path is different then they are completely separate cookies. So you
could have a cookie named "fruit" and a path of "/root" with a value of
"apple". You could have another cookie named "fruit" but with a path of
"/root/anotherpath" and it has a value of "orange". If you don't set a path
for the cookie it gets set for you so to stop this from happening I always
set the path explicitly.

Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC


> From: Pierre Thibaudeau <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Sat, 9 Aug 2008 00:16:11 -0400
> To: Struts Users Mailing List 
> Subject: [S2] general question about cookies and namespace
> 
> Struts: 2.1.2
> browser: Firefox 3.0, with Firebug add-on
> 
> Strange phenomenon involving cookies.  I don't know who to blame:  my code,
> Struts or Firefox...
> 
> I am running a copy of my application locally on my own local Tomcat server
> (on localhost).  After several operations on the webapplication (among which
> would be logging in), four cookies are set in the browser:
> * JSESSIONID (dealt with by tomcat;  not my doing, of course)
> * language (the user's last selection of language)
> * password
> * username
> 
> However, when I study the net requests through firebug, I notice that
> Firefox includes only the first of these cookies in the following requests'
> header.  Accordingly, if I start a new session, the language of the previous
> session is read as it should from the "language" cookie, but the auto-login
> interceptor fails to find the "username" and "password" cookies (even though
> they are present to the browser).
> 
> On the other hand, things work fine on Safari.
> 
> This seems strange to me.  The only formal distinction I can find between,
> say, the "language" cookie and the "username" cookie is the "path":
> * Firefox report the path of the "language" cookie as:  /mywebapp/
> * but it reports the path of the "username" cookie as: /mywebapp/users/
> 
> Is it possible that Firefox is overstrict with which cookie to provide back
> to a given action, and the different namespace of the "username" cookie
> becomes problematic?  The actions that register my auto-login interceptor
> are all in the "/" namespace (that is, the same namespace as reported by the
> "language" cookie).  Has anyone come accross anything like this?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2 And JFreeChart

2008-07-31 Thread Randy Burgess
I don't use the Ajax theme or any of the Dojo integration but I assumed that
if theme=ajax on the submit button that it would be using Ajax.

Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC


Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC


> From: Laurie Harper <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Thu, 31 Jul 2008 02:28:41 -0400
> To: 
> Subject: Re: Struts 2 And JFreeChart
> 
> I don't see what Ajax has to do with this... It sounds more like an HTTP
> caching issue. Cree, if you do a page refresh, is the image updated
> correctly? I haven't used the JFreeChart result, but maybe it's not
> setting the right cache control headers.
> 
> L.
> 
> Randy Burgess wrote:
>> Ajax is text only so you can't use it with an image type.
>> 
>> Regards,
>> Randy Burgess
>> Sr. Software Architect
>> D5 Systems, LLC
>> 
>> 
>>> From: cree <[EMAIL PROTECTED]>
>>> Reply-To: Struts Users Mailing List 
>>> Date: Wed, 30 Jul 2008 12:14:02 -0700 (PDT)
>>> To: 
>>> Subject: Struts 2 And JFreeChart
>>> 
>>> 
>>> Hello Everyone,
>>> 
>>> Got a quick question regarding the streaming of a JFreeChart (or any image)
>>> and how to be able to handle it on a jsp.  I have create a servlet that will
>>> stream out an image to the jsp using a syntax similar to (in my struts.xml):
>>> 
>>> >> class="TestBarChart">
>>> 
>>> 350
>>> 300
>>> 
>>> 
>>> 
>>> So if I, in my html, created an img tag such that >> src="testChart.action"/ , it will correctly create the chart.  My problem
>>> arises when I am using it under a dynamic context.  For example, if
>>> initially I submit a form button (theme="ajax" targets="divTarget") then it
>>> would render new data and an initial image.
>>> 
>>> If I submit the form again with different user input the data would change
>>> but the image is still the same. I assume it is the same buffered image that
>>> it first loaded, but the action itself will never get reloaded.  The action
>>> would not get executed at all.
>>> 
>>> My question is whether there is a way I can manually force the img tag to
>>> invoke the action itself.
>>> 
>>> Thanks for any input
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/Struts-2-And-JFreeChart-tp18740589p18740589.html
>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>> 
>>> 
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>>> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2 And JFreeChart

2008-07-30 Thread Randy Burgess
Ajax is text only so you can't use it with an image type.

Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC


> From: cree <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Wed, 30 Jul 2008 12:14:02 -0700 (PDT)
> To: 
> Subject: Struts 2 And JFreeChart
> 
> 
> Hello Everyone,
> 
> Got a quick question regarding the streaming of a JFreeChart (or any image)
> and how to be able to handle it on a jsp.  I have create a servlet that will
> stream out an image to the jsp using a syntax similar to (in my struts.xml):
> 
>  class="TestBarChart">
> 
> 350
> 300
> 
> 
> 
> So if I, in my html, created an img tag such that  src="testChart.action"/ , it will correctly create the chart.  My problem
> arises when I am using it under a dynamic context.  For example, if
> initially I submit a form button (theme="ajax" targets="divTarget") then it
> would render new data and an initial image.
> 
> If I submit the form again with different user input the data would change
> but the image is still the same. I assume it is the same buffered image that
> it first loaded, but the action itself will never get reloaded.  The action
> would not get executed at all.
> 
> My question is whether there is a way I can manually force the img tag to
> invoke the action itself.
> 
> Thanks for any input
> -- 
> View this message in context:
> http://www.nabble.com/Struts-2-And-JFreeChart-tp18740589p18740589.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: getting Session from one to another namespace - possible?

2008-07-10 Thread Randy Burgess
Is the namespace the same as what is defined in your struts.xml? Have you
tried namespace="/secure" for instance?

Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC


> From: Michael Obster <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Thu, 10 Jul 2008 19:52:53 +0200
> To: Struts Users Mailing List 
> Subject: getting Session from one to another namespace - possible?
> 
> Hi,
> 
> I've a problem with holding the session between two namespaces.
> I defined 3 namespaces:
> - /: The unsecure namespace
> - /secure: The secure namespace -> user has to be logged in
> - /usermanager: The special secure namespace -> user has to have
> permission to get there
> 
> The LoginAction forwards the user into the secure namespace. There I
> have a menu with
> ">link1
> ">link2
> 
> ">link3
> 
> When I switch to the action2 the session is hold. Switching back to
> action1 works as well.
> But if I switch to action3 I get the right page, but switching back to
> action1 or action2 I get the login page. After some debugging I've seen
> that the session was killed. After some further debugging I've seen that
> this only happens when I switch the namespace.
> 
> Has anyone an idea, what I did wrong?
> 
> Regards,
> Michael
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-06-10 Thread Randy Burgess
I believe it defaults to the bottom middle pane, on the left most tab of
that pane.

Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC


> From: piltrafeta <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 10 Jun 2008 08:05:13 -0700 (PDT)
> To: 
> Subject: Re: [OT] Re: Action mapping not found - eclipse configuration
> problem???
> 
> 
> It must be something like this.. but i've tried deleting the sources and
> coping again and stil doesn't works..
> Actually, when I open Properties->Web Project Settings, i only have a filed
> named "Context Root". How i can see the problems view ?
> 
> 
> 
> Musachy Barroso wrote:
>> 
>> I have noticed that when I generate an eclipse a project with
>> maven(with wtp support), sometimes the application context is not set,
>> in which case tomcat will not deploy the app. To set it right-click on
>> your project Properties->Web Project Settings. Check the Problems view
>> and see if you have any error which will prevent deployment (like a
>> classpath error)
>> 
>> musachy
>> 
>> On Tue, Jun 10, 2008 at 9:13 AM, piltrafeta <[EMAIL PROTECTED]> wrote:
>>> 
>>> Hello !
>>> I'm having a similar problem...
>>> I had a eclipse project with struts2 and hibernate. It was working fine
>>> but
>>> one day stop parsing the struts.xml file, and when i execute it says tha
>>> my
>>> actions are not mapped, even if I modify something in struts.xml file
>>> eclipse is not compiling it...
>>> So do you have any idea of what is it ? (i have the struts.xml file in
>>> the
>>> source root directory)
>>> 
>>> Thanks in advandce
>>> 
>>> 
>>> Musachy Barroso wrote:
>>>> 
>>>> I think the "preview" thing is the option under "Basic" when you click
>>>> "Run on Server" and choose to "Manually define a new server". Try
>>>> running on tomcat instead. In any case what is happening is that
>>>> struts.xml is not on the classpath and the filter is not finding it
>>>> 
>>>> musachy
>>>> 
>>>> 
>>>> On Feb 18, 2008 1:59 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
>>>>> --- Chriss Nold <[EMAIL PROTECTED]> wrote:
>>>>>> I am importing the project into eclipse from the .war file with the
>>>>> j2ee
>>>>>> preview enabled for the target runtime environment.
>>>>> 
>>>>> Not sure what all that is.
>>>>> 
>>>>> What's in your .classpath file?
>>>>> 
>>>>>>Marked as a tomcat project.
>>>>>>Context name: /Blank
>>>>>>Subdirectory for web app root: /WebContent
>>>>> 
>>>>> What URL are you using?
>>>>> 
>>>>> 
>>>>> Dave
>>>>> 
>>>>> 
>>>>> 
>>>>> -
>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>> 
>>>>> 
>>>> 
>>>> 
>>>> 
>>>> --
>>>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>>> 
>>>> -
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>> 
>>>> 
>>>> 
>>> 
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Action-mapping-not-found---eclipse-configuration-probl
>>> emtp15551053p17755119.html
>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>> 
>>> 
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>>> 
>> 
>> 
>> 
>> -- 
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Action-mapping-not-found---eclipse-configuration-problem
> tp15551053p17757686.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to pass OGNL expressions to JSP includes

2008-05-19 Thread Randy Burgess
To the best of my knowledge S2 uses OGNL extensively so not using it is
probably not an option. Anyone please feel free to correct me if I¹m wrong
about this. I have never used commons-el personally so I couldn¹t tell you,
sometimes the commons stuff like that extends and enhances some framework or
API, you would have to check the docs to be sure.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications




From: Wes Gamble <[EMAIL PROTECTED]>
Reply-To: Struts Users Mailing List 
Date: Mon, 19 May 2008 16:48:31 +
To: Struts Users Mailing List 
Subject: Re: How to pass OGNL expressions to JSP includes

 I'm reading that OGNL is not only very slow, but also that development on
it has basically halted.

How can I ensure that I'm not using OGNL in my view?

Is the Apache commons-el different than the EL that comes w/the standard
J2EE stack?  If so, how can I use that?  Should I?

Wes
 
>  -- Original message from Randy Burgess <[EMAIL PROTECTED]>:
> -- 
> 
> 
>> > Yes, outside of Struts tags. No that is JSP EL (Expression Language), which
>> > is different from OGNL, however you can get values from the OGNL stack
>> using 
>> > EL like in my example. There are at least a couple of links in the
>> > documentation to OGNL. I would check that first, as to EL there are tons of
>> > links on the Œnet, just Google it.
>> > 
>> > Regards, 
>> > Randy Burgess 
>> > Sr. Web Applications Developer
>> > Nuvox Communications
>> > 
>> > 
>> > 
>> > 
>> > From: Wes Gamble
>> > Reply-To: Struts Users Mailing List
>> > Date: Mon, 19 May 2008 16:38:51 +
>> > To: Struts Users Mailing List
>> > Subject: Re: How to pass OGNL expressions to JSP includes
>> > 
>> >  
>> > Randy, 
>> > 
>> > Thanks!  So, in general, is this an alternative way to reference these
>> > properties?  Where can I find out more about the ${...} syntax?
>> > 
>> > You said "EL" in your reply.  So, is this standard JSP EL or is it OGNL?
>> > Are they different, or is "EL" in Struts actually OGNL?
>> > 
>> > Thanks, 
>> > Wes 
>>> > >  -- Original message from Randy Burgess :
>>> > > --
>>> > > 
>>> > > 
>>>>> > >> > You can use EL outside of Struts tags.
>>>>> > >> > 
>>>>> > >> > Try   .
>>>>> > >> > 
>>>>> > >> > Properties in an action will be at the top of the stack.
>>>>> > >> > 
>>>>> > >> > Regards,
>>>>> > >> > Randy Burgess
>>>>> > >> > Sr. Web Applications Developer
>>>>> > >> > Nuvox Communications
>>>>> > >> > 
>>>>> > >> > 
>>>>> > >> > 
>>>>> > >> > 
>>>>> > >> > From: Wes Gamble
>>>>> > >> > Reply-To: Struts Users Mailing List
>>>>> > >> > Date: Mon, 19 May 2008 16:25:26 +
>>>>> > >> > To: 
>>>>> > >> > Subject: How to pass OGNL expressions to JSP includes
>>>>> > >> > 
>>>>> > >> > All, 
>>>>> > >> > 
>>>>> > >> > It's been a while since I've done any Struts (JSP for that matter)
>>>>> > >> > development, and I'm trying to get started with Struts 2.
>>>>> > >> > 
>>>>> > >> > Here's a very simple template that pulls in an include that
>>>>> provides the 
>>>>> > >> > ...content for the page.
>>>>> > >> > 
>>>>> > >> > 
>>>>> > >> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>>>>> > >> > 
>>>>> > >> > <%@ taglib prefix="s" uri="/struts-tags" %>
>>>>> > >> > 
>>>>> > >> > 
>>>>> > >> >   " />
>>>>> > >> >   " />
>>>>> > >> > 
>>>>> > >> > 
>>>>> > >> > 
>>>>> > >> > 
>>>>> > >> > 
&

Re: How to pass OGNL expressions to JSP includes

2008-05-19 Thread Randy Burgess
Yes, outside of Struts tags. No that is JSP EL (Expression Language), which
is different from OGNL, however you can get values from the OGNL stack using
EL like in my example. There are at least a couple of links in the
documentation to OGNL. I would check that first, as to EL there are tons of
links on the Œnet, just Google it.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications




From: Wes Gamble <[EMAIL PROTECTED]>
Reply-To: Struts Users Mailing List 
Date: Mon, 19 May 2008 16:38:51 +
To: Struts Users Mailing List 
Subject: Re: How to pass OGNL expressions to JSP includes

 
Randy,

Thanks!  So, in general, is this an alternative way to reference these
properties?  Where can I find out more about the ${...} syntax?

You said "EL" in your reply.  So, is this standard JSP EL or is it OGNL?
Are they different, or is "EL" in Struts actually OGNL?

Thanks,
Wes
>  -- Original message from Randy Burgess <[EMAIL PROTECTED]>:
> -- 
> 
> 
>> > You can use EL outside of Struts tags.
>> > 
>> > Try   . 
>> > 
>> > Properties in an action will be at the top of the stack.
>> > 
>> > Regards, 
>> > Randy Burgess 
>> > Sr. Web Applications Developer
>> > Nuvox Communications
>> > 
>> > 
>> > 
>> > 
>> > From: Wes Gamble
>> > Reply-To: Struts Users Mailing List
>> > Date: Mon, 19 May 2008 16:25:26 +
>> > To: 
>> > Subject: How to pass OGNL expressions to JSP includes
>> > 
>> > All, 
>> > 
>> > It's been a while since I've done any Struts (JSP for that matter)
>> > development, and I'm trying to get started with Struts 2.
>> > 
>> > Here's a very simple template that pulls in an include that provides the
>> > ...content for the page.
>> > 
>> > 
>> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>> > 
>> > <%@ taglib prefix="s" uri="/struts-tags" %>
>> > 
>> > 
>> >   " /> 
>> >   " /> 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > I have an action that sets the values of pageTitle and companyName and I've
>> > verified that they have values.
>> > 
>> > My problem is I don't know how to co rrectly pass the pageTitle and
>> > companyName values set in my action (and retrievable only through OGNL,
>> > AFAIK) to the include via the standard  tag.  What is above
>> > doesn't work because of the double quotes.  So, here are my questions...
>> > 
>> > 1) Is there a way to quote the contents of the  tag so that I
>> > can pass it successfully to the include?
>> > 2) Do I have to put the value of  (for
>> > example) into a local JSP variable just to pass it to the include?
>> > 
>> > What am I doing wrong?
>> > 
>> > Thanks, 
>> > Wes 
>> > 
>> > 
>> > 
>> > 
>> > This email and any attachments ("Message") may contain legally privileged
>> and/or 
>> > confidential information.  If you are not the addressee, or if this Message
>> has 
>> > been addressed to you in error, you are not authorized to read, copy, or
>> > distribute it, and we ask that you please delete it (including all copies)
>> and 
>> > notify the sender by return email.  Delivery of this Message to any person
>> other 
>> > than the intended recipient(s) shall not be deemed a waiver of
>> confidentiality 
>> > and/or a privilege.
>  



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.


Re: How to pass OGNL expressions to JSP includes

2008-05-19 Thread Randy Burgess
You can use EL outside of Struts tags.

Try   .

Properties in an action will be at the top of the stack.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications




From: Wes Gamble <[EMAIL PROTECTED]>
Reply-To: Struts Users Mailing List 
Date: Mon, 19 May 2008 16:25:26 +
To: 
Subject: How to pass OGNL expressions to JSP includes

All,

It's been a while since I've done any Struts (JSP for that matter)
development, and I'm trying to get started with Struts 2.

Here's a very simple template that pulls in an include that provides the
... content for the page.

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>
<%@ taglib prefix="s" uri="/struts-tags" %>


  " />
  " />






I have an action that sets the values of pageTitle and companyName and I've
verified that they have values.

My problem is I don't know how to co rrectly pass the pageTitle and
companyName values set in my action (and retrievable only through OGNL,
AFAIK) to the include via the standard  tag.  What is above
doesn't work because of the double quotes.  So, here are my questions...

1) Is there a way to quote the contents of the  tag so that I
can pass it successfully to the include?
2) Do I have to put the value of  (for
example) into a local JSP variable just to pass it to the include?

What am I doing wrong?

Thanks,
Wes




This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.


Re: [Struts 2] Dojo datetimepicker - simple

2008-05-14 Thread Randy Burgess
I don't have direct experience with this particular tag but normally setting
the theme to simple will remove the generated  tags.



Have you viewed the generated source? That will show you what is being
generated for you.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Milan Milanovic <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Wed, 14 May 2008 07:29:33 -0700 (PDT)
> To: Struts Users Mailing List 
> Subject: Re: [Struts 2] Dojo datetimepicker - simple
> 
> When I removed value part then it works. I don't need value part at all?
> One more question, if I have two  in  how
> can I format them to be shown one along another in jsp, and not one below
> another as default ?
> 
> 
> --
> Thx, Milan
> - Original Message 
> From: Milan Milanovic <[EMAIL PROTECTED]>
> To: Struts Users Mailing List 
> Sent: Wednesday, May 14, 2008 4:14:41 PM
> Subject: Re: [Struts 2] Dojo datetimepicker - simple
> 
> I also get this exception for this:java.text.ParseException: Unparseable date:
> "fromDate"at java.text.DateFormat.parse(Unknown Source)
> at org.apache.struts2.components.DateTimePicker.format(
> at org.apache.struts2.components.DateTimePicker.evaluateParams(
> at org.apache.struts2.components.UIBean.end(
> at 
> org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(DateTimePicker.java:
> 309)DateTimePicker.java:202)UIBean.java:481)ComponentTagSupport.java:43)
> ...
> --
> Milan
> 
> 
> - Original Message 
> From: Milan Milanovic <[EMAIL PROTECTED]>
> To: Struts Users Mailing List 
> Sent: Wednesday, May 14, 2008 3:57:19 PM
> Subject: [Struts 2] Dojo datetimepicker - simple
> 
> Hi, 
> 
> I have in my action class Date field with get/set methods, and when I try to
> show
> datetimepicker in my jsp, like this:
> 
>  displayFormat="dd.MM." label="From date"/>
> It show only NaN.NaN.0NaN information in place of datetimepicker, and this
> debug info:
> 
> DEBUG: invalid date string: fromDate
> DEBUG: DEPRECATED: dojo.widget.DropdownDatePicker date attributes must be
> passed in Rfc3339 format -- will be removed in version: 0.5
> 
> What is the problem ? I created Date before showing this page: fromDate = new
> Date();
> 
> --
> Thx, Milan Milanovic
> 
> 
>   



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [struts 2] Table question

2008-05-13 Thread Randy Burgess
OGNL expressions. It is in the documentation. :)

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Milan Milanovic <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 13 May 2008 15:05:34 -0700 (PDT)
> To: Struts Users Mailing List 
> Subject: Re: [struts 2] Table question
> 
> O.K. Thanks.
> 
> So, what you propose to show id and name to user ?
> 
> --
> Thx, Milan
> 
> 
> - Original Message 
> From: Randy Burgess <[EMAIL PROTECTED]>
> To: Struts Users Mailing List 
> Sent: Tuesday, May 13, 2008 11:47:57 PM
> Subject: Re: [struts 2] Table question
> 
> Except you can't use EL expressions in struts tags in the latest versions of
> S2, unless you hack the taglib.
> 
> Regards,
> Randy Burgess
> Sr. Web Applications Developer
> Nuvox Communications
> 
> 
> 
>> From: Felipe Lorenz <[EMAIL PROTECTED]>
>> Reply-To: Struts Users Mailing List 
>> Date: Tue, 13 May 2008 18:44:52 -0300
>> To: Struts Users Mailing List 
>> Subject: Re: [struts 2] Table question
>> 
>> Hi!
>> 
>> To have a composed string you can do it in JSP.
>> 
>> Something like:
>> 
>> 
>> for example.
>> 
>> And, for pagination, try displayTag, its easy to use
>> 
>> Felipe A. Lorenz
>> www.idealogic.com.br
>> 
>> On Tue, May 13, 2008 at 12:00 PM, Milan Milanovic <[EMAIL PROTECTED]>
>> wrote:
>> 
>>> Thanks Jim!
>>> Could you give me an example for the second thing (pagination) ? I need
>>> something
>>> simple as you said.
>>> For combo box, how can I tell my combobox to retrieve data from list of
>>> composed
>>> strings (e.g. List where I will compose "1 Apple"), but when
>>> selected to choose
>>> in my action class from list of Fruits, e.g. List, where Fruit
>>> have id and name attributes ?
>>> --
>>> Thx, Milan Milanovic
>>> 
>>> 
>>> - Original Message 
>>> From: Jim Kiley <[EMAIL PROTECTED]>
>>> To: Struts Users Mailing List 
>>> Sent: Tuesday, May 13, 2008 3:34:58 PM
>>> Subject: Re: [struts 2] Table question
>>> 
>>> I have to admit that in your first instance I would cheat -- I would dummy
>>> up a method somewhere on my action class or my POJO that returned the
>>> desired string, rather than trying to compose the string within the JSP.
>>> 
>>> I am unfamiliar with the various tags that can be used to display chunks
>>> of
>>> a table.  I know they're out there (the display tag library comes to
>>> mind).
>>> The most recent time I had to do this I rolled my own; it was pretty
>>> painless.  I held the data in a List of data objects, and then used
>>> List.subList() in my action method to determine the precise chunk of the
>>> List that I wanted to show.
>>> 
>>> Hope this helps.
>>> 
>>> jk
>>> 
>>> On Tue, May 13, 2008 at 9:30 AM, Milan Milanovic <
>>> [EMAIL PROTECTED]>
>>> wrote:
>>> 
>>>> Hi,
>>>> first I'll ask again my earlier question, is there possibility to show
>>> in
>>>> a combo box
>>>> two values, for example I want to show id and name of the every fruit: 1
>>>> Apple ?
>>>> The second question is, my struts 2 application on one jsp page will
>>> have
>>>> 5 combo
>>>> boxes, 4 text boxes, two buttons and two datetime pickers, and below all
>>>> these controls a table
>>>> that will show what is entered using controls above. The problem is that
>>>> my table will have
>>>> about 100-120 records (rows) to show, and I think that is very much for
>>>> one jsp page, and
>>>> also I want user to see about last 10 rows, because he need to see if
>>>> there is any error.
>>>> How can I do this, can I use table pagination (how) ?
>>>> --
>>>> Thx in advance, Milan Milanovic
>>>> 
>>>> 
>>>> 
>>> 
>>> 
>>> 
>>> 
>>> --
>>> Jim Kiley
>>> Technical Consultant | Summa
>>> [p] 412.258.3346 [m] 412.445.1729
>>> http://www.summa-tech.com
>>> 
>>> 
>>> 
>>> 
>>> 
> 
> 
> 
> This email and any attachments ("Message") may contain legally privileged
> and/or confidential information.  If 

Re: [struts 2] Table question

2008-05-13 Thread Randy Burgess
Except you can't use EL expressions in struts tags in the latest versions of
S2, unless you hack the taglib.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Felipe Lorenz <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 13 May 2008 18:44:52 -0300
> To: Struts Users Mailing List 
> Subject: Re: [struts 2] Table question
> 
> Hi!
> 
> To have a composed string you can do it in JSP.
> 
> Something like:
> 
> 
> for example.
> 
> And, for pagination, try displayTag, its easy to use
> 
> Felipe A. Lorenz
> www.idealogic.com.br
> 
> On Tue, May 13, 2008 at 12:00 PM, Milan Milanovic <[EMAIL PROTECTED]>
> wrote:
> 
>> Thanks Jim!
>> Could you give me an example for the second thing (pagination) ? I need
>> something
>> simple as you said.
>> For combo box, how can I tell my combobox to retrieve data from list of
>> composed
>> strings (e.g. List where I will compose "1 Apple"), but when
>> selected to choose
>> in my action class from list of Fruits, e.g. List, where Fruit
>> have id and name attributes ?
>> --
>> Thx, Milan Milanovic
>> 
>> 
>> - Original Message 
>> From: Jim Kiley <[EMAIL PROTECTED]>
>> To: Struts Users Mailing List 
>> Sent: Tuesday, May 13, 2008 3:34:58 PM
>> Subject: Re: [struts 2] Table question
>> 
>> I have to admit that in your first instance I would cheat -- I would dummy
>> up a method somewhere on my action class or my POJO that returned the
>> desired string, rather than trying to compose the string within the JSP.
>> 
>> I am unfamiliar with the various tags that can be used to display chunks
>> of
>> a table.  I know they're out there (the display tag library comes to
>> mind).
>> The most recent time I had to do this I rolled my own; it was pretty
>> painless.  I held the data in a List of data objects, and then used
>> List.subList() in my action method to determine the precise chunk of the
>> List that I wanted to show.
>> 
>> Hope this helps.
>> 
>> jk
>> 
>> On Tue, May 13, 2008 at 9:30 AM, Milan Milanovic <
>> [EMAIL PROTECTED]>
>> wrote:
>> 
>>> Hi,
>>> first I'll ask again my earlier question, is there possibility to show
>> in
>>> a combo box
>>> two values, for example I want to show id and name of the every fruit: 1
>>> Apple ?
>>> The second question is, my struts 2 application on one jsp page will
>> have
>>> 5 combo
>>> boxes, 4 text boxes, two buttons and two datetime pickers, and below all
>>> these controls a table
>>> that will show what is entered using controls above. The problem is that
>>> my table will have
>>> about 100-120 records (rows) to show, and I think that is very much for
>>> one jsp page, and
>>> also I want user to see about last 10 rows, because he need to see if
>>> there is any error.
>>> How can I do this, can I use table pagination (how) ?
>>> --
>>> Thx in advance, Milan Milanovic
>>> 
>>> 
>>> 
>> 
>> 
>> 
>> 
>> --
>> Jim Kiley
>> Technical Consultant | Summa
>> [p] 412.258.3346 [m] 412.445.1729
>> http://www.summa-tech.com
>> 
>> 
>> 
>> 
>> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JFreeChart plugin

2008-05-13 Thread Randy Burgess
I'm using an interceptor to store (and clear) a DefaultPieDataset in the
users session from actions that give me the data needed to create charts. My
chart action implements SessionAware and I get the dataset from the session.
I also created a package for the charts that extends struts-default because
the charts plugin doesn't define any interceptors AFAICT. I then get the
chart using an image tag in a modal window which calls my chart action.



  
150200
 
600200 


This type of configuration would work for your scenario also. If you have a
huge dataset then storing it in the session could cause an issue with
scalability. With a chart I wouldn¹t imagine that the dataset would be that
large though.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Leena Borle <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 13 May 2008 13:50:00 -0700
> To: Struts Users Mailing List 
> Subject: Re: JFreeChart plugin
> 
> Hi,
>   I'm using Tomcat-5.5.25. I found out that, if I include action's url in
> , it gets displayed.
>   I am trying to display chart using Remote-Button/Remote-DIV method of S2.
> Which means when user submits form data, I need to display chart inside a
> DIV below this form. something like this ...
>   
>.
>   theme="ajax" targets="chart_div"
> cssClass="buttons" />
> 
> 
> 
> 
> 
>   Any idea how to achieve this without specifying action's URL directly
> to image tag ?
> 
> Leena
> 
> On Tue, May 13, 2008 at 11:45 AM, Randy Burgess <[EMAIL PROTECTED]> wrote:
> 
>> I used the example code from the documentation on WebLogic 9.2.2 and it
>> ran
>> fine. I built off that example code and now have several actions creating
>> nice 3D pie charts. Which application server are you using?
>> 
>> Regards,
>> Randy Burgess
>> Sr. Web Applications Developer
>> Nuvox Communications
>> 
>> 
>> 
>>> From: Leena Borle <[EMAIL PROTECTED]>
>>> Reply-To: Struts Users Mailing List 
>>> Date: Tue, 13 May 2008 10:41:57 -0700
>>> To: Struts Users Mailing List 
>>> Subject: JFreeChart plugin
>>> 
>>> Hello,
>>>   Has anyone tried out JFreeChart plugin? I am trying to run the sample
>> code
>>> available on plugin documentation page. I see all ASCII characters
>> getting
>>> printed on my browser screen instead of an image file.
>>>   Any help is appreciated.
>>> Thanks,
>>> Leena.
>> 
>> 
>> 
>> This email and any attachments ("Message") may contain legally privileged
>> and/or confidential information.  If you are not the addressee, or if this
>> Message has been addressed to you in error, you are not authorized to read,
>> copy, or distribute it, and we ask that you please delete it (including all
>> copies) and notify the sender by return email.  Delivery of this Message to
>> any person other than the intended recipient(s) shall not be deemed a waiver
>> of confidentiality and/or a privilege.
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.


Re: JFreeChart plugin

2008-05-13 Thread Randy Burgess
I used the example code from the documentation on WebLogic 9.2.2 and it ran
fine. I built off that example code and now have several actions creating
nice 3D pie charts. Which application server are you using?

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Leena Borle <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 13 May 2008 10:41:57 -0700
> To: Struts Users Mailing List 
> Subject: JFreeChart plugin
> 
> Hello,
>   Has anyone tried out JFreeChart plugin? I am trying to run the sample code
> available on plugin documentation page. I see all ASCII characters getting
> printed on my browser screen instead of an image file.
>   Any help is appreciated.
> Thanks,
> Leena.



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [struts 2] Two forms for one action

2008-05-13 Thread Randy Burgess
They could, if it were me I would have different methods on the action class
to handle the different forms if I were to do it this way. Personally I
would create an action class for each form.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Milan Milanovic <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 13 May 2008 07:58:29 -0700 (PDT)
> To: Struts Users Mailing List 
> Subject: Re: [struts 2] Two forms for one action
> 
> I have one more question about this, if I define two  in one page
> would
> they work with the same action class ?
> 
> --
> Thx, Milan Milanovic
> - Original Message 
> From: Jim Kiley <[EMAIL PROTECTED]>
> To: Struts Users Mailing List 
> Sent: Monday, May 12, 2008 6:15:07 PM
> Subject: Re: [struts 2] Two forms for one action
> 
> Milan,
> 
> I'm not a Struts 1 guy, so this advice might not be useful to you (because
> you didn't say whether this was a Struts 1 or 2 situation). But in my Struts
> 2 app I have plenty of places where I have multiple  buttons each
> triggering different action methods on the same action class.
> 
> jk
> 
> 
> On Mon, May 12, 2008 at 12:10 PM, Milan Milanovic <[EMAIL PROTECTED]>
> wrote:
> 
>> Or maybe I should define two submit buttons for the same form and action
>> class ?
>> --
>> Regards, Milan
>> 
>> 
>> - Original Message 
>> From: Milan Milanovic <[EMAIL PROTECTED]>
>> To: Struts Users Mailing List 
>> Sent: Monday, May 12, 2008 5:57:50 PM
>> Subject: [struts 2] Two forms for one action
>> 
>> Hi,
>> I need to have classic master/detail jsp page, so I need actually two
>> forms in a jsp page to works with one action class,
>> one main form that works with main elements of my object (e.g. User name,
>> surname,...) for header and another one which works
>> with some list that belongs to my main object (e.g., User.privileges)
>> below such header part. How can I define this ?
>> --
>> Thx, Milan Milanovic
>> 
>> 
>> 
>> _
>> ___
>> Be a better friend, newshound, and
>> know-it-all with Yahoo! Mobile.  Try it now.
>> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>> 
>> 
>> 
>>   
>> _
>> ___
>> Be a better friend, newshound, and
>> know-it-all with Yahoo! Mobile.  Try it now.
>> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>> 
> 
> 
> 
> -- 
> Jim Kiley
> Technical Consultant | Summa
> [p] 412.258.3346 [m] 412.445.1729
> http://www.summa-tech.com
> 
> 
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.


Re: Best way to access Session with regards to cluster

2008-04-30 Thread Randy Burgess
ActionInvocation.getInvocationContext().getSession() or

final HttpServletRequest request = (HttpServletRequest)
context.get(HTTP_REQUEST);
HttpSession session = request.getSession();

will do it in an interceptor. The latter assuming you are implementing
StrutsStatics in the interceptor.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Brad A Cupit <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Wed, 30 Apr 2008 11:40:49 -0500
> To: Struts Users Mailing List 
> Subject: RE: Best way to access Session with regards to cluster
> 
>> but I still have some confusion about the proper way to do
>> this so that my session values will be available and
>> replicated properly in a cluster environment.
> 
> The Struts 2 session maps are actually just wrappers around the real
> underlying session. The methods that return (or set) a
> HttpServletRequest should provide the actual http session.
> 
> Basically, once you have setup replicated sessions in your app server,
> Struts 2 should work with it automatically, no matter which method you
> choose to get the session.
> 
> I believe implementing SessionAware is the recommended approach, as it
> doesn't tie your actions to the servlet api (making them more portable
> and easier to test).
> 
> Not sure about getting the session in an interceptor though...
> 
> Brad Cupit
> Louisiana State University - UIS
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.


This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.


Re: Exclude interceptor

2008-04-29 Thread Randy Burgess
As soon as you define interceptors at the action level you are excluding all
other interceptors *except* the ones you specify for the action, so in this
way you can exclude interceptors on a per action basis. You could also roll
your own packages with the interceptors you want and exclude them that way
also.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Lukasz Lenart <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 29 Apr 2008 22:52:41 +0200
> To: Struts Users Mailing List 
> Subject: Exclude interceptor
> 
> Hi,
> 
> Today I've been presenting Struts2 to member of Warsaw JUG and I got such
> question:
> it is possible to exclude interceptor for given action?
> 
> As I know no, but maybe I'm wrong. The only way is to define interceptor for
> each action and omit for given one.
> 
> 
> Regards
> -- 
> Lukasz
> 
> http://www.linkedin.com/in/lukaszlenart



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.


This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2008-04-29 Thread Randy Burgess
It sounds like you are using Struts 2.0.11+ and if this is the case then EL
is not allowed in Struts tags.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: xianwinwin <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Mon, 28 Apr 2008 16:40:19 -0700 (PDT)
> To: 
> Subject: struts2 & displayTag how to use checkBox; Problem: translating the
> fieldValue
> 
> 
> 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:
> 
>  fieldValue='${entityId}'/>
> 
> I wonder why I don't get the *value/content* of the userCheck. Instead, I
> get ${entityId} (this really very string)
> 
> any idea how to get the entityId (the number)?
> 
> thank you! 
> -- 
> View this message in context:
> http://www.nabble.com/struts2---displayTag-how-to-use-checkBox--Problem%3A-tra
> nslating-the-fieldValue-tp16945993p16945993.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.


This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Redirect to any URL.

2008-04-25 Thread Randy Burgess
After successful login credentials are passed into your login action you
could get the URL out of the session and redirect them back to that page.
This might work for you on the redirect.

http://struts.apache.org/2.x/docs/parameters-in-configuration-results.html

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Airlene B <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Fri, 25 Apr 2008 01:45:12 -0700 (PDT)
> To: 
> Subject: Redirect to any URL.
> 
> 
> Hi,
> 
> I want to redirect a user to his previous visited URL, after a successful
> login.
> For example, a user clicked on:
> /mySite/products/purchase.action?id=45&try=234
> 
> and this takes him to the login page. I do that by using a login interceptor
> on purchase.action. I store this URL in the session in the login
> interceptor. Any ideas on how I redirect back to this URL? (Of course this
> URL can vary depending on where the user was).
> 
> Thanks.
> -- 
> View this message in context:
> http://www.nabble.com/Redirect-to-any-URL.-tp16893207p16893207.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.


This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Randy Burgess
Make sure to set your actions in your application context with
scope="prototype".

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Toni Lyytikäinen <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Fri, 18 Apr 2008 21:54:14 +0300
> To: Struts Users Mailing List 
> Subject: Re: Converting action configuration from 2.0 to 2.1 - how to convert
> parameters to actions
> 
> Well, as I already posted in the issue, it turned out that this is somehow
> caused by the Spring plugin. If I disable the Spring plugin, it works fine
> (apart from the fact that my DAOs won't get injected to the actions, of
> course).



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.


This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.


Re: Is it possible to make a pop up window using Struts?

2008-04-17 Thread Randy Burgess
In my example the popup window didn't do any processing because it is a
ForwardAction (org.apache.struts.actions.ForwardAction), the view just got
some values that were either in the session or passed on the query string.
If your form bean is configured properly the values from the query string
should get populated in the form.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: ryan webb <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Thu, 17 Apr 2008 09:35:34 +0800
> To: Struts Users Mailing List 
> Subject: Re: Is it possible to make a pop up window using Struts?
> 
> Dear Randy,
> 
> Thank you very much for your kind reply..your method is very good. I will
> note your reply. =)
> Is it possible to transfer query string using this method? although i am not
> quite sure yet that this will work.
> 
> I will get parameter in my action class using *
> request.getParameter("orderNumber");* then store it to a form bean
> variable(String data type)then on popup window I will use *
> * accessing form bean variable (form bean property).
> 
> Again, I would like to thank you for your answer.
> 
> -Ryan Webb
> 
> 
> On Thu, Apr 17, 2008 at 3:56 AM, Randy Burgess <[EMAIL PROTECTED]> wrote:
> 
>> You can pass a query string to the popup window. Here is an example.
>> 
>> > 
>> href="javascript:popup('printOrder.do?orderNumber=${order.workOrderNumber}',
>> 600, 600, true);">
>> 
>> And then in the popup window to get the orderNumber param passed in above:
>> 
>> 
>> Reference Number: ${param.orderNumber}
>> 
>> 
>> You might want to change the href to # and put the window.open code in the
>> onclick event but other than that this will work fine. In this case order
>> Is a request attribute for this action.
>> 
>> Regards,
>> Randy Burgess
>> Sr. Web Applications Developer
>> Nuvox Communications
>> 
>> 
>> 
>>> From: ryan webb <[EMAIL PROTECTED]>
>>> Reply-To: Struts Users Mailing List 
>>> Date: Wed, 16 Apr 2008 16:40:25 +0800
>>> To: Struts Users Mailing List 
>>> Subject: Re: Is it possible to make a pop up window using Struts?
>>> 
>>> Antonio,
>>> 
>>>> 1) What Struts? Struts 1.2.9 (Netbeans bundle)
>>>> 2) You can still do it in Javascript. I see.. I just want to know if
>> you do
>>> it with struts.
>>> 
>>> I am having trouble with it..I created a pop up window using javascript
>> and
>>> i cant pass query string on new window.
>>> when i clicked a  I pass a paramId and paramProperty and I
>> cant
>>> make it appear to new window.
>>> 
>>> I have an action class that has *request.setAttribute("username",
>>> request.getParameter("username"));*
>>> on the new window I have *<%=
>> out.println(request.getAttribute("username"))
>>> %>* but this only displays the word NULL
>>> 
>>> I am new to struts..
>>> 
>>> Ryan
>>> 
>>> On Wed, Apr 16, 2008 at 4:22 PM, Antonio Petrelli <
>>> [EMAIL PROTECTED]> wrote:
>>> 
>>>> 2008/4/16, ryan webb <[EMAIL PROTECTED]>:
>>>>>  Is it possible to make a window pop up using struts?
>>>>>  usually this can be done in Javascript..
>>>> 
>>>> 1) What Struts?
>>>> 2) You can still do it in Javascript
>>>> 
>>>> Antonio
>>>> 
>>>> -
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>> 
>>>> 
>> 
>> 
>> 
>> This email and any attachments ("Message") may contain legally privileged
>> and/or confidential information.  If you are not the addressee, or if this
>> Message has been addressed to you in error, you are not authorized to read,
>> copy, or distribute it, and we ask that you please delete it (including all
>> copies) and notify the sender by return email.  Delivery of this Message to
>> any person other than the intended recipient(s) shall not be deemed a waiver
>> of confidentiality and/or a privilege.
>> 
>> 
>> This email and any attachments ("Message") may contain legally privileged
>> and/or confidential information.  If you are not the addressee, or if this
>> Message has been addressed to you in error, you are not authori

Re: Is it possible to make a pop up window using Struts?

2008-04-16 Thread Randy Burgess
You can pass a query string to the popup window. Here is an example.



And then in the popup window to get the orderNumber param passed in above:


Reference Number: ${param.orderNumber}


You might want to change the href to # and put the window.open code in the
onclick event but other than that this will work fine. In this case order
Is a request attribute for this action.
 
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: ryan webb <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Wed, 16 Apr 2008 16:40:25 +0800
> To: Struts Users Mailing List 
> Subject: Re: Is it possible to make a pop up window using Struts?
> 
> Antonio,
> 
>> 1) What Struts? Struts 1.2.9 (Netbeans bundle)
>> 2) You can still do it in Javascript. I see.. I just want to know if you do
> it with struts.
> 
> I am having trouble with it..I created a pop up window using javascript and
> i cant pass query string on new window.
> when i clicked a  I pass a paramId and paramProperty and I cant
> make it appear to new window.
> 
> I have an action class that has *request.setAttribute("username",
> request.getParameter("username"));*
> on the new window I have *<%= out.println(request.getAttribute("username"))
> %>* but this only displays the word NULL
> 
> I am new to struts..
> 
> Ryan
> 
> On Wed, Apr 16, 2008 at 4:22 PM, Antonio Petrelli <
> [EMAIL PROTECTED]> wrote:
> 
>> 2008/4/16, ryan webb <[EMAIL PROTECTED]>:
>>>  Is it possible to make a window pop up using struts?
>>>  usually this can be done in Javascript..
>> 
>> 1) What Struts?
>> 2) You can still do it in Javascript
>> 
>> Antonio
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.


This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.


Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-15 Thread Randy Burgess
I've never used that method of injection so I wouldn't comment on it one way
or another, I just found it in the Spring documentation.

If you don't declare the scope for a Spring bean it defaults to singleton.
It will never be a prototype unless you explicitly declare it as such using
either annotations or XML.

Randy


> From: Martin Gainty <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 15 Apr 2008 17:16:03 -0400
> To: Struts Users Mailing List 
> Subject: Re: [S2] Spring: Interceptors, prototype or singleton?
> 
> Yes very clear thank you
> 
> so the default assignment of scope=singleton happens under these scenarios:
> 1)bean creation defaulting to singleton as in ApplicationContext
> 2)beanFactory supports registerSingleton
>   then a singleton bean can be set to lazy-initialize (that is not be
> pre-instantiated).
> 
> For all other situations the default of prototype is implied
> 
> This statement about Method Injection is extremely problematic woth regards
> to singletons
> 
> For most application scenarios, the majority of the beans in the container
> will be singletons. When a singleton bean needs to collaborate with another
> singleton bean, or a non-singleton bean needs to collaborate with another
> non-singleton bean, the typical and common approach of handling this
> dependency by defining one bean to be a property of the other is quite
> adequate. There is a problem when the bean lifecycles are different.
> Consider a singleton bean A which needs to use a non-singleton (prototype)
> bean B, perhaps on each method invocation on A. The container will only
> create the singleton bean A once, and thus only get the opportunity to set
> the properties once. There is no opportunity for the container to provide
> bean A with a new instance of bean B every time one is needed.
> 
> So if prototype bean B changes A has no clue..
> 
> I think I'll stay with the scope="prototype/singleton" in the declarator..
> 
> Thanks,
> Martin
> - Original Message -
> From: "Randy Burgess" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" 
> Sent: Tuesday, April 15, 2008 9:51 AM
> Subject: Re: [S2] Spring: Interceptors, prototype or singleton?
> 
> 
>> Just about every single S2 action I have ever created uses Spring to
> inject
>> a service object of some sort into the action. I use Spring for
>> transactions, SLSB's, MDB's, JDBC, Hibernate, you name it.
>> 
>> Ganfab asked about injecting a new instance of an object into a custom
>> interceptor on every action call and my thinking was that Spring had only
>> constructor or setter injection and that interceptors were always
>> singletons, so the injected bean would always be a singleton. Well I just
>> found in Spring 2.5 they have lookup method injection which can be used to
>> create a new instance of an object from the Spring bean factory and inject
>> them into a Singleton. Using this you could inject new instances and
> declare
>> your interceptor in a package and not have to declare it for every action
>> needing this type of interceptor. See 3.3.7.1.
>> 
>> 
> http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#bea
>> ns-factory-method-injection
>> 
>> I hope I'm being clear about what I mean. :)
>> 
>> Regards,
>> Randy Burgess
>> Sr. Web Applications Developer
>> Nuvox Communications
>> 
>> 
>> 
>>> From: Martin Gainty <[EMAIL PROTECTED]>
>>> Reply-To: Struts Users Mailing List 
>>> Date: Mon, 14 Apr 2008 21:50:15 -0400
>>> To: Struts Users Mailing List 
>>> Subject: Re: [S2] Spring: Interceptors, prototype or singleton?
>>> 
>>> Could you provide a scenario where one bean is injected into another?
>>> 
>>> Thanks
>>> M-
>>> - Original Message -
>>> From: "Randy Burgess" <[EMAIL PROTECTED]>
>>> To: "Struts Users Mailing List" 
>>> Sent: Monday, April 14, 2008 3:55 PM
>>> Subject: Re: [S2] Spring: Interceptors, prototype or singleton?
>>> 
>>> 
>>>> So the interceptor would have to be declared at the action level in
> this
>>>> case then? If I have a spring bean named myBean that is default scope
> and
>>> I
>>>> inject another bean declared as a prototype into it, the injected bean
>>> will
>>>> still be a singleton since there will be only one instance of myBean.
>>>> 
>>>> Regards,
>>>> Randy Burgess
>>>> Sr. Web Application

Re: Struts 2 + AjaxTags + DisplayTag

2008-04-15 Thread Randy Burgess
Well your requestURI is not set so the URL is set to the current JSP and not
the action. I have never had any success leaving requestURI blank with
DisplayTag on S1 or S2. I always set it to the name of an action.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Márcio Gurgel <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 15 Apr 2008 01:18:34 -0300
> To: Struts Users Mailing List 
> Subject: Re: Struts 2 + AjaxTags + DisplayTag
> 
> Matt, tanks for your help. But I need to persist with displayTags /:
> 
> I guess that there's some kind of validation inside struts 2 that doesnt
> allow the correct work of ajaxtags..
> Just take a look at my generated url from displaytag pagination.
> 
> http://localhost:8080/SGVDBA/view/usuario/UsuPesquisaResultados.jsp?
> currentUsu.eMail=¤tUsu.chv=¤tUsu.dtGvr=&struts.enableJSONValidatio
> n=true
> &buttonPesquisar=Pesquisar&dojo.currentUsu.dtGvr=&d-49489-p=2
> 
> 
> Tanks all!
> 
> 2008/4/14, matt.payne <[EMAIL PROTECTED]>:
>> 
>> 
>> You could try struts2 +  jquery + jgrid
>> (http://trirand.com/jqgrid/jqgrid.html)
>> If you need ajax, you need something that returns an json or xml response
>> (insert you velocity, freemarker, json result, jsp result here).
>> 
>> Matt
>> 
>> 
>> 
>> Márcio Gurgel wrote:
>>> 
>>> Hi all!
>>> 
>>> Since this morning I'm having troubles to configure ajaxTags in my
>>> project.
>>> I followed the steps from ajaxTags web site, I also saw the ajaxTags
>> show
>>> case wich contains a example of display:table.
>>> But doen't work...
>>> 
>>> Is there some kind os special configuration for struts 2?
>>> My displayTable is inside a 
>>> 
>>> I also tried to use: useSelectedTabCookie="useSelectedTabCookie" to
>> select
>>> the correct tab when my displayTable pagination submits the page.
>>> In this case, the content of the first tab doesn't appear.
>>> 
>>> Regards.
>>> 
>>> Márcio Gurgel
>>> 
>>> 
>> 
>> 
>> --
>> View this message in context:
>> http://www.nabble.com/Struts-2-%2B-AjaxTags-%2B-DisplayTag-tp16670438p1668945
>> 8.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.


This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.


Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-15 Thread Randy Burgess
Just about every single S2 action I have ever created uses Spring to inject
a service object of some sort into the action. I use Spring for
transactions, SLSB's, MDB's, JDBC, Hibernate, you name it.

Ganfab asked about injecting a new instance of an object into a custom
interceptor on every action call and my thinking was that Spring had only
constructor or setter injection and that interceptors were always
singletons, so the injected bean would always be a singleton. Well I just
found in Spring 2.5 they have lookup method injection which can be used to
create a new instance of an object from the Spring bean factory and inject
them into a Singleton. Using this you could inject new instances and declare
your interceptor in a package and not have to declare it for every action
needing this type of interceptor. See 3.3.7.1.

http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#bea
ns-factory-method-injection

I hope I'm being clear about what I mean. :)

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Martin Gainty <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Mon, 14 Apr 2008 21:50:15 -0400
> To: Struts Users Mailing List 
> Subject: Re: [S2] Spring: Interceptors, prototype or singleton?
> 
> Could you provide a scenario where one bean is injected into another?
> 
> Thanks
> M-
> - Original Message -
> From: "Randy Burgess" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" 
> Sent: Monday, April 14, 2008 3:55 PM
> Subject: Re: [S2] Spring: Interceptors, prototype or singleton?
> 
> 
>> So the interceptor would have to be declared at the action level in this
>> case then? If I have a spring bean named myBean that is default scope and
> I
>> inject another bean declared as a prototype into it, the injected bean
> will
>> still be a singleton since there will be only one instance of myBean.
>> 
>> Regards,
>> Randy Burgess
>> Sr. Web Applications Developer
>> Nuvox Communications
>> 
>> 
>> 
>>> From: Don Brown <[EMAIL PROTECTED]>
>>> Reply-To: Struts Users Mailing List 
>>> Date: Tue, 15 Apr 2008 01:12:49 +1000
>>> To: Struts Users Mailing List 
>>> Subject: Re: [S2] Spring: Interceptors, prototype or singleton?
>>> 
>>> To clarify, interceptors aren't technically singletons as each
>>> instance in an interceptor stack gets its own interceptor instance.
>>> However, for all requests using that stack, the same interceptor will
>>> be used.  Therefore, you do need to be careful.  For example, most
>>> interceptors take parameters that configure their use within the
>>> stack, like the "validation" interceptor that takes a list of excluded
>>> methods from validation.  Interceptors can be configured at the stack
>>> level or at the action level.  If at the action level, you will get a
>>> unique interceptor instance for that action.
>>> 
>>> If you want Spring to construct your interceptor, I recommend the
>>> prototype scope, so that Struts gets a new instance of the interceptor
>>> as expected.
>>> 
>>> Don
>>> 
>>> On Tue, Apr 15, 2008 at 12:48 AM, Randy Burgess <[EMAIL PROTECTED]>
> wrote:
>>>> Interceptors are Singletons according to the documentation. If it were
> me I
>>>>  would come up with another method besides Spring for changing object
>>>>  properties.
>>>> 
>>>>  Regards,
>>>>  Randy Burgess
>>>>  Sr. Web Applications Developer
>>>>  Nuvox Communications
>>>> 
>>>> 
>>>> 
>>>>> From: GF <[EMAIL PROTECTED]>
>>>>> Reply-To: Struts Users Mailing List 
>>>>> Date: Mon, 14 Apr 2008 14:51:25 +0200
>>>>> To: Struts Users ML 
>>>>> Subject: [S2] Spring: Interceptors, prototype or singleton?
>>>> 
>>>> 
>>>>> 
>>>>> In a guide I found on the web, the interceptor was defined as
> singleton in
>>>>> the Spring's ApplicationContext.
>>>>> 
>>>>> If I need to use "changeable" object properties, I need to have it as
>>>>> Prototype, otherwise different requests will result in a object
> property
>>>>> overwriting.
>>>>> Is there any issues about defining an interceptor as Prototype, or is
> it ok?
>>>>> 
>>>>> Thanks
>>>>> 
>>>>> GF
>>>> 
>>>> 
>>

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Randy Burgess
So the interceptor would have to be declared at the action level in this
case then? If I have a spring bean named myBean that is default scope and I
inject another bean declared as a prototype into it, the injected bean will
still be a singleton since there will be only one instance of myBean.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Don Brown <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 15 Apr 2008 01:12:49 +1000
> To: Struts Users Mailing List 
> Subject: Re: [S2] Spring: Interceptors, prototype or singleton?
> 
> To clarify, interceptors aren't technically singletons as each
> instance in an interceptor stack gets its own interceptor instance.
> However, for all requests using that stack, the same interceptor will
> be used.  Therefore, you do need to be careful.  For example, most
> interceptors take parameters that configure their use within the
> stack, like the "validation" interceptor that takes a list of excluded
> methods from validation.  Interceptors can be configured at the stack
> level or at the action level.  If at the action level, you will get a
> unique interceptor instance for that action.
> 
> If you want Spring to construct your interceptor, I recommend the
> prototype scope, so that Struts gets a new instance of the interceptor
> as expected.
> 
> Don
> 
> On Tue, Apr 15, 2008 at 12:48 AM, Randy Burgess <[EMAIL PROTECTED]> wrote:
>> Interceptors are Singletons according to the documentation. If it were me I
>>  would come up with another method besides Spring for changing object
>>  properties.
>> 
>>  Regards,
>>  Randy Burgess
>>  Sr. Web Applications Developer
>>  Nuvox Communications
>> 
>> 
>> 
>>> From: GF <[EMAIL PROTECTED]>
>>> Reply-To: Struts Users Mailing List 
>>> Date: Mon, 14 Apr 2008 14:51:25 +0200
>>> To: Struts Users ML 
>>> Subject: [S2] Spring: Interceptors, prototype or singleton?
>> 
>> 
>>> 
>>> In a guide I found on the web, the interceptor was defined as singleton in
>>> the Spring's ApplicationContext.
>>> 
>>> If I need to use "changeable" object properties, I need to have it as
>>> Prototype, otherwise different requests will result in a object property
>>> overwriting.
>>> Is there any issues about defining an interceptor as Prototype, or is it ok?
>>> 
>>> Thanks
>>> 
>>> GF
>> 
>> 
>> 
>>  This email and any attachments ("Message") may contain legally privileged
>> and/or confidential information.  If you are not the addressee, or if this
>> Message has been addressed to you in error, you are not authorized to read,
>> copy, or distribute it, and we ask that you please delete it (including all
>> copies) and notify the sender by return email.  Delivery of this Message to
>> any person other than the intended recipient(s) shall not be deemed a waiver
>> of confidentiality and/or a privilege.
>> 
>> 
>>  This email and any attachments ("Message") may contain legally privileged
>> and/or confidential information.  If you are not the addressee, or if this
>> Message has been addressed to you in error, you are not authorized to read,
>> copy, or distribute it, and we ask that you please delete it (including all
>> copies) and notify the sender by return email.  Delivery of this Message to
>> any person other than the intended recipient(s) shall not be deemed a waiver
>> of confidentiality and/or a privilege.
>> 
>>  -
>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.


This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Randy Burgess
Interceptors are Singletons according to the documentation. If it were me I
would come up with another method besides Spring for changing object
properties. 

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: GF <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Mon, 14 Apr 2008 14:51:25 +0200
> To: Struts Users ML 
> Subject: [S2] Spring: Interceptors, prototype or singleton?
> 
> In a guide I found on the web, the interceptor was defined as singleton in
> the Spring's ApplicationContext.
> 
> If I need to use "changeable" object properties, I need to have it as
> Prototype, otherwise different requests will result in a object property
> overwriting.
> Is there any issues about defining an interceptor as Prototype, or is it ok?
> 
> Thanks
> 
> GF



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.


This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do I make Tomcat send 403 Forbidden page to the client in jsp and in struts?

2008-04-11 Thread Randy Burgess
I wonder if specifying HttpServletResponse.SC_FORBIDDEN would make a
difference because the HttpServletResponse has those constants and that is
in the method signature for the Action class.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: ryan webb <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Fri, 11 Apr 2008 11:20:35 +0800
> To: Struts Users Mailing List 
> Cc: <[EMAIL PROTECTED]>
> Subject: How do I make Tomcat send 403 Forbidden page to the client in jsp and
> in struts?
> 
> I am having difficulty with authentication of user levels.
> I have to kinds of users "user" and "administrators".
> 
> What we did in mySQL db is make a user table and in it, a "level" column is
> placed containing whether a user is "administrator" or not.
> there's no problem with this actually (I just wrote the situation and
> setup).
> 
> *Now, I want the server to send a 403 response to non-administrative
> personnel accessing some secured places in our site.*
> 
> How can I do this?(Or is this possible? I have no idea actually..)
> 
> I have a userBean.java that contains all user informations from database.
> I made this in my execute method in Action class. (Something Like this)
> 
> execute(response, request, form){
> 
> UserActionForm uaf = (UserActionForm) form;
> 
> UserBean userbean =  new UserBean();
> 
>  *   if (userbean.getlevel().equals("user")){
> response.sendError(SC_FORBIDDEN);
> }
> 
> *return mapping.findForward("Sucess");
> }
> 
> this code does not compile..sendError() expects int value. I tried
> sendError(403) but doesn't work.
> 
> Any Help is Gladly Appreciated! =)
> 
> God Bless!



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.


This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Does Struts 2 support clustering?

2008-04-10 Thread Randy Burgess
You can configure sticky sessions, which means that requests that go to one
server in your cluster will always go to that server. To me this defeats the
purpose of the cluster because if that machine goes down the user will be
sent to another server, but their session will be gone with the down server.
However this is the best performing configuration. Another option is shared
sessions and this is covered in the WebLogic documentation at
http://edocs.bea.com. How or if the session is shared in a cluster has
nothing to do with Struts or any web application really.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: mojoRising <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Thu, 10 Apr 2008 13:45:11 -0700 (PDT)
> To: 
> Subject: Re: Does Struts 2 support clustering?
> 
> 
> Thanks. That is what I suspect also but I am trying to weed out other
> possibilities... can I then take your response to mean : "Yes, Struts 2 DOES
> support clustering"?
> 
> 
> 
> newton.dave wrote:
>> 
>> 
>> This is almost certainly a server configuration issue; in general nothing
>> on
>> the framework / application side should have anything to do with session
>> management or even be aware of it.
>> 
>> Dave
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Does-Struts-2-support-clustering--tp16609897p16617641.ht
> ml
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts.xml

2008-04-09 Thread Randy Burgess
All this is linked right from the Core Developers Guide at
http://struts.apache.org/2.x/docs/guides.html. Click the result types link
and there you go.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Ian Meikle <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Wed, 9 Apr 2008 16:33:40 +0200
> To: Struts Users Mailing List 
> Subject: struts.xml
> 
> Hi,
> 
> Can anyone point me to where the seperate sections of the struts.xml file
> is described ?
> 
> I am specifically looking at what the valid values in the  type="???"/> element are ?
> 
> Many thanks
> 
> Ian
> 
> --
> --
> -
> This is a PRIVATE message. If you are not the intended recipient, please
> delete without copying and kindly advise us by e-mail of the mistake in
> delivery. 
> NOTE: Regardless of content, this e-mail shall not operate to bind CSC to
> any order or other contract unless pursuant to explicit written agreement
> or government initiative expressly permitting the use of e-mail for such
> purpose.
> --
> --
> -



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] What do you code today?

2008-04-07 Thread Randy Burgess
I'm working on an external and internal facing portal application using BEA
AquaLogic UI (ALUI), plugging some holes with S2 based portlets, mainly
dealing with moving our customers from DB based auth to LDAP through the
portal.

With ALUI you can use either JSR-168 portlets or plain old web apps so we
have taken the plain old web app course and have not used the portlet
plugin. One of my co-workers has created some portlets using the JSF plugin
with good results. 

These portlets are mainly customer self service for our many service
offerings and oriented towards customer support on the internal facing
stuff.

Overall we love the framework, much better than S1!

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Ted Husted <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Fri, 4 Apr 2008 07:14:33 -0400
> To: Struts Users Mailing List 
> Subject: [OT] What do you code today?
> 
> While outward facing web application get the most publicity, I know
> that most of us are heads-down on internally-facing applications
> designed for fellow employees to use over the corporate intranet.
> 
> I'm trying to put together a list of the typical types of applications
> that  enterprise developer write in real life. For example, my last
> project involved a system to track drafting, granting, monitoring, and
> enforcing water permits administered by a government agency. We would
> create an initial record for a permit, and then add child records to
> track progress through the workflow, and also update the master record
> along the way. For management, a key item here is a tracking report,
> which we exported to Word (using a third-party tool) for better
> formatting. For engineers, a key item was a flexible search system to
> quickly find a master or child record. Other interesting features are
> workflows where one task leads to another. When we completed one task
> (child record), the next is often implied, and so we had a workflow
> that would default the next task to work on when a current task was
> closed. Another interesting requirement was that sometimes master
> items were merged under another uber-master-item, becoming, in effect,
> child items themselves. In most cases, the application simply exposed
> business models that we designed into the database, so the application
> has little business logic of its own. Most of the workflows were
> designed to find, list, edit, or view one database entity or the
> other.
> 
> So, if anyone else is up for sharing, I'd be interested in hearing
> what sort of things other people are doing these days. (If your not
> comfortable posting the list, feel free to mail me direct.)
> 
> -Ted.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Security @ Struts2, using Acegy or Inspector

2008-04-03 Thread Randy Burgess
A servlet filter is relatively easy if you are going to put restrictions on
the actions alone and you don't have to mess with interceptor stacks. We've
done both interceptors and a filter and the filter is lower maintenance.
Just put the filter before the struts 2 filter in your web.xml. If you want
to secure more than the actions then I think Acegi is the way to go.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Frans Thamura <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Thu, 3 Apr 2008 07:13:20 +0700
> To: Struts Users Mailing List 
> Subject: Re: Security @ Struts2, using Acegy or Inspector
> 
>> 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 your POJO
>> via whatever mechanism you want -- via ModelDriven's getModel() method,
>> through an interceptor-specific interface you design, or whatever.
> 
> 
> my idea is to make a class that extend Action
> 
> so, if I extend this action, the action will query and get security
> permission from database.. because i prefer database driven ..
> 
> but i thinking a interceptor, but new in this area, i prefer a pattern that
> filter any action
> 
> but.. i am loking also in AOP of spring or may be a HTTPFilter mechanism
> (still dont know, how to implement Struts2 based in the httpfilter)
> 
> 
> F



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Calling Action on form load

2008-03-27 Thread Randy Burgess
Use the  tag.

http://struts.apache.org/2.x/docs/action.html

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: aum strut <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Thu, 27 Mar 2008 22:04:04 +0530
> To: Struts Users Mailing List 
> Subject: Calling Action on form load
> 
> Hi all,
> 
> is it possible to call an action in struts2  everytime when the page get
> loaded if yes how it is possible.
> my problem is i am using  tag and using a list to pupulate this
> drop down this list is coming from the action which i m calling before the
> page is being displayed.
> 
> the folw is like this:
> 
> if usercall for this JSP page instaed to direct user directly  to this page
> i m calling an action which is preaparing a list for the  tag
> and then it is forwarding the user to this page.
> 
> Till now eveything is working fine,but when on this page user is entering
> some values in the fields and hitting the submitting button,exception is
> being thrown which is saying that:
> 
> 
> select', field 'list', name 'code': The requested list key 'ItemCode' could
> not be resolved as a collection/array/map/enumeration/iterator type.
> Example: people or people.{name} - [unknown location]
> 
> because i thik it is unable to call the action again which is returning the
> list...is theer any way to call that action each time when user is
> submitting the value..
> 
> 
> 
> any pointer in this regard will be much appriciated.
> 
> -aum



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: @ExpressionValidator - how to set the expression correctly ? (amount either greater than 0 or null? )

2008-03-27 Thread Randy Burgess
Did you try 
@ExpressionValidator(expression = "(amount > 0) || (amount == null)",
message = "err message")

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: xianwinwin <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Wed, 26 Mar 2008 16:34:48 -0700 (PDT)
> To: 
> Subject: @ExpressionValidator - how to set the expression correctly ? (amount
> either greater than 0 or null? )
> 
> 
> Hi,
> 
> I have the following Expression Validator:
> 
> @ExpressionValidator(expression = "amount > 0", message = "err message")
> 
> what should come in the expression if amount can be either greater than 0 or
> null? 
> 
> thank you!
> -- 
> View this message in context:
> http://www.nabble.com/%40ExpressionValidator---how-to-set-the-expression-corre
> ctly---%28amount-either-greater-than-0-or-null--%29-tp16319035p16319035.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: key property of s:checkbox tag

2008-03-24 Thread Randy Burgess
Have you tried this syntax?



Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: "Emil.I" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Mon, 24 Mar 2008 10:23:07 -0700 (PDT)
> To: 
> Subject: Re: key property of s:checkbox tag
> 
> 
> So can i nest s:property within. Eg.:
> 
> 
> 
> the preceeding doesn't work. Is there anyway not including the solution,
> where you put s:property tag beside s:checkbox, but actually setting the key
> property of
> s:checkbox tag with skillCode?
> 
> 
> Emil.I wrote:
>> 
>> Hello,
>> i iterate through a set and for 'key' i want to use the property of an
>> iterable element. eg:
>> 
>> 
>> 
>> 
>> 
>> skillCode is a string property of Skill object and i want it to be
>> assigned to skill property
>> of the s:checkbox tag. What is the syntax?
>> 
>> 
>> 
>> 
> 
> -- 
> View this message in context:
> 
http://www.nabble.com/key-property-of-s%3Acheckbox-tag-tp16241092p16256658.htm>
l
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts 2 jsf plugin problem

2008-03-24 Thread Randy Burgess
I would take everything out of your JSF page and then start adding things in
one by one until you find what is causing the missing the property editor
error.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Daniel <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Sat, 22 Mar 2008 22:53:09 +0200
> To: Struts Users Mailing List 
> Subject: Re: struts 2 jsf plugin problem
> 
> At first i have tried to make the portlet only with JSF. Unfortunately
> Weblogic has some problems , many problems, it's the first time when i use
> weblogic and it's not worthing it's money. After i failed making the portlet
> with pure JSF i said to make a try with struts 2 and jsf plugin. Using this
> method i have reached far than using pure JSF. I will try more to see if
> there is any hope with this solution.
> 
> On Fri, Mar 21, 2008 at 5:55 PM, Nils-Helge Garli Hegvik <[EMAIL PROTECTED]>
> wrote:
> 
>> Sorry, no clue. As I said, I have no idea if this combination will
>> work at all. Maybe someone with JSF experience can point out what's
>> wrong. At least it looks like the portlet dispatcher has been able to
>> execute the action, but it's failing with the JSF result.
>> 
>> You might want to consider creating your portlet with either JSF or
>> Struts 2 instead of combining them both.
>> 
>> Nils-H
>> 
>> On Fri, Mar 21, 2008 at 1:55 PM, Daniel <[EMAIL PROTECTED]> wrote:
>>> I've done what you have said, unfortunately without results.  I still
>>>  receive  index.jsp:16:26: No property editor found for the bean "
>>>  javax.el.ValueExpression".
>>> 
>>>  Any other ideas?
>>> 
>>> 
>>>  On Thu, Mar 20, 2008 at 12:43 PM, Nils-Helge Garli Hegvik <
>> [EMAIL PROTECTED]>
>>>  wrote:
>>> 
>>> 
>>> 
>>>> First of all, I'm not even sure if it's possible to use the portlet
>>>> and the jsf plugin at the same time. I have not tried, but there
>> might
>>>> be issues with it if they try to do conflicting things in the
>>>> interceptors and the results.
>>>> 
>>>>>  struts.xml
>>>>> 
>>>>>  >>> namespace="/view">
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> /WEB-INF/jsp/view/index.jsp
>>>>> 
>>>>> 
>>>>> 
>>>> 
>>>> A couple of things here. You're extending portlet-jsf-default, which
>>>> still has the jsfStack as the default interceptor ref. Since you have
>>>> defined a "jsf" package that extends "portlet-jsf-default", you
>> should
>>>> probably extend the "jsf" package instead. However, it's probably
>> just
>>>> as easy configuring the correct interceptor stack and default
>>>> interceptor ref right there in the "portlet-jsf-default" package. In
>>>> addition, you're overriding the default interceptor stack in your
>>>> action definition, so it's not really using the portletDefaultStack,
>>>> even if you had configured your default interceptor stack correctly.
>>>> Unless you need to use different interceptors in your action, there's
>>>> no need configuring those interceptor-refs there.
>>>> 
>>>> You could also try swapping the order of the portletDefaultStack and
>>>> the jsfStack and see if that makes a difference.
>>>> 
>>>> Nils-H
>>>> 
>>> 
>>> 
>>>> -
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>> 
>>>> 
>>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts 2 jsf plugin problem

2008-03-19 Thread Randy Burgess
It seems to me that you will need to create an interceptor stack that has
both portlet support and jsf support. Even though your package extends
struts-portlet-default the action in question does not since you have
defined interceptors specifically for the action.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Daniel <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Wed, 19 Mar 2008 17:29:25 +0200
> To: Struts Users Mailing List 
> Subject: Re: struts 2 jsf plugin problem
> 
> My last attempt was like this :
> 
> 
> 
> 
> 
>  type="jsf">/WEB-INF/jsp/view/index.jsp
>  
> 
> 
> This didn't worked either. I have no problems when i am using pure struts 2
> portlet support. I have problems when i try to integrate the JSF plugin
> support. When i am using only the portlet support without any other plugins
> the portlet is shown.
> 
> On Wed, Mar 19, 2008 at 5:05 PM, Randy Burgess <[EMAIL PROTECTED]> wrote:
> 
>> The problem is with line 10 starting somewhere around character 64. This
>> doesn't look good to me:
>> 
>> 
>>> 
>>> 
>>> 
>>> index
>> 
>> The result named index redirects back to the same action, a potential
>> circular reference. You also have removed the struts-portlet-default
>> interceptors from this action by specifying the interceptors specifically
>> *for* this action.
>> 
>> See the portlet tutorial at
>> http://struts.apache.org/2.x/docs/struts-2-portlet-tutorial.html.
>> 
>> Regards,
>> Randy Burgess
>> Sr. Web Applications Developer
>> Nuvox Communications
>> 
>> 
>> 
>>> From: Daniel Posirca <[EMAIL PROTECTED]>
>>> Reply-To: Struts Users Mailing List 
>>> Date: Wed, 19 Mar 2008 16:11:17 +0200
>>> To: 
>>> Subject: struts 2 jsf plugin problem
>>> 
>>> Hello, i am new to this list. I am trying to develop an application
>> based on
>>> struts 2 + jsf plugin + portlet. I am using struts 2 support for
>> portlet. As
>>> appl server i am using weblogic.
>>> Now i have reached a point were i am getting an error, but i have no
>> idea
>>> how to pass it. I have managed to make the portlet working in weblogic
>> but
>>> when a try to add the jsf support i get stuck. Here are my files :
>>> 
>>> web.xml
>>> 
>>> 
>>> > 2.3
>>> //EN"
>>> "http://java.sun.com/dtd/web-app_2_3.dtd";>
>>> 
>>> 
>>> 
>>> faces
>>> javax.faces.webapp.FacesServlet
>>> 1
>>> 
>>> 
>>> JspSupportServlet
>>> org.apache.struts2.views.JspSupportServlet
>>> 
>>> 1
>>> 
>>> 
>>> 
>>> 
>>> 
>>> faces
>>> *.action
>>> 
>>> 
>>> 
>>> 
>>> portlet.xml
>>> 
>>> 
>>> 
>>> >> version="1.0"
>>> xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd";
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>> xsi:schemaLocation="
>>> http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd
>>> http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd";
>>> id="bookmark-portlet">
>>> 
>>> 
>>> Simple hello world portlet
>>> StrutsDocumentPortlet
>>> StrutsDocumentPortlet
>>> 
>>> 
>>> org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher
>>> 
>>> 
>>> 
>>> viewNamespace
>>> /view
>>> 
>>> 
>>>  
>>> 
>>> defaultViewAction
>>> index
>>> 
>>> 
>>> 
>>> 
>>> editNamespace
>>> /edit
>>> 
>>> 
>>>  
>>> 
>>> defaultEditAction
>>> index!input
>>> 
>>> 
>>> 0
>>> 
>>> 
>>> text/html
>>> view
>>> edit
>>&g

Re: struts 2 jsf plugin problem

2008-03-19 Thread Randy Burgess
The problem is with line 10 starting somewhere around character 64. This
doesn't look good to me:


> 
> 
> 
> index

The result named index redirects back to the same action, a potential
circular reference. You also have removed the struts-portlet-default
interceptors from this action by specifying the interceptors specifically
*for* this action.

See the portlet tutorial at
http://struts.apache.org/2.x/docs/struts-2-portlet-tutorial.html.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Daniel Posirca <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Wed, 19 Mar 2008 16:11:17 +0200
> To: 
> Subject: struts 2 jsf plugin problem
> 
> Hello, i am new to this list. I am trying to develop an application based on
> struts 2 + jsf plugin + portlet. I am using struts 2 support for portlet. As
> appl server i am using weblogic.
> Now i have reached a point were i am getting an error, but i have no idea
> how to pass it. I have managed to make the portlet working in weblogic but
> when a try to add the jsf support i get stuck. Here are my files :
> 
> web.xml
> 
> 
>  //EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd";>
> 
> 
> 
> faces
> javax.faces.webapp.FacesServlet
> 1
> 
> 
> JspSupportServlet
> org.apache.struts2.views.JspSupportServlet
> 
> 1
> 
> 
> 
> 
> 
> faces
> *.action
> 
> 
> 
> 
> portlet.xml
> 
> 
> 
>  version="1.0"
> xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="
> http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd
> http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd";
> id="bookmark-portlet">
> 
> 
> Simple hello world portlet
> StrutsDocumentPortlet
> StrutsDocumentPortlet
> 
> 
> org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher
> 
> 
> 
> viewNamespace
> /view
> 
> 
>  
> 
> defaultViewAction
> index
> 
> 
> 
> 
> editNamespace
> /edit
> 
> 
>  
> 
> defaultEditAction
> index!input
> 
> 
> 0
> 
> 
> text/html
> view
> edit
> 
> 
> 
> 
> 
> HelloPortlet
> HelloPortlet
> struts 2,portlet,hello,world
> 
> 
> 
> 
> 
> struts.xml
> 
> 
>  "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
> "http://struts.apache.org/dtds/struts-2.0.dtd";>
> 
> 
> 
>  namespace="/view">
> 
> 
> 
> 
> index
> /WEB-INF/jsp/view/index.jsp
> 
> 
> 
> 
> 
> 
> 
> index
> view
> 
> /WEB-INF/jsp/edit/index.jsp
> 
> 
> 
> 
> 
> struts-jsf.xml
> 
>  "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
> "http://struts.apache.org/dtds/struts-2.0.dtd";>
> 
>   
> 
>   
>/>
>   
> 
> 
>   
> 
> 
> 
>   
> 
> 
> 
> 
>   
> 
> 
> 
> 
> When i am loading the portlet in browser i get this error (the error is not
> thrown into the weblogic console, i see this error in the portlet window).
> 
> 
> 
> 
> 
> javax.portlet.PortletException
> at 
> com.bea.portlet.container.PortletStub.getPortletInstance(PortletStub.java:645)
> 
> at com.bea.portlet.container.PortletStub.init(PortletStub.java:190)
> at com.bea.portlet.container.AppContainer.invokeRender(AppContainer.java:637)
> 
> at com.bea.netuix.servlets.controls.content.JavaPortletContent.fireRender(
> JavaPortletContent.java:208)
> at
> com.bea.netuix.servlets.controls.content.JavaPortletContent.renderInternal(
> JavaPortletContent.java:127)
> at com.bea.netuix.servlets.controls.content.JavaPortletContent.beginRender(
> JavaPortletContent.java:83)
> at com.bea.netuix.nf.ControlLifecycle$7.visit(Co

Re: not interpreted

2008-03-19 Thread Randy Burgess
Since 2.0.11. But you can still use it outside of Struts tags.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: GF <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Wed, 19 Mar 2008 15:09:16 +0100
> To: Struts Users Mailing List 
> Subject: Re:  not interpreted
> 
> I noticed that since some version of Struts2 it is now forbidden inside > tag attributes.. right?
> 
> On Wed, Mar 19, 2008 at 2:54 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> 
>> --- GF <[EMAIL PROTECTED]> wrote:
>>> Is this the standard JSP syntax?
>> 
>> JSP 2.0 EL.
>> 
>> Dave
>> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: not interpreted

2008-03-19 Thread Randy Burgess
It is standard Expression Language (EL), which is much preferred over
scriptlets.  

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: GF <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Wed, 19 Mar 2008 14:44:08 +0100
> To: Struts Users Mailing List 
> Subject: Re:  not interpreted
> 
> Is this the standard JSP syntax?
> 
> On Mon, Mar 17, 2008 at 3:08 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> 
>> --- GF <[EMAIL PROTECTED]> wrote:
>>>> ...unless you use the XML syntax available from JSP 2.0 and later ;-)
>>> And in this case, how can you resolve the 
>> 
>> Dave
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: More WebLogic troubles.

2008-03-18 Thread Randy Burgess
On 9.2.1 and 9.2.2 I use

classpath:applicationContext.xml
/WEB-INF/spring/otherAppContext.xml

That is a space between the context file names. I don't use wildcards
because I have contexts that I don't want loaded in WL.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Alex Shneyderman <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 18 Mar 2008 12:58:13 +0100
> To: Struts Users Mailing List 
> Subject: Re: More WebLogic troubles.
> 
> Well upon further investigation ... the following does not work on WL
> but works on jetty
> 
> 
> 
> contextConfigLocation
> classpath*:applicationContext*.xml
> 
> 
>
> org.springframework.web.context.ContextLoaderListener r-class>
> 
> 
> WL becomes happy if this is specified:
> 
> 
> 
> contextConfigLocation
> /WEB-INF/applicationContext.xml
> 
> 
>
> org.springframework.web.context.ContextLoaderListener r-class>
> 
> 
> The first is the sample from archetype. So, does anyone know why WL is
> this retarded and how to make it load ctx from the classpath ?
> 
> Alex.
> 
> On Tue, Mar 18, 2008 at 12:05 PM, Alex Shneyderman
> <[EMAIL PROTECTED]> wrote:
>> It seems that anything I do today with WL and struts 2 does not seem
>>  to be working :-(
>> 
>>  So, now I have an interceptor (S2 interceptor). I would like to wire a
>>  spring managed service on it. So, I use spring plugin + autowire by
>>  name convention. There is nothing fancy  really just a declaration.
>>  but when I run the application in my local jetty setup everything
>>  works normally. I deploy to local WLS (but I do not think this would
>>  be anything different if I deployed remotely) The service does not get
>>  autowired.
>> 
>>  Anyone has a clue as to what's wrong with this?
>> 
>>  I setup my WL server to prefer classes and libs in WEB-INF so the
>>  classloading issues that might be should not be a problem. There is
>>  something that WL does that seems unconventional I wonder if anyone
>>  had similar experiences and what you guys were doing to tame the beast
>>  ?
>> 
>>  Thanks,
>>  Alex.
>> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to initialize business service objects?

2008-03-17 Thread Randy Burgess
You also need to setup your action in the application context so that Spring
knows where to inject the business object. Your class name in the Struts
action also needs to be the *bean id of the action* so that the
Struts/Spring plugin can do it's work. So assuming you have a setter for
DispatcherService in CustomerAction your struts.xml would look like this.

> 
> 
> 
> 
> 
> /CustomerLogin.jsp
> /CustomerChat.jsp
> 
...

Application context:
...




Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Frank Fischer <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Mon, 17 Mar 2008 17:08:30 +0100
> To: 'Struts Users Mailing List' 
> Subject: RE: How to initialize business service objects?
> 
> 
> Hi all 
> 
> first i'd like to thank all of you that have given me valuable feedback to
> my question. 
> 
> Following the answers from Dave and Jeromy i decided to go the "hard" way
> with Spring and DI. After reading some manuals (thanks to GF, good reading)
> i managed to load the Spring ContextLoaderListener and even define an POJO
> bean that serves as my BusinessLogicService. From the Tomcat logs i can see
> that an instance of that Service is created.
> 
> As far as i read/unterstood, i now would only have to create a setter method
> on my Action class and Spring then would automatically inject the related
> dependcy to my Action class. So far, this doesn't seem to work, so i guess,
> i must be missing something.
> 
> My applicationContext.xml looks quite simple (and seems to work, since the
> DispatcherService is created on startup):
> 
> ---
> 
>  "http://www.springframework.org/dtd/spring-beans.dtd";>
> 
>  class="com.demo.businesslogic.DispatcherService"/>
> 
> ---
> 
> The Struts config looks like:
> 
> ---
> 
>  Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd";>
> 
> 
> 
> 
> 
> 
> /CustomerLogin.jsp
> /CustomerChat.jsp
> 
> 
>  class="com.demo.CustomerAction">
> /CustomerLogin.jsp
> /CustomerLogin.jsp
> 
> 
> 
> /CustomerChat.jsp
> 
> 
> 
> 
> 
> 
> ---
> 
> So i guess, i must be missing something. Is there a way i would have to tell
> Spring which Action classes to inject?
> 
> Thanks a lot for your help
> Frank
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to initialize business service objects?

2008-03-13 Thread Randy Burgess
For a POJO you can use dependency injection such as Spring or Guice or you
can instantiate the object the normal way

BusinessServiceObject bso = new BusinessServiceObject();

in your action class. There is nothing special about accessing your BSO's in
Struts.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Frank Fischer <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Thu, 13 Mar 2008 22:32:34 +0100
> To: 
> Subject: How to initialize business service objects?
> 
> Hi all
>  
> i'm just starting with struts2 (even with struts at all). Of course i first
> read some how-to-starts. But there is one thing i don't understand.
>  
> I'm trying to create a simple little chat app. I have two action classes,
> one for the normal chat user, one for the moderators. Both classes need
> access to the same instances of business service classes which mainly hold
> runtime data such as a list of users currently logged in, list of chat rooms
> and so on.
>  
> Now i don't understand (1) where to create/initialize these business logic
> classes and (2) how to get access to them from the action classes.
>  
> I'm very thankful for any hint.
>  
> Thanks a lot
> Frank



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Business object in the action form?

2008-03-12 Thread Randy Burgess
The action form should only be used for transferring values between the
different MVC layers.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: "Zhang, Larry (L.)" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Wed, 12 Mar 2008 09:23:28 -0400
> To: Struts Users Mailing List 
> Subject: RE: Business object in the action form?
> 
> Thanks, but it didn't say that whether it is appropriate to put the bo
> inside action form. Any more relevant website?
> 
> -Original Message-
> From: Randy Burgess [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 11, 2008 5:20 PM
> To: Struts Users Mailing List
> Subject: Re: Business object in the action form?
> 
> I wouldn't put a DAO or a business object there. Here is a good example.
> 
> http://struts.apache.org/1.x/faqs/actionForm.html
> 
> Regards,
> Randy Burgess
> Sr. Web Applications Developer
> Nuvox Communications
> 
> 
> 
>> From: "Zhang, Larry (L.)" <[EMAIL PROTECTED]>
>> Reply-To: Struts Users Mailing List 
>> Date: Tue, 11 Mar 2008 11:33:28 -0400
>> To: Struts Users Mailing List 
>> Subject: Business object in the action form?
>> 
>> I have a question regarding ActionForm... Is it a good idea to place
> the
>> Business Object in the action form? In my project, I do put the Data
>> transfer object into the action form, but I am not certain if this is
> a
>> good idea to put the business object as well into the action form. See
>> the following link to understand what the business object is.
>> 
>> Thanks a lot.
>> 
>> 
>> 
> http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObjec
>> t.html  
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
> 
> 
> 
> This email and any attachments ("Message") may contain legally
> privileged and/or confidential information.  If you are not the
> addressee, or if this Message has been addressed to you in error, you
> are not authorized to read, copy, or distribute it, and we ask that you
> please delete it (including all copies) and notify the sender by return
> email.  Delivery of this Message to any person other than the intended
> recipient(s) shall not be deemed a waiver of confidentiality and/or a
> privilege.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Business object in the action form?

2008-03-11 Thread Randy Burgess
I wouldn't put a DAO or a business object there. Here is a good example.

http://struts.apache.org/1.x/faqs/actionForm.html

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: "Zhang, Larry (L.)" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 11 Mar 2008 11:33:28 -0400
> To: Struts Users Mailing List 
> Subject: Business object in the action form?
> 
> I have a question regarding ActionForm... Is it a good idea to place the
> Business Object in the action form? In my project, I do put the Data
> transfer object into the action form, but I am not certain if this is a
> good idea to put the business object as well into the action form. See
> the following link to understand what the business object is.
> 
> Thanks a lot.
> 
> 
> http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObjec
> t.html  
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: STRUTS 2: Possible to have two actions called from one JSP?

2008-03-06 Thread Randy Burgess
I have a JSP with 2 different forms and different params and they call
different action classes with no problems. In my case the functionality was
similar and creating 2 different pages for it was unnecessary. This page has
a view/edit/delete account form and a create new account form.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: mojoRising <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Thu, 6 Mar 2008 12:29:42 -0800 (PST)
> To: 
> Subject: STRUTS 2: Possible to have two actions called from one JSP?
> 
> 
> I am wondering whether it is possible, and or a good idea, to have two (or
> more) struts forms - each calling a DIFFERENT action - on the same JSP?
> 
> Would each action have to have the same parameters? Would there be
> conflicts? Is this a bad idea?
> 
> I could stick to one action, but then I would have some unneccessary methods
> firing off (in the prepare sequence) when the second form was submitted.
> 
> Any advice greatly appreciated. Thanks
> John
> -- 
> View this message in context:
> http://www.nabble.com/STRUTS-2%3A-Possible-to-have-two-actions-called-from-one
> -JSP--tp15883235p15883235.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts1 forms with empty Strings

2008-02-29 Thread Randy Burgess
Since Strings are immutable you get a new String whenever an operation is
performed on said String, so that seems to me that you would still get the
empty string.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Dave Newton <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Fri, 29 Feb 2008 12:53:36 -0800 (PST)
> To: Struts Users Mailing List 
> Subject: Re: Struts1 forms with empty Strings
> 
> --- Martin Gainty <[EMAIL PROTECTED]> wrote:
>> //easiest solution would be to set all the attribute default values to null
> 
> Isn't that the default value for a String field? [1]
> 
> Does this prevent and empty value from the HTML form being set on the
> ActionForm?
> 
> Dave
> 
> [1] http://java.sun.com/docs/books/tutorial/java/nutsandbolts/datatypes.html
> 
>> e.g.
>> public class TestFormBean extends ActionForm
>> {
>> private String   stringProperty=null;
>> private Object[] arrayProperty=null;
>> 
>> public  String   getStringProperty()
>>{
>>  return (stringProperty);
>> }
>> public  void   setStringProperty(String stringProperty)
>> {
>>   this.stringProperty = stringProperty;
>> }
>> 
>> public  Object[] getArrayProperty()
>>{
>>  return (arrayProperty);
>> }
>> public  void setArrayProperty(Object[] arrayProperty)
>> {
>>   this.arrayProperty = arrayProperty;
>> }
>> }
>> 
>> - Original Message -
>> From: "Andy" <[EMAIL PROTECTED]>
>> 
>> I was wondering if there is a way to configure Struts1 so Form beans return
>> null values instead of empty String values when a user does not enter data
>> in a text field, for example.  The problem is that Hibernate then saves
>> empty Strings to the database instead of nulls.  I would like to configure
>> something globally if possible.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: expression validator

2008-02-29 Thread Randy Burgess
One of the things I love about Struts is that you get validation without
writing any real validation code. Admittedly it would be nice if you got
client side validation for expressions. As you know you can create a custom
validator and for the client side stuff you would have to edit
form-close-validate.ftl in the xhtml template. String matching javascript is
trivial to write.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: mojoRising <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Fri, 29 Feb 2008 06:55:51 -0800 (PST)
> To: 
> Subject: Re: expression validator
> 
> 
> Thanks. But I still don't understand...According to the link you mentioned it
> is not possible to do what I was trying to. So, what is the point of this
> validator if it doesn't do client side validation? And, are you saying that
> it is not possible to do a simple 'equals' test in client side validation?
> 
>  password.equals(password2)
> Passwords do not match
> 
> 
> 
> 
> 
> 
> That validator doesn't do client side validation.
> 
> Only the following validators are supported:
> 
> * required validator
> * requiredstring validator
> * stringlength validator
> * regex validator
> * email validator
> * url validator
> * int validator
>     * double validator
> 
> http://struts.apache.org/2.0.11/docs/pure-javascript-client-side-validation.
> html
> 
> Regards,
> Randy Burgess
> Sr. Web Applications Developer
> Nuvox Communications
> -- 
> View this message in context:
> http://www.nabble.com/expression-validator-tp15746472p15760197.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts serving both HTML requests and web service?

2008-02-28 Thread Randy Burgess
If you have shared functionality then it sounds like a good candidate for
web services. I wouldn't do the shared JAR deal.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: "Allen, Daniel" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Thu, 28 Feb 2008 16:59:03 -0500
> To: Struts Users Mailing List 
> Subject: RE: Struts serving both HTML requests and web service?
> 
> Well, the same application is now expected to talk to the public at
> large via a web site and also provide updates about their interactions
> to an internal web site. So, I do need to expose some sort of web
> service. It will actually be different business logic, but it will refer
> to a lot of the same classes, the same database access, etc. Are you
> saying that you think it would make more sense to just refactor that
> into a separate shared JAR and then have three projects, Struts, Shared,
> and WebService (possibly running CXF on the last)?
> 
> Thanks for the advice,
> ~Dan
> 
> -Original Message-
> From: Randy Burgess [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 28, 2008 4:49 PM
> To: Struts Users Mailing List
> Subject: Re: Struts serving both HTML requests and web service?
> 
> That thread was about exposing business logic used in a S2 app as web
> services for use in other applications. If you are interested in web
> services then the CXF site is a good place to start. Personally I
> wouldn't
> go to the trouble of creating web services just to use them in an S2 web
> app. 
> 
> There is an STP Eclipse plugin that will work with CXF but AFAIK there
> is no
> direct integration between CXF and Struts 1/2.
> 
> http://incubator.apache.org/cxf/
> 
> Regards,
> Randy Burgess
> Sr. Web Applications Developer
> Nuvox Communications
> 
> 
> 
>> From: "Allen, Daniel" <[EMAIL PROTECTED]>
>> Reply-To: Struts Users Mailing List 
>> Date: Thu, 28 Feb 2008 14:20:54 -0500
>> To: Struts Users Mailing List 
>> Subject: Struts serving both HTML requests and web service?
>> 
>> I saw a thread go by while back about Struts and web services, and
>> someone suggested Spring and CXF. I've got Spring integrated into my
>> Struts (2.0.11) application, but I'm not familiar with CXF at all, nor
>> have I actually ever put together a web service before.
>> 
>> Does anyone know of a good guide to integrating those, or an example?
> Is
>> there a CXF struts plugin? I mostly need the really basic stuff, like
>> the result type for a struts action that would be accessed as a web
>> service. (Or should I just have a separate servlet running on the same
>> server?)
>> 
>> I know this is a very general question, but anything will help.
>> Thanks,
>> ~Dan
>> 
>> -- 
>> This message may contain confidential, proprietary, or legally
> privileged
>> information. No confidentiality or privilege is waived by any
> transmission to
>> an unintended recipient. If you are not an intended recipient, please
> notify
>> the sender and delete this message immediately. Any views expressed in
> this
>> message are those of the sender, not those of any entity within the
> KBC
>> Financial Products group of companies (together referred to as "KBC
> FP").
>> 
>> This message does not create any obligation, contractual or otherwise,
> on the
>> part of KBC FP. It is not an offer (or solicitation of an offer) of,
> or a
>> recommendation to buy or sell, any financial product. Any prices or
> other
>> values included in this message are indicative only, and do not
> necessarily
>> represent current market prices, prices at which KBC FP would enter
> into a
>> transaction, or prices at which similar transactions may be carried on
> KBC
>> FP's own books. The information contained in this message is provided
> "as is",
>> without representations or warranties, express or implied, of any
> kind. Past
>> performance is not indicative of future returns.
>> 
> 
> 
> 
> This email and any attachments ("Message") may contain legally
> privileged and/or confidential information.  If you are not the
> addressee, or if this Message has been addressed to you in error, you
> are not authorized to read, copy, or distribute it, and we ask that you
> please delete it (including all copies) and notify the sender by return
> email.  Delivery of this Message to any person other than the intended
> recipient(s) shall not be deemed a waiver of confidentiality and/or a
> privilege.
> 
> 

Re: expression validator

2008-02-28 Thread Randy Burgess
That validator doesn't do client side validation.

Only the following validators are supported:

* required validator
* requiredstring validator
* stringlength validator
* regex validator
* email validator
* url validator
* int validator
* double validator

http://struts.apache.org/2.0.11/docs/pure-javascript-client-side-validation.
html

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: mojoRising <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Thu, 28 Feb 2008 14:45:37 -0800 (PST)
> To: 
> Subject: Re: expression validator
> 
> 
> Thanks, I confirmed my syntax, and now it does not do any client side
> validation. Do I have this validator in the right place? Here is the
> relevant code from my xml file:
> 
> 
>  "-//OpenSymphony Group//XWork Validator 1.0.2//EN"
> "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
>  password2.equals(password)
>  Password not the same as Confirmed
>  
> 
> 
> 
> 
> 
> 
> From the validator documentation.
> 
>   
>   email.equals(email2)
>   Email not the same as email2
>   
> 
> Regards,
> Randy Burgess
> Sr. Web Applications Developer
> Nuvox Communications
> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/expression-validator-tp15746472p15747878.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: expression validator

2008-02-28 Thread Randy Burgess
>From the validator documentation.

  
  email.equals(email2)
  Email not the same as email2
  

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: mojoRising <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Thu, 28 Feb 2008 13:31:19 -0800 (PST)
> To: 
> Subject: expression validator
> 
> 
> (java - struts 2 - JSP - using xml based validation)
> I am trying to figure out how to do a simple client side validation
> expression, checking that two fields are equal. Could someone help me figure
> this out, I am sure it is very simple but I can't find out what I am
> missing. I keep getting this error:
> 
> SEVERE: The content of element type "field" must match "(field-validator)+".
> at (null:46:13)
> org.xml.sax.SAXParseException: The content of element type "field" must
> match "(field-validator)+".
> 
> The two fields I am checking are password and password2. They are defined in
> my validation xml as:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> password.equals(password2)
> Passwords do not match
>  
> 
> 
> I also tried these two variations:
> 
>  
> 
> Passwords do not match
>  
> 
> And:
> 
>  
> password == password2
> Passwords do not match
>  
> -- 
> View this message in context:
> http://www.nabble.com/expression-validator-tp15746472p15746472.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts serving both HTML requests and web service?

2008-02-28 Thread Randy Burgess
That thread was about exposing business logic used in a S2 app as web
services for use in other applications. If you are interested in web
services then the CXF site is a good place to start. Personally I wouldn't
go to the trouble of creating web services just to use them in an S2 web
app. 

There is an STP Eclipse plugin that will work with CXF but AFAIK there is no
direct integration between CXF and Struts 1/2.

http://incubator.apache.org/cxf/

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: "Allen, Daniel" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Thu, 28 Feb 2008 14:20:54 -0500
> To: Struts Users Mailing List 
> Subject: Struts serving both HTML requests and web service?
> 
> I saw a thread go by while back about Struts and web services, and
> someone suggested Spring and CXF. I've got Spring integrated into my
> Struts (2.0.11) application, but I'm not familiar with CXF at all, nor
> have I actually ever put together a web service before.
> 
> Does anyone know of a good guide to integrating those, or an example? Is
> there a CXF struts plugin? I mostly need the really basic stuff, like
> the result type for a struts action that would be accessed as a web
> service. (Or should I just have a separate servlet running on the same
> server?)
> 
> I know this is a very general question, but anything will help.
> Thanks,
> ~Dan
> 
> -- 
> This message may contain confidential, proprietary, or legally privileged
> information. No confidentiality or privilege is waived by any transmission to
> an unintended recipient. If you are not an intended recipient, please notify
> the sender and delete this message immediately. Any views expressed in this
> message are those of the sender, not those of any entity within the KBC
> Financial Products group of companies (together referred to as "KBC FP").
> 
> This message does not create any obligation, contractual or otherwise, on the
> part of KBC FP. It is not an offer (or solicitation of an offer) of, or a
> recommendation to buy or sell, any financial product. Any prices or other
> values included in this message are indicative only, and do not necessarily
> represent current market prices, prices at which KBC FP would enter into a
> transaction, or prices at which similar transactions may be carried on KBC
> FP's own books. The information contained in this message is provided "as is",
> without representations or warranties, express or implied, of any kind. Past
> performance is not indicative of future returns.
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Radio button with two boolean choices

2008-02-28 Thread Randy Burgess
Yes it is. Have you tried something like this:
?

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Paranoid_Fabio <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Thu, 28 Feb 2008 09:17:45 -0800 (PST)
> To: 
> Subject: Radio button with two boolean choices
> 
> 
> Hello. I know it's really simple but I cannot make it works.
> What I want to do is to put a radio button with two options, in a form. The
> attribute that will be set by selecting one of the two options is a boolean.
> That's it, simpy a true/false choice.
> 1) Is it possible to declare a static list directly in the JSP without the
> callback to the action to get a Map with such boolean values?
> 
> 2)If it is not possible, how can I do that. I tried to put a
> Map called options in my Action
> and put that in the jsp:
> 
>  name="c_sub"  list="options">
> 
> where c_sub is a the boolean variable I want to set by choosing an option.
> It does not work.
> In the log I get:
> 
> tag 'radio', field 'list', id 'subChoice', name 'c_sub': The requested list
> key 'options' could not be resolved as a
> collection/array/map/enumeration/iterator type. Example: people or
> people.{name} - [unknown location]
> 
> Please help. Thano you very much.
> -- 
> View this message in context:
> http://www.nabble.com/Radio-button-with-two-boolean-choices-tp15741338p1574133
> 8.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HOw to send form parameters to dao in struts2 with hibernate?

2008-02-28 Thread Randy Burgess
If you have your service and DAO defined in a Spring application context you
would normally have the DAO as a property of your service or you would have
a constructor-ref for it. Spring has to be bootstrapped somehow so use
either the spring plugin and define your action as a spring bean and
reference the service bean as a property of your action or you need to
instantiate Spring using ClassPathXmlApplicationContext or one of the other
Spring context objects.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: RajiR <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Wed, 27 Feb 2008 22:23:26 -0800 (PST)
> To: 
> Subject: HOw to send form parameters to dao in struts2 with hibernate?
> 
> 
>  Hi,
> 
> By implementing Preparable,ModelDriven,ServletRequestAware interfaces,am
> able to get the form details and sent those details to service
> implementation layer from an action class.From service implementation i have
> called dao.Since DAO is not injected any where in struts.xml,its throwing
> nullpointerexception.I have used only hibernate.Is it required to use
> springs inorder to inject dao?Or,can I inject using hibernate and struts2
> alone??
> 
> And what is the use of interceptor concept?Does it help to do dao injection
> without using spring?If so,how to use it?
> 
> Plzzz reply as early as possible...
> 
> Thanks.
> 
> -- 
> View this message in context:
> http://www.nabble.com/HOw-to-send-form-parameters-to-dao-in-struts2-with-hiber
> nate--tp15730459p15730459.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2 Custom Validation

2008-02-27 Thread Randy Burgess
This is server side though so it may not be what you need. You will need
your own javascript for the client as it is not generated for this
validator.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Randy Burgess <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Wed, 27 Feb 2008 09:48:57 -0500
> To: Struts Users Mailing List 
> Subject: Re: Struts 2 Custom Validation
> 
> You mean a form with a password field and a confirm password field and
> validation that they match?
> 
> @FieldExpressionValidator(expression = "confirmPwd.equals(pwd)", message =
> "Passwords do not match.")
> 
> In this case I have 2 fields, one named pwd and one named confirmPwd. I put
> this validation on the setter for confirmPwd along with a
> @RequiredStringValidator for both.
> 
> Regards,
> Randy Burgess
> Sr. Web Applications Developer
> Nuvox Communications
> 
> 
> 
>> From: Thaminda Karunanayake <[EMAIL PROTECTED]>
>> Reply-To: Struts Users Mailing List 
>> Date: Wed, 27 Feb 2008 16:48:05 +0530
>> To: 
>> Subject: Struts 2 Custom Validation
>> 
>> Hi all,
>> 
>> 
>> 
>> Can someone tell me how to achieve client side validation in struts 2 with
>> custom validators
>> 
>> It seems that password conformation in client side is not possible with the
>> provided validators in struts 2.
>> If we are to write a new validator in struts 2, what are the steps that we
>> have to follow?
>> 
>> 
>> 
>> 
>> Thanks...
>> Thaminda
> 
> 
> 
> This email and any attachments ("Message") may contain legally privileged
> and/or confidential information.  If you are not the addressee, or if this
> Message has been addressed to you in error, you are not authorized to read,
> copy, or distribute it, and we ask that you please delete it (including all
> copies) and notify the sender by return email.  Delivery of this Message to
> any person other than the intended recipient(s) shall not be deemed a waiver
> of confidentiality and/or a privilege.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2 Custom Validation

2008-02-27 Thread Randy Burgess
You mean a form with a password field and a confirm password field and
validation that they match?

@FieldExpressionValidator(expression = "confirmPwd.equals(pwd)", message =
"Passwords do not match.")

In this case I have 2 fields, one named pwd and one named confirmPwd. I put
this validation on the setter for confirmPwd along with a
@RequiredStringValidator for both.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Thaminda Karunanayake <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Wed, 27 Feb 2008 16:48:05 +0530
> To: 
> Subject: Struts 2 Custom Validation
> 
> Hi all,
> 
> 
> 
> Can someone tell me how to achieve client side validation in struts 2 with
> custom validators
> 
> It seems that password conformation in client side is not possible with the
> provided validators in struts 2.
> If we are to write a new validator in struts 2, what are the steps that we
> have to follow?
> 
> 
> 
> 
> Thanks...
> Thaminda



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java.util.ConcurrentModificationException at IteratorComponent

2008-02-26 Thread Randy Burgess
Or just use a Vector instead of an ArrayList, which is synchronized.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Eduardo Dela Rosa <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Wed, 27 Feb 2008 09:59:25 +1100
> To: Struts Users Mailing List 
> Subject: Re: java.util.ConcurrentModificationException at IteratorComponent
> 
> You are right there. And I guess the best way to rid this exception then is
> to have the code part in synchronized block, i.e., synchronizing on the list
> object itself + get the iterator + invoke either "add" or "remove" inside
> the block. This will hurt the performance a bit BUT will preserve the
> integrity of the content of the list.
> 
> On Wed, Feb 27, 2008 at 9:50 AM, Dave Newton <[EMAIL PROTECTED]> wrote:
> 
>> --- Eduardo Dela Rosa <[EMAIL PROTECTED]> wrote:
>>> Also, you must be removing or updating object directly inside your list
>>> object which is why you're getting this error. Try to get a reference to
>>> Iterator from your ArrayList object and invoke "remove" or "add" methods
>>> via the Iterator to get away from the ConcurrentModificationException.
>> 
>> Strictly speaking I don't believe that's necessarily true; one can get a
>> ConcurrentModificationException depending on how a map object is accessed
>> in
>> the iterator.
>> 
>> (Not totally relevant since we're talking about lists, but thought I'd
>> throw
>> that out there.)
>> 
>> Dave
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
> 
> 
> -- 
> Eduardo Dela Rosa



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2 and SOA

2008-02-26 Thread Randy Burgess
> From: Richard Sayre <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 26 Feb 2008 15:32:56 -0330
> To: Struts Users Mailing List 
> Subject: Re: Struts 2 and SOA
> 
> Ok.  All of my actions call my DAOs for their logic.  Most of my
> actions look like this:
> 
> 
>  public String myActionMethod() {
> 
>myDAO.getARecord();
> 
>   //populate the action with record fields (will be displayed on a
> form or table etc)
> 
>   if (someField = Status.EDIT && user.hasFullAccess() ) {
> 
> fullAccess = true;
> 
>   } else {
> readOnly = true;
>   }
> 
> }
> 
> The most 'busniess logic' that my action contains is setting
> variables based on database information (fullAccess or readOnly).  Im
> not sure if this should be moved out of here and into the DAO or not.
> also might have a save() method that determines if I should call add
> or update on my DAO.
> 

Are fullAccess or readOnly used in your view? How would you expose them if
you put them in a service layer? If they are used in the view then it seems
to me like they have nothing to do with the service and shouldn't be there.
Maybe  an interceptor would be a better idea if this logic is sprinkled
throughout your S2 application.

> So, would I expose my DAO as a service?  Is this a good Idea?  DO I
> need to add another layer (POJO) or would that be overkill?  If I do
> have some security logic in my Action, should this be moved to a POJO
> that calls the dao and set up its own members, isReadOnly, hasAccess
> etc.  I also do some data validation in my action, ie I check to see
> if the data passed to my action is allowed to be accessed by that user
> (this aviods URL rewrting and re writing POST data with proxy
> servers).  So I get an id of something the uesr wants to access and I
> make sure that user is allowed to access it.  Should this be moved out
> of the action?  Did I make a mistake putting it there?  If so I
> imagine putting this logic in to a POJO  which controlla access to the
> DAO, then the action calls the POJO or web service.  I guess then the
> POJO and DAO become my Model and no busniess logic is in the action at
> all.  Now that I think about it,  this seems like a good idea.  I was
> new to MVC when I was thrown into Struts 2 so hopefully this misake
> does nto ccost me too much time.   If I do this, (Action -> POJO ->
> DAO) then I would expose the POJO as the web service?
> 
> Thank you for your input,
> 
> Rich
>

I recommend checking Amazon for books on SOA or checking out some of the
excellent web sites devoted to it. I googled and came up with this, which
looks pretty good for a start. This is a huge topic in and of itself but it
doesn't really have anything to do with Struts.

http://java.sun.com/developer/technicalArticles/WebServices/soa3/

Randy
 
> 
> On Tue, Feb 26, 2008 at 3:05 PM, Randy Burgess <[EMAIL PROTECTED]> wrote:
>>> From: Richard Sayre <[EMAIL PROTECTED]>
>>> Reply-To: Struts Users Mailing List 
>>> Date: Tue, 26 Feb 2008 14:08:18 -0330
>> 
>>> To: Struts Users Mailing List 
>>> Subject: Re: Struts 2 and SOA
>>> 
>> 
>>> Could you elaborate a bit.  Would the POJO contain the Business logic
>>> for calling My DAO and other classes?  Would the POJO replace the
>>> action functionality?  Then my action would use a POJO to do all of
>>> the work?  So any logic in MyAction.save() would go into POJO.save()
>>> which would then be called form my action?  That way My POJO could be
>>> accessed from my struts application and any other clients that need it
>>> functionality?  I dont see any need for .NET interoperability in the
>>> future, but it would hurt to have that option.  The main reason for
>>> this is we are designing a new J2EE Application seprate from our
>>> current system.  In the future we want to beable to access certian
>>> functionality of each of these systems.  So System A will be asking
>>> System B for info and doing some work based on that info.
>> 
>>  What you are describing here is essentially the standard MVC pattern. The
>>  business object doesn't have to be a POJO. In general there should be no
>>  business logic in your action, it should be in some external class such as a
>>  POJO, EJB or web service of some sort.
>> 
>>  Randy
>> 
>> 
>> 
>> 
>> 
>>  This email and any attachments ("Message") may contain legally privileged
>> and/or confidential information.  If you are not the addressee, or if this
>> Message has been addressed to you in error, you are not authorized

Re: java.util.ConcurrentModificationException at IteratorComponent

2008-02-26 Thread Randy Burgess
I believe this exception occurs when you try and modify an ArrayList while
iterating over said list. ArrayList is not thread safe.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Othon Reyes Sanchez <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 26 Feb 2008 12:39:40 -0600
> To: 
> Subject: java.util.ConcurrentModificationException at IteratorComponent
> 
> I get the following exception when i do some stress test with jmeter.
>> java.util.ConcurrentModificationException
>>   at java.util.AbstractList$Itr.checkForComodification(Unknown Source)
>>   at java.util.AbstractList$Itr.next(Unknown Source)
>>   at org.apache.struts2.components.IteratorComponent.end(
> IteratorComponent.java:246)
>>   at org.apache.struts2.views.jsp.IteratorTag.doAfterBody(
> IteratorTag.java:68)
>>   at
> org.apache.jsp.jupiters2.archivo.jsp.expediente.frmPrestamo_jsp._jspx_meth_s_0
> 05fiterator_005f0
> (frmPrestamo_jsp.java:1595)
>>   at
> org.apache.jsp.jupiters2.archivo.jsp.expediente.frmPrestamo_jsp._jspx_meth_s_0
> 05fform_005f0
> (frmPrestamo_jsp.java:640)
>>   at
> org.apache.jsp.jupiters2.archivo.jsp.expediente.frmPrestamo_jsp._jspService
> (frmPrestamo_jsp.java:186)
>>   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
> :98)
>>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>   at org.apache.jasper.servlet.JspServletWrapper.service(
> JspServletWrapper.java:328)
>>   at org.apache.jasper.servlet.JspServlet.serviceJspFile(
> JspServlet.java:315)
>>   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
>>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:269)
>>   at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:188)
>>   at org.apache.catalina.core.ApplicationDispatcher.invoke(
> ApplicationDispatcher.java:691)
>>   at org.apache.catalina.core.ApplicationDispatcher.processRequest(
> ApplicationDispatcher.java:469)
>>   at org.apache.catalina.core.ApplicationDispatcher.doForward(
> ApplicationDispatcher.java:403)
>>   at org.apache.catalina.core.ApplicationDispatcher.forward(
> ApplicationDispatcher.java:301)
>>   at org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(
> ServletDispatcherResult.java:139)
>>   at org.apache.struts2.dispatcher.StrutsResultSupport.execute(
> StrutsResultSupport.java:178)
>>   at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(
> DefaultActionInvocation.java:348)
>>   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(
> DefaultActionInvocation.java:253)
>>   at
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(
> DefaultWorkflowInterceptor.java:221)
>>   at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(
> MethodFilterInterceptor.java:86)
>>   at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(
> DefaultActionInvocation.java:224)
>>   at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(
> DefaultActionInvocation.java:223)
>>   at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(
> UtilTimerStack.java:455)
>>   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(
> DefaultActionInvocation.java:221)
>>   at
> com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(
> ValidationInterceptor.java:150)
>>   at
> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIn
> tercept
> (AnnotationValidationInterceptor.java:48)
>>   at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(
> MethodFilterInterceptor.java:86)
>>   at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(
> DefaultActionInvocation.java:224)
>>   at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(
> DefaultActionInvocation.java:223)
>>   at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(
> UtilTimerStack.java:455)
>>   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(
> DefaultActionInvocation.java:221)
>>   at
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(
> ConversionErrorInterceptor.java:123)
>>   at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(
> DefaultActionInvocation.java:224)
>>   at com.opensymphony.xwork2.DefaultAc

Re: Struts 2 and SOA

2008-02-26 Thread Randy Burgess
> From: Richard Sayre <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 26 Feb 2008 14:08:18 -0330
> To: Struts Users Mailing List 
> Subject: Re: Struts 2 and SOA
> 
> Could you elaborate a bit.  Would the POJO contain the Business logic
> for calling My DAO and other classes?  Would the POJO replace the
> action functionality?  Then my action would use a POJO to do all of
> the work?  So any logic in MyAction.save() would go into POJO.save()
> which would then be called form my action?  That way My POJO could be
> accessed from my struts application and any other clients that need it
> functionality?  I dont see any need for .NET interoperability in the
> future, but it would hurt to have that option.  The main reason for
> this is we are designing a new J2EE Application seprate from our
> current system.  In the future we want to beable to access certian
> functionality of each of these systems.  So System A will be asking
> System B for info and doing some work based on that info.

What you are describing here is essentially the standard MVC pattern. The
business object doesn't have to be a POJO. In general there should be no
business logic in your action, it should be in some external class such as a
POJO, EJB or web service of some sort.

Randy
 


This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.


Re: Struts 2 and SOA

2008-02-26 Thread Randy Burgess
Spring isn't required where CXF is concerned, but since CXF has Spring
integration you can expose Spring "beans" as web services quite easily. CXF
has standard SOAP web service support, JSON and REST capabilities although I
have no experience with their REST or JSON implementation.

http://cwiki.apache.org/CXF20DOC/index.html

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Richard Sayre <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 26 Feb 2008 14:19:26 -0330
> To: Struts Users Mailing List 
> Subject: Re: Struts 2 and SOA
> 
> I am not using Spring yet.  We currently just finished migrating our
> application to struts 2.  We have not had a chance to look into Spring
> yet but it was recommended by the person who started the struts
> migration.  If this is part of the solution to getting our struts app
> to share it functionality then we would have to do it.  We are
> developing a new System that in the future will have to talk to
> certain part of our current system and integrate with work flow
> applications.  I also want to develop this new application so it can
> share its functionality easily.  I am wondering how my design will
> change knowing that I have to do this.  Where does Struts fit in?
> Does it fit in at all?
> 
> Any comments are greatly appreciated.
> 
> Rich
> 
> On Tue, Feb 26, 2008 at 1:45 PM, Randy Burgess <[EMAIL PROTECTED]> wrote:
>> Especially if you are using Spring then it will be very simple using CXF to
>>  expose your business logic as a web service.
>> 
>>  Regards,
>>  Randy Burgess
>>  Sr. Web Applications Developer
>>  Nuvox Communications
>> 
>> 
>> 
>>> From: Richard Sayre <[EMAIL PROTECTED]>
>>> Reply-To: Struts Users Mailing List 
>>> Date: Tue, 26 Feb 2008 11:05:48 -0330
>>> To: Struts Users Mailing List 
>>> Subject: Struts 2 and SOA
>> 
>> 
>>> 
>>> If I have a struts application, is it posssible to expose some of the
>>> functionality as a Web Service?  After reading some SOA documents on
>>> the Sun website, it is possible to expose servlets as web services.
>>> Is this possible with Strus and J2EE? Is there a document that I can
>>> read on it?  Are there any best practices for designing a struts
>>> application so you can expose certian pieces as a service?
>>> 
>>> Thank you,
>>> 
>>> Rich
>>> 
>> 
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>> 
>> 
>> 
>>  This email and any attachments ("Message") may contain legally privileged
>> and/or confidential information.  If you are not the addressee, or if this
>> Message has been addressed to you in error, you are not authorized to read,
>> copy, or distribute it, and we ask that you please delete it (including all
>> copies) and notify the sender by return email.  Delivery of this Message to
>> any person other than the intended recipient(s) shall not be deemed a waiver
>> of confidentiality and/or a privilege.
>> 
>> 
>> 
>>  -
>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2 and SOA

2008-02-26 Thread Randy Burgess
Especially if you are using Spring then it will be very simple using CXF to
expose your business logic as a web service.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Richard Sayre <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 26 Feb 2008 11:05:48 -0330
> To: Struts Users Mailing List 
> Subject: Struts 2 and SOA
> 
> If I have a struts application, is it posssible to expose some of the
> functionality as a Web Service?  After reading some SOA documents on
> the Sun website, it is possible to expose servlets as web services.
> Is this possible with Strus and J2EE? Is there a document that I can
> read on it?  Are there any best practices for designing a struts
> application so you can expose certian pieces as a service?
> 
> Thank you,
> 
> Rich
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is it post or get?

2008-02-20 Thread Randy Burgess
If the user types in the URL it is a GET.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: "semaj.najraham" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Wed, 20 Feb 2008 08:52:11 -0800 (PST)
> To: 
> Subject: Is it post or get?
> 
> 
> This is a novice question about post and get form submission and I am
> confused.
> I really appreciate if you could help me. I have included some sample codes
> for explanation.
> 
> I have following action mappings in struts-config file
> 
>  type="com.company.myapp.user.UserAction"
> scope="request" validate="false" id="View_Users_List">
> 
> 
> 
>  type="com.company.myapp.user.UserAction"
> name="userForm" scope="request" validate="false"
> input=".user.userEdit" id="View_User_Details">
> 
> 
> 
> 
> 
> I have following definitions in tiles-defs file
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> I have following methods in UserAction (which extends DispatchAction) -
> viewList, view, edit, save
> 
> In View Users List page, I am displaying list of users and link to View User
> Details page using  and .
> So, when I go to View User Details page, the url looks something like this
> ../myApp/viewUserDetails.do?methodToCall=view&userId=1. If the Edit button
> is clicked on that page, it forwards to Edit User Details and the url looks
> like this ../myApp/viewUserDetails.do. I have hidden fields for methodToCall
> with value 'edit' and userId with value '1'. Everything works fine, but my
> point is if the user directly types
> ../myApp/viewUserDetails.do?methodToCall=edit&userid=1, it goes to Edit User
> page. 
> 
> Is this how it should behave even if it is POST or I am misunderstanding how
> POST and GET works? Am I following best-practices?
> 
> My userEdit.jsp looks something like this. (By default,  method
> is POST)
> 
> 
> First Name: 
> Last Name: 
> 
> 
> 
> 
> 
> Thank you guys.. 
> semaj
> -- 
> View this message in context:
> http://www.nabble.com/Is-it-post-or-get--tp15592354p15592354.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Update from 2.0.9 to 2.0.11

2008-02-20 Thread Randy Burgess
Yeah I apologize for the bad advice, I whipped that out too fast. It should
be:



Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Dave Newton <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Wed, 20 Feb 2008 07:55:24 -0800 (PST)
> To: Struts Users Mailing List 
> Subject: Re: Update from 2.0.9 to 2.0.11
> 
> --- Randy Burgess <[EMAIL PROTECTED]> wrote:
>> If you have a getter for 'chapter' in your action then this should work.
>> 
>> 
> 
> IIRC the "#" is only for named objects in the stack context (like #request,
> #attr, etc.) so I'm not sure that will work. For example, if I have a
> property "foo" on my action I can't access it with  value="#foo"/>.
> 
> Dave
> 
>> Randy Burgess
>> Sr. Web Applications Developer
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Update from 2.0.9 to 2.0.11

2008-02-20 Thread Randy Burgess
If you have a getter for 'chapter' in your action then this should work.



Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: jcleve <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Wed, 20 Feb 2008 07:09:26 -0800 (PST)
> To: 
> Subject: Re: Update from 2.0.9 to 2.0.11
> 
> 
> I undestand the issue, but missed the clue, I'm a bit rookie on Struts2.
> 
> If EL is forbidden, should OGNL be used, or is there a cleaner solution ?
> 
> It might be a stupid question, but
> what would be the correct way of writing  test="${chapter!='Library'}>${chapter} without EL.
> 
> I translated it to : 
> 
> Have I to use % and #request or other context everywhere, and can't I simply
> use the valueStack ?
> 
> Is there a good webpage, tuto or whatever, on EL / OGNL syntax ?
> 
> 
> 
>>> https://issues.apache.org/struts/browse/WW-2107
>>> 
>>> You can still use OGNL though:
>>> 
>>> 
>>> 
>>> Eric Rank
>>> -
>>> Senior Web App Engineer
>>> www.referencevault.com
>>> 
>>> On Jan 3, 2008, at 3:39 AM, Michał Letyński wrote:
>>> 
>>>> Hi, I did an update from version 9 to 11. And after that i got a lot
>>>> of errors in jsp:
>>>> 
>>>> /"According to TLD or attribute directive in tag file, attribute test
>>>> does not accept any expressions"
>>>> 
>>>> /I have many expressions in s:if test=${value_here}, s:submit
>>>> src="${imgPath}/save_attachment.gif"" etc.
>>>> From version 11 is not possible to put expression into tags ?!?!?
>>> 
>>> 
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Update-from-2.0.9-to-2.0.11-tp14594912p15590474.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: S2 NESTED iterators & FLAT HashMaps:

2008-02-19 Thread Randy Burgess
One is JSTL, the other is using OGNL and they are not the same.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: ravi_eze <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 19 Feb 2008 08:44:06 -0800 (PST)
> To: 
> Subject: Re: S2 NESTED iterators & FLAT HashMaps:
> 
> 
> hi,
> 
> The answers were a real help. I could get the things to things working...
> 
> now when i use: fruits Val :${fruitsId.value} this displays: fruits Val
> :[apple, banana, orange]
> 
> but when i use: ${fruitsId.value.size()} its giving compile time
> errors:tAttributes.jsp(98,16) The function size must be used with a prefix
> when a default namespace is not specified. I need to get 3 so how should i
> form the expression?
> 
> if i use:  then its displaying
> 3. The tag is written as follows:
> 
>  id="fruitsId"
> status="fruitsStat"
> value="fruitColourInfo">
>
>  ...
> 
> i basically need to use this in < td colspan="{...}" > ... is there any
> alternative ways of handling this? any ideas pl: help
> 
> ravi
> 
> 
> 
> Laurie Harper wrote:
>> 
>>> fruits KEY 
>> 
>> Gets the key from the map entry and displays it; OK here.
>> 
>>> fruits Val 
>> 
>> Gets the 'value' property of the iterator status object and uses that as
>> a lookup key in the application's message resources. Umm... First, I'm
>> not sure if the iterator status object has a value property, but
>> wouldn't you want the value from the map entry? And second, do you have
>> the message properties set up?
>> 
>> That should probably be
>> 
>>  fruits Val 
>> 
>> and, for sanity checing (in case your message resources aren't set up
>> correctly) you should start with just
>> 
>>  fruits Val 
>> 
>> L.
>> 
>> Ravichandra C wrote:
>>> Hi,
>>> 
>>> I am trying this way:
>>> 
>>> 
>>> >> value="fruitscolourandInfo" >
>>> fruits KEY 
>>> 
>>> fruits Val 
>>> 
>>> >> value="fruitsId.value" >
>>> colour  
>>> 
>>> 
>>> 
>>> The issue is that:
>>> Fruits key: is being displayed fine
>>> Fruits Val: nothing is being dislayed; infact when I tried similarly
>>> with fruits KEY even that is not being displayed. Any ideas how to get
>>> this working.. (in fact I need to get the results in textboxes next) 
>>> 
>>> Any help?
>>> Ravi 
>>> 
>>> -Original Message-
>>> From: Musachy Barroso [mailto:[EMAIL PROTECTED]
>>> Sent: Monday, February 18, 2008 10:09 PM
>>> To: Struts Users Mailing List
>>> Subject: Re: S2 NESTED iterators & FLAT HashMaps:
>>> 
>>> When you use the "iterator" tag, the value of the "id" tag becomes the
>>> reference to the current object on that iteration(same as "top" on
>>> this case). When iterating over a map, the object is a Map.Entry, so
>>> you need to access the "key" and "value" properties, like
>>> 
>>> 
>>> Key:  same as >> value="key" />
>>> Value: same as
>>> 
>>> 
>>> 
>>> is not a direct answer to your question, but I think your problem is
>>> around that.
>>> //you can always do %{superMap[top.key]} to access the value, it is
>>> just harder to read
>>> 
>>> regards
>>> musachy
>>> 
>>> On Feb 18, 2008 11:21 AM, ravi_eze <[EMAIL PROTECTED]> wrote:
>>>> hi,
>>>> 
>>>> i have 4 hashmaps as follows:
>>>> (1). HashMap> treesFruitsMap = new HashMap();
>>>> (2). HashMap> fruitsColourMap = new HashMap();
>>>> (3). HashMap colourVitaminMap = new HashMap();
>>>> 
>>>> i.e.
>>>> (1) has the mapping btw tree names and the fruits it bears (as a set
>>> of
>>>> strings)
>>>> (2) has the mapping btw fruit name and the possible colours it can
>>> come out
>>>> in
>>>> (3) mapping btw fruit and the vitamins it has in it.
>>>> 
>>>> I need to display the output as follows:
>>>> Fruit1 - Colour1 - Vitamin1
>>>> Fruit1 - Colour1 - Vitamin2
>>>> Fruit1 - Colour2 - < corresponding vitamins >
>

Re: struts2 s:if and displaytag question

2008-02-19 Thread Randy Burgess
It's because you have the property set on that column. Remove that attribute
and if your condition is found then it will display that text.

I don't think that if statement is correct either. This should look like:

  
...

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: red phoenix <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Wed, 20 Feb 2008 00:09:43 +0800
> To: Struts Users Mailing List 
> Subject: struts2 s:if and displaytag question
> 
> I use Struts2 and displaytag, In testList,there is a abc attribute,it
> contains data like "english","france",when abc="english",I want to show
> En,else show Eu,my code is follows:
> 
> 
>   
> 
> En
>
>
>Eu
>
> 
> 
> when I execute code,I find it only shows english or france,I don't know why
> it don't show En or Eu.Where wrong with my code?
> 
> Any idea will be appreciated!
> Thanks



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: serializable and exceptions

2008-02-14 Thread Randy Burgess
I wonder if making your object implement serializable will have any affect
on the Xwork object. Have you tried to see what happens?

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Brian Relph <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Thu, 14 Feb 2008 14:27:19 -0600
> To: Struts Users Mailing List 
> Subject: Re: serializable and exceptions
> 
> Yes, for my own objects, i am going to implement the serializable interface,
> however, the xwork class, even if i were to rewrite/replace it, i would also
> have to rewrite the interceptor to use the new object ...
> 
> 
> On 2/14/08, Randy Burgess <[EMAIL PROTECTED]> wrote:
>> 
>> That would be the first thing I would do and generate a serialVersionUID
>> for
>> the pojo.
>> 
>> Regards,
>> Randy Burgess
>> Sr. Web Applications Developer
>> Nuvox Communications
>> 
>> 
>> 
>>> From: Brian Relph <[EMAIL PROTECTED]>
>>> Reply-To: Struts Users Mailing List 
>>> Date: Thu, 14 Feb 2008 10:38:28 -0600
>>> To: Struts Users Mailing List 
>>> Subject: serializable and exceptions
>>> 
>>> Hey everyone, I seem to be coming across two issues when running
>> multiple
>>> jvms with session sharing ... i have not run into this during my
>> previous
>>> testing, since i was not worried about a high-availability environment,
>> and
>>> did not test inside a cluster...
>>> 
>>> Anyways, i receive this exception when using the ModelDriven interface
>> (the
>>> Accounts object is my model):
>>> 
>>> [2/14/08 3:35:04:737 GMT] 0052 HttpSessDRSBu E storeObject: Caught
>>> Exception while trying to serialize. Stack trace:
>>> java.io.NotSerializableException:
>>> com.cerner.healthe.admin.portlet.model.Accounts
>>> I did not really investigate how the ModelDriven interface works, it
>> just
>>> made my ui code cleaner, and allowed me to group a bunch of fields
>> outside
>>> of my action.  Anyways, i was wondering if changing the ModelDriven
>>> interface to require the object to implement Serializable would make
>> sense?
>>> 
>>> Because of this serializable exception, my exception interceptor
>> forwards me
>>> to a page, and then i display the exception.  At this point, i get
>> another
>>> similar exception:
>>> 
>>> [2/14/08 16:16:48:936 GMT] 0029 HttpSessDRSBu E   storeObject:
>> Caught
>>> Exception while trying to serialize. Stack trace:
>>> java.io.NotSerializableException:
>>> com.opensymphony.xwork2.interceptor.ExceptionHolder
>>> 
>>> I see that the xwork2 interceptor implement the Serializable interface,
>> but
>>> that particular class does not.  Is xwork2 code part of the struts2 code
>>> base, i.e., is this the right place to post for these exceptions?
>>> 
>>> Finally (this kinda has a bunch of things all wrapped into one), is
>> there
>>> any easier way to increase the logging of the exception interceptor,
>>> besides re-defining the default interceptor stack?  I tried to just
>>> re-define the interceptor, i also tried to just set the parameters, but
>>> it did not seem to work unless i configured my own stack in this way:
>>> 
>>> 
>>> 
>>> 
>>>   
>>> true
>>> warn
>>>   
>>>   
>>>   
>>>   
>>>   
>>>   
>>>   
>>>   
>>>   
>>>   
>>>   
>>>   
>>>   
>>>   
>>>   
>>>   
>>> 
>>>   input,back,cancel,browse
>>> 
>>>   
>>>   
>>> 
>>>   input,back,cancel,browse
>>> 
>>>   
>>> 
>>> 
>>> 
>>> 
>>>   
>>>   
>>>   
>>> 
>>> 
>>> 
>>> --
>>> Brian
>> 
>> 
>> 
>> This email and any attachments ("Message") may contain legally privileged
>> and/or confidential information.  If you are not the addressee, or if this
>> Message has been addressed to you in error, you are not authorized to read,
>> copy, or distribute it, and we ask that you please delete it (including all
>> copies) and notify the sender by return email.  Delivery of this Message to
>> any person other than the intended recipient(s) shall not be deemed a waiver
>> of confidentiality and/or a privilege.
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
> 
> 
> -- 
> Brian



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: serializable and exceptions

2008-02-14 Thread Randy Burgess
That would be the first thing I would do and generate a serialVersionUID for
the pojo.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Brian Relph <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Thu, 14 Feb 2008 10:38:28 -0600
> To: Struts Users Mailing List 
> Subject: serializable and exceptions
> 
> Hey everyone, I seem to be coming across two issues when running multiple
> jvms with session sharing ... i have not run into this during my previous
> testing, since i was not worried about a high-availability environment, and
> did not test inside a cluster...
> 
> Anyways, i receive this exception when using the ModelDriven interface (the
> Accounts object is my model):
> 
> [2/14/08 3:35:04:737 GMT] 0052 HttpSessDRSBu E storeObject: Caught
> Exception while trying to serialize. Stack trace:
> java.io.NotSerializableException:
> com.cerner.healthe.admin.portlet.model.Accounts
> I did not really investigate how the ModelDriven interface works, it just
> made my ui code cleaner, and allowed me to group a bunch of fields outside
> of my action.  Anyways, i was wondering if changing the ModelDriven
> interface to require the object to implement Serializable would make sense?
> 
> Because of this serializable exception, my exception interceptor forwards me
> to a page, and then i display the exception.  At this point, i get another
> similar exception:
> 
> [2/14/08 16:16:48:936 GMT] 0029 HttpSessDRSBu E   storeObject: Caught
> Exception while trying to serialize. Stack trace:
> java.io.NotSerializableException:
> com.opensymphony.xwork2.interceptor.ExceptionHolder
> 
> I see that the xwork2 interceptor implement the Serializable interface, but
> that particular class does not.  Is xwork2 code part of the struts2 code
> base, i.e., is this the right place to post for these exceptions?
> 
> Finally (this kinda has a bunch of things all wrapped into one), is there
> any easier way to increase the logging of the exception interceptor,
> besides re-defining the default interceptor stack?  I tried to just
> re-define the interceptor, i also tried to just set the parameters, but
> it did not seem to work unless i configured my own stack in this way:
> 
> 
> 
> 
>   
> true
> warn
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
> 
>   input,back,cancel,browse
> 
>   
>   
> 
>   input,back,cancel,browse
> 
>   
> 
> 
> 
> 
>   
>   
>   
> 
> 
> 
> -- 
> Brian



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: OT: Alternative to html frames

2008-02-13 Thread Randy Burgess
A portal implementation is typically quite an undertaking. Frames would be a
whole lot easier. :)

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Marc Eckart <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Wed, 13 Feb 2008 17:30:38 +0100
> To: Struts Users Mailing List 
> Subject: Re: OT: Alternative to html frames
> 
> The most applications are hosted in the intra net. We have another subnet
> with some Websphere servers secured by firewalls but they can all be
> accessed within out domain. So I think I'm back with frames respectively
> iframes :-)
> 
> Thank you all for your answers :-)
> 
> Best Regards,
> Marc
> 
> 2008/2/13, Frank W. Zammetti <[EMAIL PROTECTED]>:
>> 
>> Marc Eckart wrote:
>>> Hmm, in our case the single applications should not know it they are
>> running
>>> in a portal or somewhere else. They should just see their context,
>> nothing
>>> else.
>> 
>> 
>> In my experience, which I admit was a while back and fairly limited, a
>> portlet is specifically written as a portlet, i.e., it knows it's
>> running within a portal and acts accordingly.  Your requirements seem to
>> say otherwise, so I'm thinking one strike against a portal approach.
>> 
>> 
>>> Another question to hold the application in simple divs:
>>> How does the action handling works if I include the applications in
>> simple
>>> divs? If they redirect after an action to a jsp will they stay in the
>> div or
>>> fill the whole page?
>> 
>> 
>> Those types of things would affect the larger page, without modifying
>> the application hosted in the .  I'm thinking that's a strike
>> against a simple -based approach.
>> 
>> Kind of coming back to frames I think :)  The question then is whether
>> frames is viable or not... if the apps are all hosted under the same
>> domain, your life is a lot easier.  If not, trouble abounds!
>> 
>> 
>> Frank
>> 
>> --
>> Frank W. Zammetti
>> Author of "Practical Ajax Projects With Java Technology"
>>   (2006, Apress, ISBN 1-59059-695-1)
>> and "JavaScript, DOM Scripting and Ajax Projects"
>>   (2007, Apress, ISBN 1-59059-816-4)
>> and "Practical DWR 2 Projects"
>>   (2008, Apress, ISBN 1-59059-941-1)
>> Java Web Parts - http://javawebparts.sourceforge.net
>>   Supplying the wheel, so you don't have to reinvent it!
>> 
>>> 2008/2/13, Randy Burgess <[EMAIL PROTECTED]>:
>>>> I would imagine that it is portal specific. It is up to the developer
>> with
>>>> AquaLogic.
>>>> 
>>>> 
>>>> Regards,
>>>> Randy Burgess
>>>> Sr. Web Applications Developer
>>>> Nuvox Communications
>>>> 
>>>> 
>>>> 
>>>>> From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
>>>>> Reply-To: Struts Users Mailing List 
>>>>> Date: Wed, 13 Feb 2008 09:45:34 -0500
>>>>> To: Struts Users Mailing List 
>>>>> Subject: Re: OT: Alternative to html frames
>>>>> 
>>>>> So that seems to say that it's left to the portlet developers to
>> ensure
>>>>> there are no naming conflicts, am I understanding that right?
>>>>> 
>>>>> Frank
>>>>> 
>>>>> Randy Burgess wrote:
>>>>>> As to the multiple identical portlets on the same web page question,
>> I
>>>> think
>>>>>> most portals have a portlet id for each portlet or some other unique
>>>>>> identifier. It is a best practice to append the portlet identifier
>> onto
>>>>>> function names, form names in the case of Struts 2 with client side
>>>>>> validation, etc. Here we are developing for the BEA AquaLogic portal
>>>> and we
>>>>>> use the portlet id, which is numeric and unique for each portlet.
>>>>>> 
>>>>>> Regards,
>>>>>> Randy Burgess
>>>>>> Sr. Web Applications Developer
>>>>>> Nuvox Communications
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>>> From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
>>>>>>> Reply-To: Struts Users Mailing List 
>>>>>>> Date: Tue, 12 Feb 2008 10:36:08 -0500
>>>>>>> To: Struts Users Mailing 

Re: OT: Alternative to html frames

2008-02-13 Thread Randy Burgess
In AquaLogic there is a feature called In Place Refresh, which stops a
portlet from taking over the page due to a redirect or whatever. You can use
divs if you want but I have portlets without a single div. With AquaLogic
you can use JSR 168 portlets or not, if you don't want to. Since I have this
option I have been creating plain old S2 actions that also run as portlets.
We have also created interceptors to facilitate providing portal services to
actions that require them.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Marc Eckart <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Wed, 13 Feb 2008 16:44:17 +0100
> To: Struts Users Mailing List 
> Subject: Re: OT: Alternative to html frames
> 
> Hmm, in our case the single applications should not know it they are running
> in a portal or somewhere else. They should just see their context, nothing
> else.
> 
> Another question to hold the application in simple divs:
> How does the action handling works if I include the applications in simple
> divs? If they redirect after an action to a jsp will they stay in the div or
> fill the whole page?
> 
> 2008/2/13, Randy Burgess <[EMAIL PROTECTED]>:
>> 
>> I would imagine that it is portal specific. It is up to the developer with
>> AquaLogic.
>> 
>> 
>> Regards,
>> Randy Burgess
>> Sr. Web Applications Developer
>> Nuvox Communications
>> 
>> 
>> 
>>> From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
>>> Reply-To: Struts Users Mailing List 
>> 
>>> Date: Wed, 13 Feb 2008 09:45:34 -0500
>> 
>>> To: Struts Users Mailing List 
>>> Subject: Re: OT: Alternative to html frames
>>> 
>>> So that seems to say that it's left to the portlet developers to ensure
>>> there are no naming conflicts, am I understanding that right?
>>> 
>>> Frank
>>> 
>>> Randy Burgess wrote:
>>>> As to the multiple identical portlets on the same web page question, I
>> think
>>>> most portals have a portlet id for each portlet or some other unique
>>>> identifier. It is a best practice to append the portlet identifier onto
>>>> function names, form names in the case of Struts 2 with client side
>>>> validation, etc. Here we are developing for the BEA AquaLogic portal
>> and we
>>>> use the portlet id, which is numeric and unique for each portlet.
>>>> 
>>>> Regards,
>>>> Randy Burgess
>>>> Sr. Web Applications Developer
>>>> Nuvox Communications
>>>> 
>>>> 
>>>> 
>>>>> From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
>>>>> Reply-To: Struts Users Mailing List 
>>>>> Date: Tue, 12 Feb 2008 10:36:08 -0500
>>>>> To: Struts Users Mailing List 
>>>>> Subject: Re: OT: Alternative to html frames
>>>>> 
>>>>> Antonio Petrelli wrote:
>>>>>> Frank, you might love this article :-)
>>>>>> 
>> http://thedailywtf.com/Articles/I-am-right-and-the-entire-Industry-is-wrong
>>>>>> .a
>>>>>> spx
>>>>> Hehe :)
>>>>> 
>>>>> It's a good example of the typical "taking an idea too far".  The
>> world
>>>>> seems to be divided into the people that say frames are evil and
>> should
>>>>> never be used (and IIRC, they are removed in HTML 5, so apparently
>> those
>>>>> guys feel that way too) or those that say frames are DA BOMB and
>> should
>>>>> always be used.
>>>>> 
>>>>> I'm personally in neither camp.  I'm simply someone that has used
>> frames
>>>>> a number of times over the years with great success.  They certainly
>>>>> aren't appropriate in every case, that's why I asked what the problems
>>>>> were that Marc was having.
>>>>> 
>>>>> Portals is one way to go, sure.  The last time I touched portals was a
>>>>> couple of years ago frankly, so maybe you could answer a question for
>> me
>>>>> that I'm curious about... if I have a Javascript variable named
>>>>> firstName in two different portlets, how does the container avoid that
>>>>> name clash?
>>>>> 
>>>>> For the past nearly two years (can't believe it's been that long!)
>> I've
>>>>> been leading an effort to de

Re: How to redirect to the same page

2008-02-13 Thread Randy Burgess
There is a good article on a login interceptor here:
http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor.
A question is posted further down the page on how to redirect to the
originally requested page after a successful login.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Dravid <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Wed, 13 Feb 2008 07:34:36 -0800 (PST)
> To: 
> Subject: Re: How to redirect to the same page
> 
> 
> please some one help me
> 
> thanks in advance
> 
> 
> 
> Dravid wrote:
>> 
>> Hi,
>> 
>> After a successful login I don't want to redirect the user to a hardcodes
>> page, but I want the user to be redirected where he wanted to go. E.g. if
>> a user clicks on 'sell' he will be forced to log in and after login the
>> sell-page should be shown. If he clicks on buy the buy-page should be
>> shown after login. Is there an elegant way to do this?"
>> 
>> please help with a piece of code.
>> 
>> thanks in advance
>> 
> 
> -- 
> View this message in context:
> 
http://www.nabble.com/How-to-redirect-to-the-same-page-tp15436570p15459605.htm>
l
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: OT: Alternative to html frames

2008-02-13 Thread Randy Burgess
I would imagine that it is portal specific. It is up to the developer with
AquaLogic.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Wed, 13 Feb 2008 09:45:34 -0500
> To: Struts Users Mailing List 
> Subject: Re: OT: Alternative to html frames
> 
> So that seems to say that it's left to the portlet developers to ensure
> there are no naming conflicts, am I understanding that right?
> 
> Frank
> 
> Randy Burgess wrote:
>> As to the multiple identical portlets on the same web page question, I think
>> most portals have a portlet id for each portlet or some other unique
>> identifier. It is a best practice to append the portlet identifier onto
>> function names, form names in the case of Struts 2 with client side
>> validation, etc. Here we are developing for the BEA AquaLogic portal and we
>> use the portlet id, which is numeric and unique for each portlet.
>> 
>> Regards,
>> Randy Burgess
>> Sr. Web Applications Developer
>> Nuvox Communications
>> 
>> 
>> 
>>> From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
>>> Reply-To: Struts Users Mailing List 
>>> Date: Tue, 12 Feb 2008 10:36:08 -0500
>>> To: Struts Users Mailing List 
>>> Subject: Re: OT: Alternative to html frames
>>> 
>>> Antonio Petrelli wrote:
>>>> Frank, you might love this article :-)
>>>> http://thedailywtf.com/Articles/I-am-right-and-the-entire-Industry-is-wrong
>>>> .a
>>>> spx
>>> Hehe :)
>>> 
>>> It's a good example of the typical "taking an idea too far".  The world
>>> seems to be divided into the people that say frames are evil and should
>>> never be used (and IIRC, they are removed in HTML 5, so apparently those
>>> guys feel that way too) or those that say frames are DA BOMB and should
>>> always be used.
>>> 
>>> I'm personally in neither camp.  I'm simply someone that has used frames
>>> a number of times over the years with great success.  They certainly
>>> aren't appropriate in every case, that's why I asked what the problems
>>> were that Marc was having.
>>> 
>>> Portals is one way to go, sure.  The last time I touched portals was a
>>> couple of years ago frankly, so maybe you could answer a question for me
>>> that I'm curious about... if I have a Javascript variable named
>>> firstName in two different portlets, how does the container avoid that
>>> name clash?
>>> 
>>> For the past nearly two years (can't believe it's been that long!) I've
>>> been leading an effort to develop a single, unified back-office
>>> application that combines a number of new and existing applications into
>>> a cohesive whole.  It's been one of the most successful project to date
>>> at my company, and it was only possible because of a frame-based
>>> (iFrames in that case) architecture.  We have unique teams developing
>>> individual "modules", and there's never a concern about name conflicts
>>> with either Javascript or HTML elements.  I'm curious if a portal
>>> approach would have worked here too.
>>> 
>>> It's interesting because in a very real sense we pretty much developed
>>> our own portal container!  We have a common "Framework" that all the
>>> modules make use of, some common bits of functionality that runs across
>>> all of them (preferences, dropdown menu, some others).  But they are
>>> 100% independent by and large (some of the modules are actually whole
>>> other applications hosted on other servers).  Would a portal have
>>> allowed for things like that?  If so, do you have any idea how it pulls
>>> that off without frames?  Most importantly, avoiding those naming
>>> conflicts I mentioned.
>>> 
>>> I don't want to hijack a thread here, but it's already marked OT, and
>>> since you've got my curiosity piqued, I'll ask the questions :)
>>> 
>>>> Antonio
>>> Thanks,
>>> Frank
>>> 
>>> -- 
>>> Frank W. Zammetti
>>> Author of "Practical Ajax Projects With Java Technology"
>>>   (2006, Apress, ISBN 1-59059-695-1)
>>> and "JavaScript, DOM Scripting and Ajax Projects"
>>>   (2007, Apress, ISBN 1-59059-816-4)
>>> and "Practi

Re: How to redirect to the same page

2008-02-13 Thread Randy Burgess
I would save the action name as a string in the users session and then
redirect to that location once auth is complete. That is the way I have done
it in the past.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Dravid <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 12 Feb 2008 09:12:06 -0800 (PST)
> To: 
> Subject: How to redirect to the same page
> 
> 
> Hi,
> 
> After a successful login I don't want to redirect the user to a hardcodes
> page, but I want the user to be redirected where he wanted to go. E.g. if a
> user clicks on 'sell' he will be forced to log in and after login the
> sell-page should be shown. If he clicks on buy the buy-page should be shown
> after login. Is there an elegant way to do this?"
> 
> please help with a piece of code.
> 
> thanks in advance
> -- 
> View this message in context:
> 
http://www.nabble.com/How-to-redirect-to-the-same-page-tp15436570p15436570.htm>
l
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Get current URL on a page

2008-02-13 Thread Randy Burgess
I'm not sure how to get it with OGNL but you could make your action
implement ServletRequestAware, call request.getRequestURL() somewhere in
your action and set that value in an instance variable with a getter and
then call the getter in  your action.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Tommy Becker <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 12 Feb 2008 10:52:07 -0500
> To: Struts Users Mailing List 
> Subject: Re: Get current URL on a page
> 
> Unfortunately it is.  I'm creating a url to another site using 
> and passing the current url as a parameter.  I suppose I don't *have* to
> use   Is it not possible?
> /*
> 
> */ <http://www.motricity.com>
> 
> 
> Randy Burgess wrote:
>> If the value is not going into a struts tag then just use JSTL.
>> 
>> Regards,
>> Randy Burgess
>> Sr. Web Applications Developer
>> Nuvox Communications
>> 
>> 
>> 
>>   
>>> From: Tommy Becker <[EMAIL PROTECTED]>
>>> Reply-To: Struts Users Mailing List 
>>> Date: Tue, 12 Feb 2008 10:31:09 -0500
>>> To: Struts Users Mailing List 
>>> Subject: Get current URL on a page
>>> 
>>> Is there a way to get the URL for the current page using struts tags?  I
>>> thought I had access to the HttpRequest, and therefore could just use
>>> getRequestURL() but it appears the docs have led me astray :/
>>> <http://www.motricity.com>
>>> 
>>> 
>>> NOTICE: This e-mail message is for the sole use of the intended recipient(s)
>>> and may contain confidential and privileged information of Motricity.  Any
>>> unauthorized review, use, disclosure or distribution is prohibited.  If you
>>> are not the intended recipient, please contact the sender by reply e-mail
>>> and
>>> destroy all copies of the original message.
>>> 
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>>> 
>> 
>> 
>> 
>> This email and any attachments ("Message") may contain legally privileged
>> and/or confidential information.  If you are not the addressee, or if this
>> Message has been addressed to you in error, you are not authorized to read,
>> copy, or distribute it, and we ask that you please delete it (including all
>> copies) and notify the sender by return email.  Delivery of this Message to
>> any person other than the intended recipient(s) shall not be deemed a waiver
>> of confidentiality and/or a privilege.
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>>   
> 
> NOTICE: This e-mail message is for the sole use of the intended recipient(s)
> and may contain confidential and privileged information of Motricity.  Any
> unauthorized review, use, disclosure or distribution is prohibited.  If you
> are not the intended recipient, please contact the sender by reply e-mail and
> destroy all copies of the original message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts + Maven + Eclipse problem

2008-02-13 Thread Randy Burgess
Have you run "mvn eclipse:eclipse" in the project directory? Have you set
the web root for the project in Eclipse? I had to do both when creating a
Struts Maven project from the command line. This structure sounds like the
project that is created from the following which was discussed on the list
not long ago.

mvn archetype:create -DgroupId=com.s2.anu -DartifactId=s2proj
-DarchetypeGroupId=org.apache.struts-DarchetypeArtifactId=struts2-archetype-
starter
-DarchetypeVersion=
2.0.11 -DremoteRepositories=
http://people.apache.org/builds/struts/m2-staging-repository

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Gaurav Arora <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 12 Feb 2008 21:21:53 +0530
> To: Struts Users Mailing List 
> Subject: Struts + Maven + Eclipse problem
> 
> I created a new struts project using the maven archetype and then
> imported it into eclipse. However when I try to run this project on
> tomcat (through eclipse) i keep getting the following error :
> 
> Feb 12, 2008 9:15:00 PM org.apache.struts2.dispatcher.Dispatcher serviceAction
> SEVERE: Could not find action or result
> There is no Action mapped for namespace / and action name index. -
> [unknown location]
> at 
> 
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:186>
)
> at 
> org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActio
> nProxyFactory.java:41)
> at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:494)
> at 
> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:
> 419)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi
> lterChain.java:215)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChai
> n.java:188)
> at 
> com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:1
> 18)
> at 
> 
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52>
)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi
> lterChain.java:215)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChai
> n.java:188)
> at 
> org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextClean
> Up.java:99)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi
> lterChain.java:215)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChai
> n.java:188)
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java
> :213)
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java
> :174)
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
> at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:1
> 08)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
> at 
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processCon
> nection(Http11BaseProtocol.java:665)
> at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:
> 528)
> at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWork
> erThread.java:81)
> at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:
> 689)
> at java.lang.Thread.run(Thread.java:619)
> 
> My struts.xml is as follows :
> 
> 
>  "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
> "http://struts.apache.org/dtds/struts-2.0.dtd";>
> 
> 
> 
> 
> /jsp/index.jsp
> 
> 
> /jsp/index.jsp
> /jsp/helloWorld.jsp
> 
> 
> 
> 
> 
> I tried all combinations for the "name" attribute of the package tag
> but it doesn't work. Is there an easier way to do this? Also, how can
> I build my struts project using eclipse instead of maven?
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: OT: Alternative to html frames

2008-02-13 Thread Randy Burgess
As to the multiple identical portlets on the same web page question, I think
most portals have a portlet id for each portlet or some other unique
identifier. It is a best practice to append the portlet identifier onto
function names, form names in the case of Struts 2 with client side
validation, etc. Here we are developing for the BEA AquaLogic portal and we
use the portlet id, which is numeric and unique for each portlet.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 12 Feb 2008 10:36:08 -0500
> To: Struts Users Mailing List 
> Subject: Re: OT: Alternative to html frames
> 
> Antonio Petrelli wrote:
>> Frank, you might love this article :-)
>> http://thedailywtf.com/Articles/I-am-right-and-the-entire-Industry-is-wrong.a
>> spx
> 
> Hehe :)
> 
> It's a good example of the typical "taking an idea too far".  The world
> seems to be divided into the people that say frames are evil and should
> never be used (and IIRC, they are removed in HTML 5, so apparently those
> guys feel that way too) or those that say frames are DA BOMB and should
> always be used.
> 
> I'm personally in neither camp.  I'm simply someone that has used frames
> a number of times over the years with great success.  They certainly
> aren't appropriate in every case, that's why I asked what the problems
> were that Marc was having.
> 
> Portals is one way to go, sure.  The last time I touched portals was a
> couple of years ago frankly, so maybe you could answer a question for me
> that I'm curious about... if I have a Javascript variable named
> firstName in two different portlets, how does the container avoid that
> name clash?
> 
> For the past nearly two years (can't believe it's been that long!) I've
> been leading an effort to develop a single, unified back-office
> application that combines a number of new and existing applications into
> a cohesive whole.  It's been one of the most successful project to date
> at my company, and it was only possible because of a frame-based
> (iFrames in that case) architecture.  We have unique teams developing
> individual "modules", and there's never a concern about name conflicts
> with either Javascript or HTML elements.  I'm curious if a portal
> approach would have worked here too.
> 
> It's interesting because in a very real sense we pretty much developed
> our own portal container!  We have a common "Framework" that all the
> modules make use of, some common bits of functionality that runs across
> all of them (preferences, dropdown menu, some others).  But they are
> 100% independent by and large (some of the modules are actually whole
> other applications hosted on other servers).  Would a portal have
> allowed for things like that?  If so, do you have any idea how it pulls
> that off without frames?  Most importantly, avoiding those naming
> conflicts I mentioned.
> 
> I don't want to hijack a thread here, but it's already marked OT, and
> since you've got my curiosity piqued, I'll ask the questions :)
> 
>> Antonio
> 
> Thanks,
> Frank
> 
> -- 
> Frank W. Zammetti
> Author of "Practical Ajax Projects With Java Technology"
>   (2006, Apress, ISBN 1-59059-695-1)
> and "JavaScript, DOM Scripting and Ajax Projects"
>   (2007, Apress, ISBN 1-59059-816-4)
> and "Practical DWR 2 Projects"
>   (2008, Apress, ISBN 1-59059-941-1)
> Java Web Parts - http://javawebparts.sourceforge.net
>   Supplying the wheel, so you don't have to reinvent it!
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Get current URL on a page

2008-02-12 Thread Randy Burgess
If the value is not going into a struts tag then just use JSTL.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Tommy Becker <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 12 Feb 2008 10:31:09 -0500
> To: Struts Users Mailing List 
> Subject: Get current URL on a page
> 
> Is there a way to get the URL for the current page using struts tags?  I
> thought I had access to the HttpRequest, and therefore could just use
> getRequestURL() but it appears the docs have led me astray :/
> <http://www.motricity.com>
> 
> 
> NOTICE: This e-mail message is for the sole use of the intended recipient(s)
> and may contain confidential and privileged information of Motricity.  Any
> unauthorized review, use, disclosure or distribution is prohibited.  If you
> are not the intended recipient, please contact the sender by reply e-mail and
> destroy all copies of the original message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2 equivalents?

2008-02-11 Thread Randy Burgess
Seems like it should be "home" instead of "home.jsp", assuming you have a
def for "home" in your tiles-defs.xml file. I'm assuming that the tiles
definitions file is still tiles-defs.xml.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: "Allen, Daniel" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Mon, 11 Feb 2008 17:48:11 -0500
> To: Struts Users Mailing List 
> Subject: RE: Struts 2 equivalents?
> 
> One more specific replacement question. In the Struts 1 app, we had some
> actions that had no class, but simply forwarded to largely static JSPs:
> .
> 
> In my new struts.xml, I tried:
> 
> home.jsp
> 
> 
> (I've changed my struts.properties to make the suffix .do instead of
> .action) When I try to go to localhost/appcontextname/home.do, I get the
> following:
> javax.servlet.ServletException: home.jsp
> 
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:5
> 18)
> 
> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher
> .java:421)
> root cause
> 
> org.apache.tiles.definition.NoSuchDefinitionException: home.jsp
> 
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.jav
> a:392)
> 
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.jav
> a:368)
> 
> org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:10
> 4)
> 
> org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSu
> pport.java:178)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultAct
> ionInvocation.java:343)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
> cation.java:248)
> 
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doInterce
> pt(DefaultWorkflowInterceptor.java:213)
> 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Me
> thodFilterInterceptor.java:86)
> 
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:219)
> 
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:218)
> 
> com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
> tack.java:455)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
> cation.java:216)
> 
> com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(Vali
> dationInterceptor.java:150)
> 
> org.apache.struts2.interceptor.validation.AnnotationValidationIntercepto
> r.doIntercept(AnnotationValidationInterceptor.java:48)
> 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Me
> thodFilterInterceptor.java:86)
> 
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:219)
> 
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:218)
> 
> com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
> tack.java:455)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
> cation.java:216)
> 
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept
> (ConversionErrorInterceptor.java:123)
> 
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:219)
> 
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:218)
> .
> .
> .
> 
> Any ideas? It may well be something besides my struts.xml, but I didn't
> want to just copy my entire webapp to the e-mail, so I took a guess. If
> you think it's something else, I'll be happy to add more files'
> contents.
> 
> Thanks
> ~Dan Allen
> 
> -Original Message-
> From: Allen, Daniel
> Sent: Monday, February 11, 2008 5:08 PM
> To: Struts Users Mailing List
> Subject: RE: Struts 2 equivalents?
> 
> Ok, I found some documents that partly answer my question. However, I'm
> still looking for a Struts2 equivalent to the old
>  tag. Do we just use  with some special
> test code now? 
> 
> -- 
> This message may contain confidential, proprietary, or legally privileged
> information. No confidentiality or privilege is waived by any transmission to
> an unintended recipient. If you are not an intended recipient, please notify
> the sender and delete this message immediately. Any views expressed in this
> message are those of the sender, not those of any entity within the KBC
> Financial Products group of companies (together referred to as "KBC FP").
> 
> This message does not create any obl

Re: takes more time for populating values.

2008-02-11 Thread Randy Burgess
Don't put 10,000 items in a drop down list. There is no way that a human is
going to read 10,000 items in a list and there is a good chance you will
crash their browser. I suggest making the user select some options, through
more drop down lists or input methods, to narrow down the final list before
displaying it.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Jayaveeran <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Mon, 11 Feb 2008 06:03:47 -0800 (PST)
> To: 
> Subject:  takes more time for populating values.
> 
> 
> Hi all,
> 
> I am populating a dropdown in my jsp which has more than 10,000 elements in
> it. Since the record size is very huge the time taken for the JSP to load is
> very high. I am using the folowing snippet to populate the dropdown. I am
> using struts framework. Is there any other way that I can populate the
> dropdown to make it faster ? Please help.
> 
> 
>   onchange='<%="fnDoCheck("+rowIndex.intValue()+")"%>' style="width:300px">
>  
>   
>
> -- 
> View this message in context:
> http://www.nabble.com/%3Chtml%3Aselect%3E-takes-more-time-for-populating-value
> s.-tp15412021p15412021.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2 and Weblogic 9.2 - java.net.ConnectException

2008-02-08 Thread Randy Burgess
>From the Struts 1 plugin page:

The Struts 1 plugin is currently only intended to allow you to run Strust 1
actions inside a Struts 2 application. It DOES NOT allow you to continue to
use the Struts 1 tag libraries in your JSPs. Your JSPs must be converted to
use the Struts 2 tag library.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Dave Newton <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Fri, 8 Feb 2008 06:17:42 -0800 (PST)
> To: Struts Users Mailing List 
> Subject: Re: Struts 2 and Weblogic 9.2 - java.net.ConnectException
> 
> --- Vigneswar <[EMAIL PROTECTED]> wrote:
>> I have struts-config.xml as well as struts.xml under the WEB-INF folder.
> 
> The S2 configuration files need to be on the classpath, normally
> /WEB-INF/classes.
> 
>> In old JSP, I'm providing action="/HelloWorld" in the html:link tag but
>> when I click the link it shows "404" page.
> 
> A link to an S2 action? I don't really know how the Struts 1 plugin works (or
> if you're using it) but I'm not sure that the S1 tags would know how to build
> a URL for an S2 action. It (the tag) would need to know the configured S2
> extension and IIRC the S1 tags would look up the action to make sure it was
> configured.
> 
> You may need to create the URLs to S2 actions manually in your S1 pages.
> 
> Dave
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2 and Weblogic 9.2 - java.net.ConnectException

2008-02-06 Thread Randy Burgess
I just noticed another thing, you are using the 2.3 DTD, I'm using the 2.4
XSD.

http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="2.4"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

I would use the 2.4 XSD.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Vigneswar <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 5 Feb 2008 21:15:38 -0800 (PST)
> To: 
> Subject: Re: Struts 2 and Weblogic 9.2 - java.net.ConnectException
> 
> 
> Randy,
> here is my web.xml
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd";>
> 
> 
>   Sample Project
>   Sample Project to Work with Struts2.
>   
> webmaster
> [EMAIL PROTECTED]
> 
>   The EMAIL address of the administrator to whom questions
>   and comments about this application should be addressed.
> 
>   
>   
>   
> 
> action2
> 
> org.apache.struts2.dispatcher.FilterDispatcher
> 
> 
> 
> action2
> /*
> 
> 
>  
> 
> org.springframework.web.context.ContextLoaderListener
> 
>  
>  
> contextConfigLocation
> /WEB-INF/applicationContext.xml
> 
> 
> 
> Thanks & Regards.
> Vigneswar Nagarathinam
> 
> 
> Randy Burgess-3 wrote:
>> 
>> We need to see your web.xml. I'm running Struts 2 projects on WebLogic 9.2
>> without any problems.
>> 
>> Regards,
>> Randy Burgess
>> Sr. Web Applications Developer
>> Nuvox Communications
>> 
>> 
>> 
>>> From: Vigneswar Nagarathinam <[EMAIL PROTECTED]>
>>> Reply-To: Struts Users Mailing List 
>>> Date: Tue, 5 Feb 2008 17:09:23 +0530
>>> To: 
>>> Subject: Struts 2 and Weblogic 9.2 - java.net.ConnectException
>>> 
>>> Hi All,
>>> I'm trying to implement Struts2 with Weblogic 9.2. I'm getting
>>> the
>>> following error while running the Weblogic server. Can you please help me
>>> by
>>> providing a solution:
>>> 
>>> stack trace:
>>> ---
>>> >> load user defined filter in web.xml:
>>> org.apache.struts2.dispatcher.FilterDispatcher.
>>> Class: weblogic.net.http.HttpClient
>>> File: HttpClient.java
>>> Method: openServer
>>> Line: 320 - weblogic/net/http/HttpClient.java:320:-1
>>> at
>>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfig
>>> ur
>>> ationFiles
>>> (XmlConfigurationProvider.java:835)
>>> at
>>> 
>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocumen
>> t>
>> s
>>> (XmlConfigurationProvider.java:131)
>>> at
>>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(
>>> XmlConfigurationProvider.java:100)
>>> at
>>> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(
>>> DefaultConfiguration.java:130)
>>> at
>>> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
>>> ConfigurationManager.java:52)
>>> Truncated. see log file for complete stacktrace
>>> Tried all: '1' addresses, but could not connect over HTTP to server: '
>>> struts.apache.org', port: '80' - Class: weblogic.net.http.HttpClient
>>> File: HttpClient.java
>>> Method: openServer
>>> Line: 320 - weblogic/net/http/HttpClient.java:320:-1
>>> at
>>> com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:123)
>>> at
>>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfig
>>> ur
>>> ationFiles
>>> (XmlConfigurationProvider.java:830)
>>> at
>>> 
>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocumen
>> t>
>> s
>>> (XmlConfigurationProvider.java:131)
>>> at
>>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(
>>> XmlConfigurationProvider.java:100)
>>> at
>>> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(
>>> DefaultConfiguration.java:130)
>>> Truncated. see log file for complete stacktrace
>>> java.net.ConnectExc

Re: Struts 2 and Weblogic 9.2 - java.net.ConnectException

2008-02-06 Thread Randy Burgess
I've rearranged your web.xml to the correct order below. Context params come
first, then listeners and then filters/filter mappings, servlets/servlet
mappings, etc.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Vigneswar <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 5 Feb 2008 21:15:38 -0800 (PST)
> To: 
> Subject: Re: Struts 2 and Weblogic 9.2 - java.net.ConnectException
> 
> 
> Randy,
> here is my web.xml
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd";>
> 
> 
>   Sample Project
>   Sample Project to Work with Struts2.
>   
> webmaster
> [EMAIL PROTECTED]
> 
>   The EMAIL address of the administrator to whom questions
>   and comments about this application should be addressed.
> 
>   

>  
> contextConfigLocation
> /WEB-INF/applicationContext.xml
> 

>  
> 
> org.springframework.web.context.ContextLoaderListener
> 
> 

>   
>   
> 
> action2
> 
> org.apache.struts2.dispatcher.FilterDispatcher
> 
> 
> 
> action2
> /*
> 
> 

> 
> 
> Thanks & Regards.
> Vigneswar Nagarathinam
> 
> 
> Randy Burgess-3 wrote:
>> 
>> We need to see your web.xml. I'm running Struts 2 projects on WebLogic 9.2
>> without any problems.
>> 
>> Regards,
>> Randy Burgess
>> Sr. Web Applications Developer
>> Nuvox Communications
>> 
>> 
>> 
>>> From: Vigneswar Nagarathinam <[EMAIL PROTECTED]>
>>> Reply-To: Struts Users Mailing List 
>>> Date: Tue, 5 Feb 2008 17:09:23 +0530
>>> To: 
>>> Subject: Struts 2 and Weblogic 9.2 - java.net.ConnectException
>>> 
>>> Hi All,
>>> I'm trying to implement Struts2 with Weblogic 9.2. I'm getting
>>> the
>>> following error while running the Weblogic server. Can you please help me
>>> by
>>> providing a solution:
>>> 
>>> stack trace:
>>> ---
>>> >> load user defined filter in web.xml:
>>> org.apache.struts2.dispatcher.FilterDispatcher.
>>> Class: weblogic.net.http.HttpClient
>>> File: HttpClient.java
>>> Method: openServer
>>> Line: 320 - weblogic/net/http/HttpClient.java:320:-1
>>> at
>>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfig
>>> ur
>>> ationFiles
>>> (XmlConfigurationProvider.java:835)
>>> at
>>> 
>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocumen
>> t>
>> s
>>> (XmlConfigurationProvider.java:131)
>>> at
>>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(
>>> XmlConfigurationProvider.java:100)
>>> at
>>> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(
>>> DefaultConfiguration.java:130)
>>> at
>>> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
>>> ConfigurationManager.java:52)
>>> Truncated. see log file for complete stacktrace
>>> Tried all: '1' addresses, but could not connect over HTTP to server: '
>>> struts.apache.org', port: '80' - Class: weblogic.net.http.HttpClient
>>> File: HttpClient.java
>>> Method: openServer
>>> Line: 320 - weblogic/net/http/HttpClient.java:320:-1
>>> at
>>> com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:123)
>>> at
>>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfig
>>> ur
>>> ationFiles
>>> (XmlConfigurationProvider.java:830)
>>> at
>>> 
>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocumen
>> t>
>> s
>>> (XmlConfigurationProvider.java:131)
>>> at
>>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(
>>> XmlConfigurationProvider.java:100)
>>> at
>>> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(
>>> DefaultConfiguration.java:130)
>>> Truncated. see log file for complete stacktrace
>>> java.net.ConnectException: Tried all: '1' addresses, but could not
>>> connect
>>> over HTTP to server: 'struts.apache.org', port: '80'
>>>

Re: Struts 2 and Weblogic 9.2 - java.net.ConnectException

2008-02-05 Thread Randy Burgess
We need to see your web.xml. I'm running Struts 2 projects on WebLogic 9.2
without any problems.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Vigneswar Nagarathinam <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 5 Feb 2008 17:09:23 +0530
> To: 
> Subject: Struts 2 and Weblogic 9.2 - java.net.ConnectException
> 
> Hi All,
> I'm trying to implement Struts2 with Weblogic 9.2. I'm getting the
> following error while running the Weblogic server. Can you please help me by
> providing a solution:
> 
> stack trace:
> ---
>  load user defined filter in web.xml:
> org.apache.struts2.dispatcher.FilterDispatcher.
> Class: weblogic.net.http.HttpClient
> File: HttpClient.java
> Method: openServer
> Line: 320 - weblogic/net/http/HttpClient.java:320:-1
> at
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigur
> ationFiles
> (XmlConfigurationProvider.java:835)
> at
> 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocument>
s
> (XmlConfigurationProvider.java:131)
> at
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(
> XmlConfigurationProvider.java:100)
> at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(
> DefaultConfiguration.java:130)
> at
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
> ConfigurationManager.java:52)
> Truncated. see log file for complete stacktrace
> Tried all: '1' addresses, but could not connect over HTTP to server: '
> struts.apache.org', port: '80' - Class: weblogic.net.http.HttpClient
> File: HttpClient.java
> Method: openServer
> Line: 320 - weblogic/net/http/HttpClient.java:320:-1
> at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:123)
> at
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigur
> ationFiles
> (XmlConfigurationProvider.java:830)
> at
> 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocument>
s
> (XmlConfigurationProvider.java:131)
> at
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(
> XmlConfigurationProvider.java:100)
> at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(
> DefaultConfiguration.java:130)
> Truncated. see log file for complete stacktrace
> java.net.ConnectException: Tried all: '1' addresses, but could not connect
> over HTTP to server: 'struts.apache.org', port: '80'
> at weblogic.net.http.HttpClient.openServer(HttpClient.java:320)
> at weblogic.net.http.HttpClient.openServer(HttpClient.java:375)
> at weblogic.net.http.HttpClient.(HttpClient.java:149)
> at weblogic.net.http.HttpClient.New(HttpClient.java:245)
> at weblogic.net.http.HttpURLConnection.connect(
> HttpURLConnection.java:160)
> Truncated. see log file for complete stacktrace>
> 
> Thanks in advance,
> Vigneswar Nagarathinam



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Custom OGNL PropertyAccessor

2008-02-05 Thread Randy Burgess
My bad. I just did a search for ognl and came up with that real quickly. I
didn't go through my search results very thoroughly. :)

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Dave Newton <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 5 Feb 2008 13:11:57 -0800 (PST)
> To: Struts Users Mailing List 
> Subject: Re: Custom OGNL PropertyAccessor
> 
> FWIW, OGNL itself is in the ognl.* package.
> 
> Dave
> 
> --- Randy Burgess <[EMAIL PROTECTED]> wrote:
> 
>> I use standard log4J settings. This example is from a log4j.properties file
>> but log4j.xml will work as well. This outputs to the console and since I
>> usually use Eclipse it is very convenient as the output goes right to the
>> console view. The ConversionPattern is usually on one line but it wrapped
>> when I pasted it into this message.
>> 
>> log4j.appender.stdout=org.apache.log4j.ConsoleAppender
>> 
>> log4j.appender.stdout.Target=System.out
>> 
>> log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
>> 
>> log4j.appender.stdout.layout.ConversionPattern=%d{}
>> [%x] %5p %c{2}:%L - %m%n
>> 
>> log4j.logger.com.opensymphony=debug, stdout
>> 
>> This will give you quite a bit more than just OGNL. You could change the
>> above line to this
>> 
>> log4j.logger.com.opensymphony.xwork2.util=debug, stdout
>> 
>> To narrow it down.
>> 
>> Regards,
>> Randy Burgess
>> Sr. Web Applications Developer
>> Nuvox Communications
>> 
>> 
>> 
>>> From: <[EMAIL PROTECTED]>
>>> Reply-To: Struts Users Mailing List 
>>> Date: Tue, 5 Feb 2008 15:38:12 -0500
>>> To: Struts Users Mailing List 
>>> Subject: Re: Custom OGNL PropertyAccessor
>>> 
>>> you can configure the xwork LoggingInterceptor into your 
>> stack..
>>> >> class="com.opensymphony.xwork2.interceptor.LoggingInterceptor"/>
>>> 
>>> looking for clues on OGNL logging???
>>> Anyone?
>>> 
>>> HTH
>>> Martin
>>> - Original Message -
>>> Wrom: QBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCA
>>> To: "Struts Users Mailing List" 
>>> Sent: Tuesday, February 05, 2008 3:05 PM
>>> Subject: Re: Custom OGNL PropertyAccessor
>>> 
>>> 
>>>> No I haven't.  How do I go about doing that?
>>>> 
>>>> Dave Newton wrote:
>>>>> --- Tommy Becker <[EMAIL PROTECTED]> wrote:
>>>>> 
>>>>>> If there were a better description, I'd be happy to give it.  As far
>> as
>>>>>> I can tell, our custom PropertyAccessor is not being used.  What we
>>> want
>>>>>> is to be able to say "property" in an OGNL expression and have it call
>>>>>> getPropertyValue("property"), not getProperty().  It seems it's
>>>>>> continuing to try getProperty() despite our attempt at registering a
>>>>>> custom PropertyAccessor.
>>>>>> 
>>>>> 
>>>>> Have you turned up OGNL and XWork logging?
>>>>> 
>>>>> Dave
>>>>> 
>>>>> 
>>>>>> Laurie Harper wrote:
>>>>>> 
>>>>>>> Tommy Becker wrote:
>>>>>>> 
>>>>>>>> I have a question about using OGNL PropertyAccessors.  We have an
>>>>>>>> object on the value stack that we expose to JSP pages that does not
>>>>>>>> have standard JavaBeans getter/setter methods.  From what I can
>> tell,
>>>>>>>> this leaves us 2 options.  We can either call the getter methods
>>>>>>>> explicitly via OGNL method calls in the pages, or we can wrap the
>>>>>>>> object in a JavaBean-like object.  The second option is unworkable
>> in
>>>>>>>> all but the simplest of cases when you realize that the method calls
>>>>>>>> can themselves return another object that needs to be wrapped, or
>>>>>>>> even a collection of them.  So we've been using method calls in the
>>>>>>>> pages (yeah I know).
>>>>>>>> 
>>>>>>>> Reading through the OGNL docs, it seems that what we need is a
>>>>>>>> PropertyAccessor that knows how t

Re: Custom OGNL PropertyAccessor

2008-02-05 Thread Randy Burgess
I use standard log4J settings. This example is from a log4j.properties file
but log4j.xml will work as well. This outputs to the console and since I
usually use Eclipse it is very convenient as the output goes right to the
console view. The ConversionPattern is usually on one line but it wrapped
when I pasted it into this message.

log4j.appender.stdout=org.apache.log4j.ConsoleAppender

log4j.appender.stdout.Target=System.out

log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

log4j.appender.stdout.layout.ConversionPattern=%d{}
[%x] %5p %c{2}:%L - %m%n

log4j.logger.com.opensymphony=debug, stdout

This will give you quite a bit more than just OGNL. You could change the
above line to this

log4j.logger.com.opensymphony.xwork2.util=debug, stdout

To narrow it down.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 5 Feb 2008 15:38:12 -0500
> To: Struts Users Mailing List 
> Subject: Re: Custom OGNL PropertyAccessor
> 
> you can configure the xwork LoggingInterceptor into your  stack..
>  class="com.opensymphony.xwork2.interceptor.LoggingInterceptor"/>
> 
> looking for clues on OGNL logging???
> Anyone?
> 
> HTH
> Martin
> - Original Message -
> Wrom: QBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCA
> To: "Struts Users Mailing List" 
> Sent: Tuesday, February 05, 2008 3:05 PM
> Subject: Re: Custom OGNL PropertyAccessor
> 
> 
>> No I haven't.  How do I go about doing that?
>> 
>> Dave Newton wrote:
>>> --- Tommy Becker <[EMAIL PROTECTED]> wrote:
>>> 
>>>> If there were a better description, I'd be happy to give it.  As far as
>>>> I can tell, our custom PropertyAccessor is not being used.  What we
> want
>>>> is to be able to say "property" in an OGNL expression and have it call
>>>> getPropertyValue("property"), not getProperty().  It seems it's
>>>> continuing to try getProperty() despite our attempt at registering a
>>>> custom PropertyAccessor.
>>>> 
>>> 
>>> Have you turned up OGNL and XWork logging?
>>> 
>>> Dave
>>> 
>>> 
>>>> Laurie Harper wrote:
>>>> 
>>>>> Tommy Becker wrote:
>>>>> 
>>>>>> I have a question about using OGNL PropertyAccessors.  We have an
>>>>>> object on the value stack that we expose to JSP pages that does not
>>>>>> have standard JavaBeans getter/setter methods.  From what I can tell,
>>>>>> this leaves us 2 options.  We can either call the getter methods
>>>>>> explicitly via OGNL method calls in the pages, or we can wrap the
>>>>>> object in a JavaBean-like object.  The second option is unworkable in
>>>>>> all but the simplest of cases when you realize that the method calls
>>>>>> can themselves return another object that needs to be wrapped, or
>>>>>> even a collection of them.  So we've been using method calls in the
>>>>>> pages (yeah I know).
>>>>>> 
>>>>>> Reading through the OGNL docs, it seems that what we need is a
>>>>>> PropertyAccessor that knows how to operate on our object.  So we
>>>>>> implemented one, and attempted to register it by placing this in our
>>>>>> struts.xml:
>>>>>> 
>>>>>> >>>>> class="our.property.accessor.PropertyAccessor"/>
>>>>>> 
>>>>>> Unfortunately it doesn't work.  Can someone tell me what we're doing
>>>>>> wrong, or even if what we're trying to do is possible?  Thanks!
>>>>>> 
>>>>> I don't know anything about OGNL's PropertyAccessor, but I doubt
>>>>> anyone can offer much help without seeing the code and a better
>>>>> description of the failure than "it doesn't work."
>>>>> 
>>>>> L.
>>>>> 
>>>>> 
>>>>> -
>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>> 
>>>>> 
>>>> NOTICE: This e-mail message is for the sole use of the intended
>>>> recipient(s) and may contain confidential and privileged information of
>>>> Motricity.  Any unauthorized review, use, disclosure or distribution i

Re: dispaytag + Struts 2.1.x: encoding parameters into requestURI

2008-02-05 Thread Randy Burgess
All you should need is a getter in your action for simulationKey and then

>requestURI="/SimulationReport.action?simulationKey=${simulationKey}"
 

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Giovanni Azua <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Tue, 05 Feb 2008 18:17:35 +0100
> To: Struts Users Mailing List 
> Subject: dispaytag + Struts 2.1.x: encoding parameters into requestURI
> 
> hi,
> 
> I require encoding get parameters into the requestURI field but I can't
> find the way e.g.
> 
> <%@ page contentType="text/html; charset=UTF-8"%>
> <%@ taglib prefix="s" uri="/struts-tags"%>
> <%@ taglib prefix="display" uri="http://displaytag.sf.net/el"; %>
> 
>requestURI="/SimulationReport.action?simulationKey=&"
>   export="false" sort="list"
> decorator="com.sag.optimizer.ui.web.displaytag.decorator.StatisticDecorator">
>   
>format="{0,number,0.00}" sortable="true" style="text-align: right;"
> headerClass="sortable" />
>   Statistics
>  
> 
> Assuming I make available a parameter "simulationKey":
> 
> <% String mySimulationKey =
> request.getAttribute("simulationKey").toString(); %>
> 
>requestURI="/SimulationReport.action?simulationKey=<%=mySimulationKey%>&"
> ...
> 
> or
> 
>  value="/SimulationReport.action" >
>  
> 
> 
>requestURI="%{#simulationReport}"
> ...
> 
> I have also tried calling a javascript function and encoding it there
> but does not work either :(
> 
> Any advice?
> 
> regards,
> Giovanni
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   >