Re: Dojo datetimepicker problem

2010-09-09 Thread Rahul Mohan
Andi,

I have noticed this happening once in a while in my app too. haven't 
investigated yet. Did you try to reproduce this with your browser cache 
turned off? 

/Rahul



From:
Andreas Sachs andil...@gmx.de
To:
user@struts.apache.org
Date:
08-09-2010 18:54
Subject:
Dojo datetimepicker problem



Struts: 2.1.8.1 
Hi,
some of my users have a problem with the datetimepicker.
During an order process the users have to provide a date. Almost all users 
can do this (7000 orders). But i have three error reports, that the date 
selection field is not shown (the text input field and the icon to open 
the popup are missing).

Two users have the problem with IE (one with IE8), but Firefox is working.
One user has the problem with IE and Firefox.

The main problem is, that i cannot reproduce the problem on my systems 
(tried with different OS, browsers,... Always working) to debug the 
javascript.

I got the following error message from a user:
Meldung: Das Objekt unterstützt diese Aktion nicht. (Object does not 
support operation)
Line: 1191
Zeichen: 1
Code: 0
URI: https://xx//struts/dojo/struts_dojo.js


Meldung: 'dojo.widget.manager' ist Null oder kein Objekt (is null or not 
an object)
Line: 27
Zeichen: 1
Code: 0
URI: https://xx//struts/ajax/dojoRequire.js


I found the following difference, but i'm not sure if this is related to 
this case:
Typically there are only a few request to dojo javascript files in the 
server log. But the browser of one of the users with the problem request a 
lot of different files.

Does anybody has some ideas what could be wrong?

Thanks
Andi

-- 
GMX DSL SOMMER-SPECIAL: Surf  Phone Flat 16.000 für nur 19,99 Euro/mtl.!*
http://portal.gmx.net/de/go/dsl

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



=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




Managing code between Action Class and JSP.

2010-09-09 Thread anjibman

I need the guideline on how to manage data transfer between JSP and action
class. I am using delegate in Action class to get an list of object from the
server and I have to process then display that list in JSP. 

Right now I am getting that list as object from server in action class, put
it in request object and write scripplets in JSP to process the list in the
request object then display it. 

I don't think it is good practice to put scripplets in JSP. I am not sure
where to put those processing part in different class or in Action class
itself or its ok in JSP itself. 

It will be great if anyone can show me with an example to write the code in
manageable way. 

General implementation what I have right now is: 

Action class 
Delegate delegateObject;
resultList = delegateObject.getResult();
request.setAttribute(result,resultList);

JSP
%
   result = request.getAttribute(result);
   for(loop){
 //Loop to result and display using html tags.
 //e.g. TD%= someField % /TD
   }
%

Thanks in advance
-- 
View this message in context: 
http://old.nabble.com/Managing-code-between-Action-Class-and-JSP.-tp29648167p29648167.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



Managing code between Action Class and JSP.

2010-09-09 Thread anjibman

I need the guideline on how to manage data transfer between JSP and action
class. I am using delegate in Action class to get an list of object from the
server and I have to process then display that list in JSP. 

Right now I am getting that list as object from server in action class, put
it in request object and write scripplets in JSP to process the list in the
request object then display it. 

I don't think it is good practice to put scripplets in JSP. I am not sure
where to put those processing part in different class or in Action class
itself or its ok in JSP itself. 

It will be great if anyone can show me with an example to write the code in
manageable way. 

General implementation what I have right now is: 

Action class 
Delegate delegateObject;
resultList = delegateObject.getResult();
request.setAttribute(result,resultList);

JSP
%
   result = request.getAttribute(result);
   for(loop){
 //Loop to result and display using html tags.
 //e.g. TD%= someField % /TD
   }
%

Thanks in advance
-- 
View this message in context: 
http://old.nabble.com/Managing-code-between-Action-Class-and-JSP.-tp29648186p29648186.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



Re: Managing code between Action Class and JSP.

2010-09-09 Thread Dave Newton
The scriptlets should be replaced by JSTL/custom tags/etc. Anything
that can't be trivially implemented using tags should probably happen
on the server side.

Other than that, I'm not sure what kind of information you're looking
for--maybe you could be more specific if you need further help.

HTH,
Dave

On Thu, Sep 9, 2010 at 10:17 AM, anjibman anji...@hotmail.com wrote:

 I need the guideline on how to manage data transfer between JSP and action
 class. I am using delegate in Action class to get an list of object from the
 server and I have to process then display that list in JSP.

 Right now I am getting that list as object from server in action class, put
 it in request object and write scripplets in JSP to process the list in the
 request object then display it.

 I don't think it is good practice to put scripplets in JSP. I am not sure
 where to put those processing part in different class or in Action class
 itself or its ok in JSP itself.

 It will be great if anyone can show me with an example to write the code in
 manageable way.

 General implementation what I have right now is:

 Action class
 Delegate delegateObject;
 resultList = delegateObject.getResult();
 request.setAttribute(result,resultList);

 JSP
 %
   result = request.getAttribute(result);
   for(loop){
     //Loop to result and display using html tags.
     //e.g. TD%= someField % /TD
   }
 %

 Thanks in advance
 --
 View this message in context: 
 http://old.nabble.com/Managing-code-between-Action-Class-and-JSP.-tp29648167p29648167.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



Latest version release notes and install documentation

2010-09-09 Thread Dave Evans
Hello all,

I went here to get the latest version on struts:
http://struts.apache.org/download.cgi#struts221

The Release Notes link:
http://struts.apache.org/docs/2.2.1/version-notes-221.html returns a
404.

I am looking also for an installation guide. I'm already running many
applications with 2.0.x. My lib directory for those applications
contains about 24 jars or so, of which it looks like maybe 20 are from
the struts distribution. The 2.2.1 Essential Dependencies Only zip
file contains 84 jar files. Are these really all neccessary to run
struts these days?

Thanks,

Dave

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



Re: Latest version release notes and install documentation

2010-09-09 Thread Dave Newton
On Thu, Sep 9, 2010 at 3:51 PM, Dave Evans dsevan...@gmail.com wrote:
 I went here to get the latest version on struts:
 http://struts.apache.org/download.cgi#struts221

 The Release Notes link:
 http://struts.apache.org/docs/2.2.1/version-notes-221.html returns a
 404.

This was brought up and answered a week or two ago:

http://struts.apache.org/2.2.1/docs/version-notes-221.html

IIRC it's fixed for the future.

 Are these really all neccessary to run struts these days?

No; I'd guess that includes all the plugin dependencies.

As far as installation--it's way easier to use Maven.

Dave

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



Re: Managing code between Action Class and JSP.

2010-09-09 Thread anjibman

I will try to put in simple way but this may not be complete picture.

What I am really struggling in is I have processing result in the form of
List of objects. Now if I send this list of objects through request object
to the JSP I have to do all processing on JSP with scriptlets. What would be
the best practice to send such list to JSP ready to grab.

 

Dave Newton-6 wrote:
 
 The scriptlets should be replaced by JSTL/custom tags/etc. Anything
 that can't be trivially implemented using tags should probably happen
 on the server side.
 
 Other than that, I'm not sure what kind of information you're looking
 for--maybe you could be more specific if you need further help.
 
 HTH,
 Dave
 
 On Thu, Sep 9, 2010 at 10:17 AM, anjibman anji...@hotmail.com wrote:

 I need the guideline on how to manage data transfer between JSP and
 action
 class. I am using delegate in Action class to get an list of object from
 the
 server and I have to process then display that list in JSP.

 Right now I am getting that list as object from server in action class,
 put
 it in request object and write scripplets in JSP to process the list in
 the
 request object then display it.

 I don't think it is good practice to put scripplets in JSP. I am not sure
 where to put those processing part in different class or in Action class
 itself or its ok in JSP itself.

 It will be great if anyone can show me with an example to write the code
 in
 manageable way.

 General implementation what I have right now is:

 Action class
 Delegate delegateObject;
 resultList = delegateObject.getResult();
 request.setAttribute(result,resultList);

 JSP
 %
   result = request.getAttribute(result);
   for(loop){
     //Loop to result and display using html tags.
     //e.g. TD%= someField % /TD
   }
 %

 Thanks in advance
 --
 View this message in context:
 http://old.nabble.com/Managing-code-between-Action-Class-and-JSP.-tp29648167p29648167.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
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Managing-code-between-Action-Class-and-JSP.-tp29648167p29670923.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



Re: Managing code between Action Class and JSP.

2010-09-09 Thread Dave Newton
On Thu, Sep 9, 2010 at 4:12 PM, anjibman anji...@hotmail.com wrote:
 I will try to put in simple way but this may not be complete picture.

 What I am really struggling in is I have processing result in the form of
 List of objects. Now if I send this list of objects through request object
 to the JSP I have to do all processing on JSP with scriptlets. What would be
 the best practice to send such list to JSP ready to grab.

The list will be sent as you're sending it now: that's how you get
data to the JSP (view) layer.

The view layer should use either JSTL or custom tags. If there's more
complicated processing than can be handled simply via tags, that
processing should take place on the server side.

I'm not sure what other kind of information you're looking for.

Dave

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



Re: Managing code between Action Class and JSP.

2010-09-09 Thread Dale Newfield

On 9/9/10 4:12 PM, anjibman wrote:

What I am really struggling in is I have processing result in the form of
List of objects.



What would be the best practice to send such list to JSP ready to grab.


Best practice is to store it inside the action, and add a getter to your 
action that returns the list:


public ListFoo getResultObjects()

Then in the jsp use tags like these:

ul
  s:iterator value=%{resultObjects} var=aFoo
lis:property value=%{#aFoo.propertyName} //li
  /s:iterator
/ul

The language used inside those %{} is called OGNL (Object Graph 
Navigation Language).  It can access data held either in a named map 
(aFoo for example, addressed with a #) or by searching the value stack 
(which typically has the action as the top item, so resultObjects winds 
up calling your action's getResultObjects() method).


http://struts.apache.org/2.2.1/docs/ognl.html
http://www.opensymphony.com/ognl/html/LanguageGuide/index.html

-Dale

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



Re: Managing code between Action Class and JSP.

2010-09-09 Thread Greg Lindholm
I assumed from his example that he was using Strut1.

Maybe he could tell us so we don't have to guess and give wrong info.


On Thu, Sep 9, 2010 at 4:53 PM, Dale Newfield d...@newfield.org wrote:
 On 9/9/10 4:12 PM, anjibman wrote:

 What I am really struggling in is I have processing result in the form of
 List of objects.

 What would be the best practice to send such list to JSP ready to grab.

 Best practice is to store it inside the action, and add a getter to your
 action that returns the list:

 public ListFoo getResultObjects()

 Then in the jsp use tags like these:

 ul
  s:iterator value=%{resultObjects} var=aFoo
    lis:property value=%{#aFoo.propertyName} //li
  /s:iterator
 /ul

 The language used inside those %{} is called OGNL (Object Graph Navigation
 Language).  It can access data held either in a named map (aFoo for example,
 addressed with a #) or by searching the value stack (which typically has
 the action as the top item, so resultObjects winds up calling your action's
 getResultObjects() method).

 http://struts.apache.org/2.2.1/docs/ognl.html
 http://www.opensymphony.com/ognl/html/LanguageGuide/index.html

 -Dale

 -
 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: Latest version release notes and install documentation

2010-09-09 Thread Dave Evans
On Thu, Sep 9, 2010 at 12:58 PM, Dave Newton davelnew...@gmail.com wrote:
 On Thu, Sep 9, 2010 at 3:51 PM, Dave Evans dsevan...@gmail.com wrote:
 I went here to get the latest version on struts:
 http://struts.apache.org/download.cgi#struts221

 The Release Notes link:
 http://struts.apache.org/docs/2.2.1/version-notes-221.html returns a
 404.

 This was brought up and answered a week or two ago:

 http://struts.apache.org/2.2.1/docs/version-notes-221.html

 IIRC it's fixed for the future.

 Are these really all neccessary to run struts these days?

 No; I'd guess that includes all the plugin dependencies.

 As far as installation--it's way easier to use Maven.

 Dave

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



Thanks for the reply. Do you (or anyone else) know what set of jars is
the minimum requirement to use Struts? I'm only using the framework,
no plugins, no tags.

I doubt maven is really necessary for my purposes. I already have my
own skeletal application starter, I just need to copy the minimal
collection of jars into the lib directory. If maven can do that, I
guess that would be helpful. Probably the fact that I don't know maven
figures into my reluctance.

Dave

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



Managing code between Action Class and JSP.

2010-09-09 Thread Anjib


 Yes I am using Struts1.

On 9/9/2010 5:10 PM, Greg Lindholm wrote:

I assumed from his example that he was using Strut1.

Maybe he could tell us so we don't have to guess and give wrong info.


On Thu, Sep 9, 2010 at 4:53 PM, Dale Newfieldd...@newfield.org  wrote:

On 9/9/10 4:12 PM, anjibman wrote:

What I am really struggling in is I have processing result in the form of
List of objects.
What would be the best practice to send such list to JSP ready to grab.

Best practice is to store it inside the action, and add a getter to your
action that returns the list:

public ListFoo  getResultObjects()

Then in the jsp use tags like these:

ul
  s:iterator value=%{resultObjects} var=aFoo
lis:property value=%{#aFoo.propertyName} //li
  /s:iterator
/ul

The language used inside those %{} is called OGNL (Object Graph Navigation
Language).  It can access data held either in a named map (aFoo for example,
addressed with a #) or by searching the value stack (which typically has
the action as the top item, so resultObjects winds up calling your action's
getResultObjects() method).

http://struts.apache.org/2.2.1/docs/ognl.html
http://www.opensymphony.com/ognl/html/LanguageGuide/index.html

-Dale

-
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: Dojo datetimepicker problem

2010-09-09 Thread Lumeng
I never use the Dojo framework,he he 

2010/9/9 Rahul Mohan rahul.mo...@tcs.com

 Andi,

 I have noticed this happening once in a while in my app too. haven't
 investigated yet. Did you try to reproduce this with your browser cache
 turned off?

 /Rahul



 From:
 Andreas Sachs andil...@gmx.de
 To:
 user@struts.apache.org
 Date:
 08-09-2010 18:54
 Subject:
 Dojo datetimepicker problem



 Struts: 2.1.8.1
 Hi,
 some of my users have a problem with the datetimepicker.
 During an order process the users have to provide a date. Almost all users
 can do this (7000 orders). But i have three error reports, that the date
 selection field is not shown (the text input field and the icon to open
 the popup are missing).

 Two users have the problem with IE (one with IE8), but Firefox is working.
 One user has the problem with IE and Firefox.

 The main problem is, that i cannot reproduce the problem on my systems
 (tried with different OS, browsers,... Always working) to debug the
 javascript.

 I got the following error message from a user:
 Meldung: Das Objekt unterstützt diese Aktion nicht. (Object does not
 support operation)
 Line: 1191
 Zeichen: 1
 Code: 0
 URI: https://xx//struts/dojo/struts_dojo.js


 Meldung: 'dojo.widget.manager' ist Null oder kein Objekt (is null or not
 an object)
 Line: 27
 Zeichen: 1
 Code: 0
 URI: https://xx//struts/ajax/dojoRequire.js


 I found the following difference, but i'm not sure if this is related to
 this case:
 Typically there are only a few request to dojo javascript files in the
 server log. But the browser of one of the users with the problem request a
 lot of different files.

 Does anybody has some ideas what could be wrong?

 Thanks
 Andi

 --
 GMX DSL SOMMER-SPECIAL: Surf  Phone Flat 16.000 für nur 19,99 Euro/mtl.!*
 http://portal.gmx.net/de/go/dsl

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



 =-=-=
 Notice: The information contained in this e-mail
 message and/or attachments to it may contain
 confidential or privileged information. If you are
 not the intended recipient, any dissemination, use,
 review, distribution, printing or copying of the
 information contained in this e-mail message
 and/or attachments to it are strictly prohibited. If
 you have received this communication in error,
 please notify us by reply e-mail or telephone and
 immediately and permanently delete the message
 and any attachments. Thank you





Re: Latest version release notes and install documentation

2010-09-09 Thread Lumeng
for which version?

2010/9/10 Dave Evans dsevan...@gmail.com

 On Thu, Sep 9, 2010 at 12:58 PM, Dave Newton davelnew...@gmail.com
 wrote:
  On Thu, Sep 9, 2010 at 3:51 PM, Dave Evans dsevan...@gmail.com wrote:
  I went here to get the latest version on struts:
  http://struts.apache.org/download.cgi#struts221
 
  The Release Notes link:
  http://struts.apache.org/docs/2.2.1/version-notes-221.html returns a
  404.
 
  This was brought up and answered a week or two ago:
 
  http://struts.apache.org/2.2.1/docs/version-notes-221.html
 
  IIRC it's fixed for the future.
 
  Are these really all neccessary to run struts these days?
 
  No; I'd guess that includes all the plugin dependencies.
 
  As far as installation--it's way easier to use Maven.
 
  Dave
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 

 Thanks for the reply. Do you (or anyone else) know what set of jars is
 the minimum requirement to use Struts? I'm only using the framework,
 no plugins, no tags.

 I doubt maven is really necessary for my purposes. I already have my
 own skeletal application starter, I just need to copy the minimal
 collection of jars into the lib directory. If maven can do that, I
 guess that would be helpful. Probably the fact that I don't know maven
 figures into my reluctance.

 Dave

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




Re: Latest version release notes and install documentation

2010-09-09 Thread Lukasz Lenart
2010/9/9 Dave Evans dsevan...@gmail.com:
 Hello all,

 I went here to get the latest version on struts:
 http://struts.apache.org/download.cgi#struts221

 The Release Notes link:
 http://struts.apache.org/docs/2.2.1/version-notes-221.html returns a
 404.

Link corrected, give around 30 minutes when cache expire


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia 2010 http://javarsovia.pl

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