Re: Problems with my struts_config.xml?

2007-06-27 Thread Søren Blidorf
I upgraded from STRUTS 1.0 and I also upgraded to tomcat 6.0 from a 4.xx

Soren
- Original Message -
From: "Niall Pemberton" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Thursday, June 28, 2007 3:31 AM
Subject: Re: Problems with my struts_config.xml?


On 6/27/07, Søren Blidorf <[EMAIL PROTECTED]> wrote:
> Can anybody see if something is wrong with this struts-config.xml. I have
just upgraded struts to 1.2.9.
>
> And a simple .do call does not work. Nothing happends. I get a blank
screen and no errors is reported i  the logs

Just out of interest what version of Struts were you upgrading from?
Also were you just upgrading Struts - or were you changing other
things as well (like upgading your servlet container)?

Niall


> ***
> http://struts.apache.org/dtds/struts-config_1_2.dtd";>
> 
>
> 
>
>   
> 
>   
>   
>
>
> 
>
>   
> 
>   
>
>
> 
>
>   
>   
>   
>   
>
>
> 
>
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>
>   
>   
>
>
>   
>
>   
>
>   
>
>
> 
>
> ***
>
> BR.
>
> Soren, DK
>

-
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: Problems with my struts_config.xml?

2007-06-27 Thread Niall Pemberton

On 6/27/07, Søren Blidorf <[EMAIL PROTECTED]> wrote:

Can anybody see if something is wrong with this struts-config.xml. I have just 
upgraded struts to 1.2.9.

And a simple .do call does not work. Nothing happends. I get a blank screen and 
no errors is reported i  the logs


Just out of interest what version of Struts were you upgrading from?
Also were you just upgrading Struts - or were you changing other
things as well (like upgading your servlet container)?

Niall



***
http://struts.apache.org/dtds/struts-config_1_2.dtd";>




  

  
  




  

  




  
  
  
  




  
  
  
  
  
  
  
  
  
  

  
  


  

  

  




***

BR.

Soren, DK



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



Re: [s2] how to access page-scoped variables using

2007-06-27 Thread Dave Newton
--- Jeromy Evans wrote:
> This page omits attr from the context map diagram:
> http://struts.apache.org/2.x/docs/ognl.html

Not any more (once it propagates :)

d.



   

Sick sense of humor? Visit Yahoo! TV's 
Comedy with an Edge to see what's on, when. 
http://tv.yahoo.com/collections/222

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



Re: [s2] how to access page-scoped variables using

2007-06-27 Thread Jeromy Evans



It's not left out (of the wiki, but I left it out of
my head, I guess :/
  

I know the feeling!

This page omits attr from the context map diagram:
http://struts.apache.org/2.x/docs/ognl.html

but the equivalent WW page includes it:
http://wiki.opensymphony.com/display/WW/OGNL



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



Re: [s2] how to access page-scoped variables using

2007-06-27 Thread Dave Newton
Whoops!

What he said.

--- Jeromy Evans wrote:
> I'm unsure why this was deliberately left out of the
> duplicate pages of the S2 wiki, but it's still 
> described at WW:

It's not left out (of the wiki, but I left it out of
my head, I guess :/

http://struts.apache.org/2.x/docs/ognl-basics.html

(The weird thing is that I actually used it with a
different custom tag, but apparently promptly forgot
:)

d.



   

Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/

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



Re: [s2] how to access page-scoped variables using

2007-06-27 Thread Jeromy Evans
You can access variables in the page context using the OGNL expression 
#attr.propertyname, although I also prefer JSP EL.


I'm unsure why this was deliberately left out of the duplicate pages of 
the S2 wiki, but it's still described at WW:


See #attr at the bottom of this page:
http://cwiki.apache.org/WW/ognl-basics.html
and here:
http://wiki.opensymphony.com/display/WW/OGNL

It still worked the last time I checked.

Dave Newton wrote:

--- Bill Johnson <[EMAIL PROTECTED]> wrote:
  

I was under the impression that the  tag
could access page-scoped variables, but it doesn't
seem to work for me.



AFAIK  access the OGNL stack, not
scoped variables. 


Session and request are put on the stack, but not
page. Bear in mind if you're running on a JSP 2.0
container you can just use JSP EL; it's in the
container anyway.

d.



   


Choose the right car based on your needs.  Check out Yahoo! Autos new Car 
Finder tool.
http://autos.yahoo.com/carfinder/

-
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] how to access page-scoped variables using

2007-06-27 Thread Dave Newton
--- Bill Johnson <[EMAIL PROTECTED]> wrote:
> I was under the impression that the  tag
> could access page-scoped variables, but it doesn't
> seem to work for me.

AFAIK  access the OGNL stack, not
scoped variables. 

Session and request are put on the stack, but not
page. Bear in mind if you're running on a JSP 2.0
container you can just use JSP EL; it's in the
container anyway.

d.



   

Choose the right car based on your needs.  Check out Yahoo! Autos new Car 
Finder tool.
http://autos.yahoo.com/carfinder/

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



Re: [S2] App generate lot (2GB) of garbage!

2007-06-27 Thread Ing. Andrea Vettori

Thanks

In fact they are already there! I made a mistake writing the email...

Il giorno 27/giu/07, alle ore 22:05, Guillaume Carré ha scritto:


2007/6/23, Ing. Andrea Vettori <[EMAIL PROTECTED]>:

yes the templates are into

WEB-INFO/templates


you have to put them in tour WEB-APP root, meaning the directory
directly above WEB-INF

Freemarker won't find the templates in your WEB-INF directory, meaning
freemarker won't cache them
you might get a performance boost and less generated garbage by
putting the templates in the right directory...
--
Guillaume Carré

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



--
Ing. Andrea Vettori
Consulente per l'Information Technology



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



Re: Struts 2 interceptor and spring problem

2007-06-27 Thread Steve C

BTW, I did see this:

https://issues.apache.org/struts/browse/WW-1576

but i'm using struts 2.0.8 and the xwork version is 2.0.3.  Is this
still an xwork problem that I should ask about on opensymphony?

On 6/27/07, Steve C <[EMAIL PROTECTED]> wrote:

Hello.  I am in the process of migrating my application from webwork
2.2.x to Struts 2 and have encountered a problem.  I have a custom
interceptor which has a member variable injected by Spring.  This
object is a request scoped bean which is contructed using a factory
method from another bean which is a singleton.  So, it looks like
something like this:


MyInterceptor
-->private RequestBasedBean rbb
--> @required
void setRequestBasedBean


in applicationContext.xml:

 
   
 

 

 


This worked fine in webwork, but in struts 2, it looks like it is
trying to construct MyInterceptor at startup time and failing because
when it injects the requestBaseBean, there is no request context and
it fails (Stack trace below).  Note that I am using a request-scoped
bean and it is sort of referred to by a singleton, but I don't think I
need to use a scoped-proxy (which fails anyways, I tried it).  Again,
this worked fine in the WebWork implementation.  So, I'm trying to see

a) what changed with struts 2 interceptor intialization.
b) if it isn't technically a struts 2 problem, what workaround exist
in Spring (I may take this to the spring forums if this is not an
issue around struts 2).

Thanks!  And there is a reason why there are all the singletons and
factory stuff.  Related to legacy support and non-spring aware code.

-Steve


Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
ng bean with name 'requestBasedBean': Scope 'request' is not active
for the current thread; consider defining a scoped proxy for this bean
if you intend to refer to it from a singleton; nested exception is
java.lang.IllegalStateException: No thre
ad-bound request found: Are you referring to request attributes outside of an ac
tual web request? If you are actually operating within a web request and still r
eceive this message,your code is probably running outside of DispatcherServlet/D
ispatcherPortlet: In this case, use RequestContextListener or RequestContextFilt
er to expose the current request.
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:304)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:160)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.autowireByName(AbstractAutowireCapableBeanFactory.java:880)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:828)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:273)
   at com.opensymphony.xwork2.spring.SpringObjectFactory.autoWireBean(Sprin
gObjectFactory.java:167)
   at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringOb
jectFactory.java:154)
   at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringOb
jectFactory.java:128)
   at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:14
3)
   at com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.
java:184)
   ... 52 more
Caused by: java.lang.IllegalStateException: No thread-bound request found: Are y
ou referring to request attributes outside of an actual web request? If you are
actually operating within a web request and still receive this message,your code
 is probably running outside of DispatcherServlet/DispatcherPortlet: In this cas
e, use RequestContextListener or RequestContextFilter to expose the current requ
est.
   at org.springframework.web.context.request.RequestContextHolder.currentR
equestAttributes(RequestContextHolder.java:102)
   at org.springframework.web.context.request.AbstractRequestAttributesScop
e.get(AbstractRequestAttributesScope.java:40)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:285)
   ... 61 more



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



Re: [S2] App generate lot (2GB) of garbage!

2007-06-27 Thread Guillaume Carré

2007/6/23, Ing. Andrea Vettori <[EMAIL PROTECTED]>:

yes the templates are into

WEB-INFO/templates


you have to put them in tour WEB-APP root, meaning the directory
directly above WEB-INF

Freemarker won't find the templates in your WEB-INF directory, meaning
freemarker won't cache them
you might get a performance boost and less generated garbage by
putting the templates in the right directory...
--
Guillaume Carré

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



Re: browser caching

2007-06-27 Thread Laurie Harper

mfnospam wrote:

not sure whether this works - I'm new to s2 myself.
However there seems to be a possibility to configure brwoser caching in 
struts.properties:

struts.serve.static.browserCache=false
maybe this helps

kind regards
matthias


I believe the OP is using Struts 1, though. The equivalent config option 
in S1 is in struts-config.xml, setting the 'nocache' attribute to true. 
From the DTD documentation:


 nocache Set to "true" if you want the controller to add HTTP
 headers for defeating caching to every response from
 this module.  [false]

L.


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



Re: Struts dont react

2007-06-27 Thread Laurie Harper
Try turning on Struts debug logging. Either the request is never getting 
to the Struts Action servlet (perhaps due to a configuration error in 
your web.xml) or it is failing in a way that's not producing any errors. 
Debug logs should help narrow things down.


L.

Søren Blidorf wrote:

Your right! But nothing is written in the logfile.

The Catalina log looks like this:

2007-06-27 07:49:13 org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-80
2007-06-27 07:49:14 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
2007-06-27 07:49:19 org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-80
2007-06-27 07:49:41 org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path:
C:\Programmer\Apache Software Foundation\Tomcat
6.0\bin;.;C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\W
INDOWS\system32\WBEM;C:\Programmer\Fælles filer\Adaptec
Shared\System;C:\Programmer\ATI Technologies\ATI Control
Panel;C:\Programmer\Microsoft SQL Server\80\Tools\BINN;C:\Programmer\Apache
Software Foundation\Tomcat 6.0\lib\sqljdbc.jar
2007-06-27 07:49:43 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
2007-06-27 07:49:43 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 10397 ms
2007-06-27 07:49:44 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
2007-06-27 07:49:44 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
2007-06-27 07:50:24 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-80
2007-06-27 07:50:26 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
2007-06-27 07:50:26 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/981  config=null
2007-06-27 07:50:26 org.apache.catalina.startup.Catalina start
INFO: Server startup in 43674 ms


- Original Message -
From: "Laurie Harper" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, June 26, 2007 11:07 PM
Subject: Re: Struts dont react


Søren Blidorf wrote:

I have upgraded my Struts app to 1.2.9.

I have done it step by step removing all deprecations.

My realm log in still works, but when I do something in my app that "uses"

Struts nothing happens.

Can anybody give me a hint on what to do.


Start with your log files. You haven't provided enough information for
anyone else to debug this for you, so start with basic diagnostics.

L.


-
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 Login example using a session

2007-06-27 Thread Session A Mwamufiya
This is a great link, thanks so much Mark.

Session


> On 6/27/07 10:24 AM, "Toni Lyytikäinen" <[EMAIL PROTECTED]> wrote:
> 
>> Or better yet, create a Login interceptor or Login filter that checks
>> the session and redirects to login page if the required key is not
>> there. Make package(s) of the actions you want to expose to
>> authenticated users only and put the interceptor into that packages
>> interceptor stack.
> 
> Yea, that's the idea:
> 
> http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_intercepto
> r
> 
> Mark
> 
> - 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]



Struts 2 interceptor and spring problem

2007-06-27 Thread Steve C

Hello.  I am in the process of migrating my application from webwork
2.2.x to Struts 2 and have encountered a problem.  I have a custom
interceptor which has a member variable injected by Spring.  This
object is a request scoped bean which is contructed using a factory
method from another bean which is a singleton.  So, it looks like
something like this:


MyInterceptor
-->private RequestBasedBean rbb
--> @required
void setRequestBasedBean


in applicationContext.xml:

 
   
 

 

 


This worked fine in webwork, but in struts 2, it looks like it is
trying to construct MyInterceptor at startup time and failing because
when it injects the requestBaseBean, there is no request context and
it fails (Stack trace below).  Note that I am using a request-scoped
bean and it is sort of referred to by a singleton, but I don't think I
need to use a scoped-proxy (which fails anyways, I tried it).  Again,
this worked fine in the WebWork implementation.  So, I'm trying to see

a) what changed with struts 2 interceptor intialization.
b) if it isn't technically a struts 2 problem, what workaround exist
in Spring (I may take this to the spring forums if this is not an
issue around struts 2).

Thanks!  And there is a reason why there are all the singletons and
factory stuff.  Related to legacy support and non-spring aware code.

-Steve


Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
ng bean with name 'requestBasedBean': Scope 'request' is not active
for the current thread; consider defining a scoped proxy for this bean
if you intend to refer to it from a singleton; nested exception is
java.lang.IllegalStateException: No thre
ad-bound request found: Are you referring to request attributes outside of an ac
tual web request? If you are actually operating within a web request and still r
eceive this message,your code is probably running outside of DispatcherServlet/D
ispatcherPortlet: In this case, use RequestContextListener or RequestContextFilt
er to expose the current request.
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:304)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:160)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.autowireByName(AbstractAutowireCapableBeanFactory.java:880)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:828)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:273)
   at com.opensymphony.xwork2.spring.SpringObjectFactory.autoWireBean(Sprin
gObjectFactory.java:167)
   at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringOb
jectFactory.java:154)
   at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringOb
jectFactory.java:128)
   at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:14
3)
   at com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.
java:184)
   ... 52 more
Caused by: java.lang.IllegalStateException: No thread-bound request found: Are y
ou referring to request attributes outside of an actual web request? If you are
actually operating within a web request and still receive this message,your code
is probably running outside of DispatcherServlet/DispatcherPortlet: In this cas
e, use RequestContextListener or RequestContextFilter to expose the current requ
est.
   at org.springframework.web.context.request.RequestContextHolder.currentR
equestAttributes(RequestContextHolder.java:102)
   at org.springframework.web.context.request.AbstractRequestAttributesScop
e.get(AbstractRequestAttributesScope.java:40)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:285)
   ... 61 more

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



Re: S2 - Deserializing with the JSON plugin

2007-06-27 Thread Musachy Barroso

Ok, it is done (I was bored today :) ). Make sure that the object returned
from the value stack, from the "root" expression is not null.

regards
musachy

On 6/27/07, Max Pimm <[EMAIL PROTECTED]> wrote:


Thanks a million. At the moment i'm not using the interceptor but am
deserializing my variable to a Map using your JSONUtil.deserialize and
then populating my variable inside my action class (i've copied your
JSONInterceptor.populateObject method).

I look forward to doing this in a cleaner way in the future via the
interceptor but for the moment thanks for all these classes in the
plugin. They do their job nicely.

max

Musachy Barroso wrote:
> Nope, the interceptor doesn't have that, but it would be really easy
> to add,
> I will add it on the next few days.
>
> regards
> musachy
>
> On 6/27/07, Max Pimm <[EMAIL PROTECTED]> wrote:
>>
>> I'm using the JSON plugin in one of my actions with the documentation
>> that i've found here
>> (http://cwiki.apache.org/S2PLUGINS/json-plugin.html). My case is a
>> little different as i am not using SMD. I receive calls to the action
>> with parameters passed via the query string. Most of these parameters
do
>> not need to be deserialized but one of them does.
>>
>> I've seen how to specify a root for serialization of the response
>>
>> 
>>   
>> person.job
>>   
>> 
>>
>> But is there anyway to apply the same thing to deserialization in the
>> request?
>>
>>
>>
>> -
>> 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]





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


Re: Spring Injected Preparer

2007-06-27 Thread Martin Gainty

Hi Stan

Looks as if this is possible if you create your own ControllerSupport 
classes (and config the classes as Spring Managed beans)

http://forum.springframework.org/showthread.php?t=17091

Anyone else?
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: "stanlick" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, June 27, 2007 2:08 PM
Subject: Spring Injected Preparer




I am trying to discover a way to inject my Tiles "controllers" using 
Spring.

My Struts 2 site is wired using Spring with the exception of the Tiles
objects.  Does anyone know if this is supported?  I'm not seeing much
traffic on the Tiles forum.

Thanks,
Scott
--
View this message in context: 
http://www.nabble.com/Spring-Injected-Preparer-tf3989965.html#a11329593

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]



Spring Injected Preparer

2007-06-27 Thread stanlick

I am trying to discover a way to inject my Tiles "controllers" using Spring. 
My Struts 2 site is wired using Spring with the exception of the Tiles
objects.  Does anyone know if this is supported?  I'm not seeing much
traffic on the Tiles forum.

Thanks,
Scott
-- 
View this message in context: 
http://www.nabble.com/Spring-Injected-Preparer-tf3989965.html#a11329593
Sent from the Struts - User mailing list archive at Nabble.com.


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



Dao subclass

2007-06-27 Thread Zhang, Larry \(L.\)

 I have a question, is it a good practice to subclass dao? Thanks

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



[s2] how to access page-scoped variables using

2007-06-27 Thread Bill Johnson
I was under the impression that the  tag
could access page-scoped variables, but it doesn't
seem to work for me.

I am using the displaytag library for creating tables
as shown here:


  
  
  
  id: 


In the last column I am trying to reference the
page-scoped "row" object that is created by
displaytag. For some reason, my use of the
 tag isn't working:



Any ideas?

I can access the page-scoped "row" object using the
following JSTL code:



I'd prefer to stick to the Struts 2 tags and not have
to use JSTL if possible. I just want less libraries in
volved.

-Bill


   

Get the Yahoo! toolbar and be alerted to new email wherever you're surfing.
http://new.toolbar.yahoo.com/toolbar/features/mail/index.php

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



Re: error page at login

2007-06-27 Thread Martin Gainty
attachment?

M-
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

  - Original Message - 
  From: Tony Yawe 
  To: user@struts.apache.org 
  Sent: Wednesday, June 27, 2007 3:37 AM
  Subject: Re: error page at login


  The error message is attached!



--


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

Re: Problems with my struts_config.xml?

2007-06-27 Thread Søren Blidorf
Thanks.

This is my web.xml. Which looks alot like your surgestions.

Any idears


action
org.apache.struts.action.ActionServlet

  application
  ApplicationResources


  config
  /WEB-INF/struts-config.xml


  debug
  2


  detail
  2


  driver

com.microsoft.sqlserver.jdbc.SQLServerDriver


  serverName
  127.0.0.1


  url
  jdbc:sqlserver://127.0.0.1


  validate
  true

2
  
  

- Original Message -
From: "Martin Gainty" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 27, 2007 3:52 PM
Subject: Re: Problems with my struts_config.xml?


> Goddag Soren-
>
> //web.xml you'll need
>   
>   
> action
> *.do
>   
>
> //web.xml your servlet-name 'action' will need a servlet-class defined to
> it..
>   
> action
> org.apache.struts.action.ActionServlet
> 
>   config
>   /WEB-INF/struts-config.xml
> 
> 
>   debug
>   3
> 
> 
>   detail
>   3
> 
> 2
>   
>
> Tak/
> Martin-
> This email message and any files transmitted with it contain confidential
> information intended only for the person(s) to whom this email message is
> addressed.  If you have received this email message in error, please
notify
> the sender immediately by telephone or email and destroy the original
> message without making a copy.  Thank you.
>
> - Original Message -
> From: "Søren Blidorf" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" 
> Sent: Wednesday, June 27, 2007 9:06 AM
> Subject: Problems with my struts_config.xml?
>
>
> Can anybody see if something is wrong with this struts-config.xml. I have
> just upgraded struts to 1.2.9.
>
> And a simple .do call does not work. Nothing happends. I get a blank
screen
> and no errors is reported i  the logs
>
> ***
>  Configuration 1.2//EN"
> "http://struts.apache.org/dtds/struts-config_1_2.dtd";>
> 
>
> 
>
>   
> 
>   
>   
>
>
> 
>
>   
> 
>   
>
>
> 
>
>   
>   
>   
>   
>
>
> 
>
>   
>   
>type="org.apache.struts.actions.AddFormBeanAction" />
>type="org.apache.struts.actions.AddForwardAction" />
>type="org.apache.struts.actions.AddMappingAction" />
>/>
>type="org.apache.struts.actions.RemoveFormBeanAction" />
>type="org.apache.struts.actions.RemoveForwardAction" />
>type="org.apache.struts.actions.RemoveMappingAction" />
>   
>
>   
>input="/sob/um.jsp" validate="true" type="um.actions.sob.SearchAction"
> scope="request"> path="/sob/search.jsp" /> path="/sob/searchError.jsp" />
>
>
>   
>
>contentType="text/html"/>
>
>   
>
>
> 
>
> ***
>
> BR.
>
> Soren, DK
>
>


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



Re: [S2] Chinese encoding problem

2007-06-27 Thread Vincent Lin

Chris,

Thank you.
I solved this problem finally.

I use a CharacterEncodingFilter you mentioned to set character encoding to
UTF-8.
Actually I've tried this filter before, but it didn't work.
The reason why it didn't work is the order of fitler mapping is incorrect in
my web.xml.
This filter must be in front of struts 2 filter like this:

   
   SetCharacterEncoding
   /*
   

   
   struts2
   /*
   

But it sitll strange that I've traced the struts 2.0.6 source code and found
that id does change the encoding of HttpServletRequest in
Dispatcher.java(line 650):

   public void prepare(HttpServletRequest request, HttpServletResponse
response) {
   String encoding = null;
   if (defaultEncoding != null) {
   encoding = defaultEncoding;
   }

   Locale locale = null;
   if (defaultLocale != null) {
   locale = LocalizedTextUtil.localeFromString(defaultLocale,
request.getLocale());
   }

   if (encoding != null) {
   try {
   request.setCharacterEncoding(encoding);
   } catch (Exception e) {
   LOG.error("Error setting character encoding to '" + encoding
+ "' - ignoring.", e);
   }
   }

   if (locale != null) {
   response.setLocale(locale);
   }

   if (paramsWorkaroundEnabled) {
   request.getParameter("foo"); // simply read any parameter
(existing or not) to "prime" the request
   }
   }

And there is a setDefaultEncoding() method in line 227:
@Inject(value=StrutsConstants.STRUTS_LOCALE, required=false)
   public static void setDefaultLocale(String val) {
   defaultLocale = val;
   }

It seems to get encoding parameter from struts.propertes with key
struts.i18n.encoding in struts.properties file.
But somehow it doesn't work in my app.

The filter has solved this problem. But I think in struts 2, we shouldn't do
this filter?
It makes the code a bit ugly.

The behaviors in IE and Firefox are different really confuses me.
Why the browser affect the character encoding in HttpServletRequest?

On 6/27/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:


Vincent,

Vincent Lin wrote:
> I use POST in my form.

:(

You mentioned that MSIE seems to fail, while Mozilla Firefox works. Is
this behavior consistent? Does ff always work? Does MSIE always fail?

Can you check to see what character encoding (in the HTTP headers) is
being sent from the client when things work? What about the failure
situation?

It's possible that MSIE is not sending the correct request encoding (or,
more likely,not sending it at all). If you know your clients will (or
should) be sending UTF-8 all the time, you could use the
CharacterEncodingFilter mentioned on this list several times to simply
override the default encoding used when the browser sends no encoding
(or override it unconditionally). This might work.

-chris






Re: S2 - Deserializing with the JSON plugin

2007-06-27 Thread Max Pimm
Thanks a million. At the moment i'm not using the interceptor but am 
deserializing my variable to a Map using your JSONUtil.deserialize and 
then populating my variable inside my action class (i've copied your 
JSONInterceptor.populateObject method).


I look forward to doing this in a cleaner way in the future via the 
interceptor but for the moment thanks for all these classes in the 
plugin. They do their job nicely.


max

Musachy Barroso wrote:
Nope, the interceptor doesn't have that, but it would be really easy 
to add,

I will add it on the next few days.

regards
musachy

On 6/27/07, Max Pimm <[EMAIL PROTECTED]> wrote:


I'm using the JSON plugin in one of my actions with the documentation
that i've found here
(http://cwiki.apache.org/S2PLUGINS/json-plugin.html). My case is a
little different as i am not using SMD. I receive calls to the action
with parameters passed via the query string. Most of these parameters do
not need to be deserialized but one of them does.

I've seen how to specify a root for serialization of the response


  
person.job
  


But is there anyway to apply the same thing to deserialization in the
request?



-
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 Login example using a session

2007-06-27 Thread Mark Menard
On 6/27/07 10:24 AM, "Toni Lyytikäinen" <[EMAIL PROTECTED]> wrote:

> Or better yet, create a Login interceptor or Login filter that checks the
> session and redirects to login page if the required key is not there. Make
> package(s) of the actions you want to expose to authenticated users only and
> put the interceptor into that packages interceptor stack.

Yea, that's the idea:

http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor

Mark

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



Re: Struts 2 Login example using a session

2007-06-27 Thread Toni Lyytikäinen

Or better yet, create a Login interceptor or Login filter that checks the
session and redirects to login page if the required key is not there. Make
package(s) of the actions you want to expose to authenticated users only and
put the interceptor into that packages interceptor stack.

On 6/27/07, Wesley Wannemacher <[EMAIL PROTECTED]> wrote:


Hello Session,

See replies in context below -

> -Original Message-
> From: Session Mwamufiya [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 26, 2007 11:58 PM
> To: 'Struts Users Mailing List'
> Subject: Struts 2 Login example using a session
>
> Hi,
>
> I tried to follow the simple login example at
> http://struts.apache.org/2.x/docs/simplelogin-with-session.html, but
there are many
> things that I don't get:
> - first, it's written for webworks, not struts 2, are there any
compatibility issues between the two?

I read that page and I would say that other than using  - second, the session is never set with a timeout attribute, how do we
actually enforce a timeout?

The session timeout period is controlled by the app server as far as I
know. For instance, I have the following using Tomcat4 -


480


> - third, do we need to include a line like  at the
> beginning of every jsp file in our web app to check whether the user
is still logged in; or is there
> a more general way of ensuring that.

I took a different approach than the authors of that page (and may
update the wiki with my code if people feel it is appropriate. First
off, I created a global result named "login" in a global package. When
this result is encountered, it redirects to the Login action. Next, I
created a class that implemented SessionAware and put all of the login
logic in that class. Every action that needs to enforce a login inherits
from that class. With my way, you can avoid includes... If I don't want
to inherit from that "Authenticated" action, I can create a custom tag
with the same logic (check the session for a user object, if not there,
redirect to the Login action).




Thanks,

Session A. Mwamufiya
Carnegie Mellon University
MBA | Tepper School of Business
MSE (software eng.) | School of Computer Science
T: (412) 508-5455 | [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: [S2] Chinese encoding problem

2007-06-27 Thread Christopher Schultz
Vincent,

Vincent Lin wrote:
> I use POST in my form.

:(

You mentioned that MSIE seems to fail, while Mozilla Firefox works. Is
this behavior consistent? Does ff always work? Does MSIE always fail?

Can you check to see what character encoding (in the HTTP headers) is
being sent from the client when things work? What about the failure
situation?

It's possible that MSIE is not sending the correct request encoding (or,
more likely,not sending it at all). If you know your clients will (or
should) be sending UTF-8 all the time, you could use the
CharacterEncodingFilter mentioned on this list several times to simply
override the default encoding used when the browser sends no encoding
(or override it unconditionally). This might work.

-chris




signature.asc
Description: OpenPGP digital signature


Re: [S2] Template testing

2007-06-27 Thread Musachy Barroso

As Ian mentioned if you look at the testcases here:

http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/test/java/org/apache/struts2/views/jsp/ui/

you will get an idea, basically an instance of the tag is created, the
output is written to an StringWriter and at the end the spaces are removed
and compared to a file with the expected output.

musachy

On 6/27/07, Mark P Ashworth <[EMAIL PROTECTED]> wrote:



Good Day,

I am busy in the process of developing a theme that uses the css_xhtml
theme
as the base and currently the process is

1. Make a change to the template
2. Deploy and run the application
3. Determine in the HTML why something does not look right

It would be cool if I could make a change and run a test case that shows
the
output. This would help with some of the testing but of course I would
still
need to run the theme in the application to determine if the theme
rendered
correctly but I could cut out some of the testing iterations.

I guess another point is that a person only creates the theme once. Just
wondered how the Struts 2 developers were doing it.

Regards,
Mark P Ashworth


Laurie Harper wrote:
>
> Mark P Ashworth wrote:
>> Is there a way to test how a tag like 
> /> will be processed by a custom theme. I would like to >> get >> all of the theme processing done during development instead of >> integration >> time with the actual pages. > > What do you want to test, exactly? If you have a custom theme, then you > have defined how the tags will be processed (rendered). Are you looking > for an automated testing strategy for verifying your custom theme works > as intended, or something else? > > L. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-S2--Template-testing-tf3980644.html#a11324124 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

Re: S2 - Deserializing with the JSON plugin

2007-06-27 Thread Musachy Barroso

Nope, the interceptor doesn't have that, but it would be really easy to add,
I will add it on the next few days.

regards
musachy

On 6/27/07, Max Pimm <[EMAIL PROTECTED]> wrote:


I'm using the JSON plugin in one of my actions with the documentation
that i've found here
(http://cwiki.apache.org/S2PLUGINS/json-plugin.html). My case is a
little different as i am not using SMD. I receive calls to the action
with parameters passed via the query string. Most of these parameters do
not need to be deserialized but one of them does.

I've seen how to specify a root for serialization of the response


  
person.job
  


But is there anyway to apply the same thing to deserialization in the
request?



-
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


Re: [S2] Chinese encoding problem

2007-06-27 Thread Vincent Lin

I use POST in my form.

On 6/27/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:


Vincent,

Vincent Lin wrote:
> I'm having problem to submit Chinese characters from browser to web
server.

GET, POST, or both?

If it's only failing for GET, check to make sure that your app server
knows to expect UTF-8 strings in URLs (in Tomcat, for instance, this is
specified in the  element of your configuration).

-chris






Re: [S2] Chinese encoding problem

2007-06-27 Thread Christopher Schultz
Vincent,

Vincent Lin wrote:
> I'm having problem to submit Chinese characters from browser to web server.

GET, POST, or both?

If it's only failing for GET, check to make sure that your app server
knows to expect UTF-8 strings in URLs (in Tomcat, for instance, this is
specified in the  element of your configuration).

-chris




signature.asc
Description: OpenPGP digital signature


Re: [S2] Template testing

2007-06-27 Thread Ian Roughley
Take a look in the source, I believe there are examples on how the theme 
templates are tested.


/Ian

Mark P Ashworth wrote:


Good Day,

I am busy in the process of developing a theme that uses the css_xhtml theme
as the base and currently the process is

1. Make a change to the template
2. Deploy and run the application
3. Determine in the HTML why something does not look right

It would be cool if I could make a change and run a test case that shows the
output. This would help with some of the testing but of course I would still
need to run the theme in the application to determine if the theme rendered
correctly but I could cut out some of the testing iterations.

I guess another point is that a person only creates the theme once. Just
wondered how the Struts 2 developers were doing it.

Regards,
Mark P Ashworth


Laurie Harper wrote:
 


Mark P Ashworth wrote:
   


Is there a way to test how a tag like 
will be processed by a custom theme. I would like to get all of the theme processing done during development instead of integration time with the actual pages. What do you want to test, exactly? If you have a custom theme, then you have defined how the tags will be processed (rendered). Are you looking for an automated testing strategy for verifying your custom theme works as intended, or something else? L. - 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]

Struts2Webflow plugin

2007-06-27 Thread Rikard

Well hi hehe another post on webflow ..

1. Any one tried out the feuture "SWF flow execution key can be managed in
the session rather than as a hidden field on the client." dont whant to
havae hidden params in jsp.? The example is only using the hidden param in
jsp.


2. Currently im trying to add a previous button on the example(with the
hidden params logic). Added a submit button with a hidden param set to prev
and added a new view transition but that did not work either :/ any
suggestions ?

/Rille
-- 
View this message in context: 
http://www.nabble.com/Struts2Webflow-plugin-tf3988293.html#a11324250
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: [S2] Template testing

2007-06-27 Thread Mark P Ashworth

Good Day,

I am busy in the process of developing a theme that uses the css_xhtml theme
as the base and currently the process is

1. Make a change to the template
2. Deploy and run the application
3. Determine in the HTML why something does not look right

It would be cool if I could make a change and run a test case that shows the
output. This would help with some of the testing but of course I would still
need to run the theme in the application to determine if the theme rendered
correctly but I could cut out some of the testing iterations.

I guess another point is that a person only creates the theme once. Just
wondered how the Struts 2 developers were doing it.

Regards,
Mark P Ashworth


Laurie Harper wrote:
> 
> Mark P Ashworth wrote:
>> Is there a way to test how a tag like 
> /> will be processed by a custom theme. I would like to >> get >> all of the theme processing done during development instead of >> integration >> time with the actual pages. > > What do you want to test, exactly? If you have a custom theme, then you > have defined how the tags will be processed (rendered). Are you looking > for an automated testing strategy for verifying your custom theme works > as intended, or something else? > > L. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-S2--Template-testing-tf3980644.html#a11324124 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

S2 - Deserializing with the JSON plugin

2007-06-27 Thread Max Pimm
I'm using the JSON plugin in one of my actions with the documentation 
that i've found here 
(http://cwiki.apache.org/S2PLUGINS/json-plugin.html). My case is a 
little different as i am not using SMD. I receive calls to the action 
with parameters passed via the query string. Most of these parameters do 
not need to be deserialized but one of them does.


I've seen how to specify a root for serialization of the response


 
   person.job
 


But is there anyway to apply the same thing to deserialization in the request?



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



Problems with my struts_config.xml?

2007-06-27 Thread Søren Blidorf
Can anybody see if something is wrong with this struts-config.xml. I have just 
upgraded struts to 1.2.9.

And a simple .do call does not work. Nothing happends. I get a blank screen and 
no errors is reported i  the logs

***
http://struts.apache.org/dtds/struts-config_1_2.dtd";>




  

  
  




  

  




  
  
  
  




  
  
  
  
  
  
  
  
  
  

  
  


  

  

  




***

BR.

Soren, DK


Re: [S2] Chinese encoding problem

2007-06-27 Thread Vincent Lin

But why does it works in Firefox while it doesn't work in IE?
I think it might be caused by different http request header made by IE and
Firefox.
There might be an Interceptor or servlet filter in struts2 which change the
character encoding according to the header of http request.


On 6/27/07, Emilia Ipate <[EMAIL PROTECTED]> wrote:


There is no interceptor, from what I know.

You should try to found where exactly lies the problem:
- is struts doing something wrong or the request got from the client is
already bad. You can check that by looking in the HttpRequest object, in
the debug mode


Emilia
-Original Message-
From: Vincent Lin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 27, 2007 1:30 PM
To: Struts Users Mailing List
Subject: Re: [S2] Chinese encoding problem

Emilia,

I've tried -Dclient.encoding.override=UTF-8, it doesn't seem to change
anything.

It's really wired that when I use IE, the Chinese characters will be
scramble.
But when I use firefox, it works correctly.

The funny thing is that the browser language setting of my IE is "zh_TW"
while the setting in firefox is "en".

Is there any interceptor in S2 changing the encoding of request?

On 6/27/07, Emilia Ipate <[EMAIL PROTECTED]> wrote:
>
> Vincent,
> Your server must have as a Java VM Argument this line:
>   -Dclient.encoding.override=UTF-8
>
> (search on google client.encoding.override and you will find more)
> Emilia
>
>
>
>
>
> -Original Message-
> From: Vincent Lin [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 27, 2007 12:56 PM
> To: Struts Users Mailing List
> Subject: Re: [S2] Chinese encoding problem
>
> By the way the settings in my JSP:
>
> <%@ page contentType="text/html; charset=UTF-8" %>
>
> 
>
> Did I miss anything else?
>
> On 6/27/07, Vincent Lin <[EMAIL PROTECTED]> wrote:
> >
> > Hi
> >
> > I'm having problem to submit Chinese characters from browser to web
> > server.
> >
> > I have the following  settings in struts.properties:
> >
> > struts.locale=zh_TW
> > struts.i18n.encoding=UT8
> >
> > But when I submit Chinese characters to web server.
> > It gets scrambled characters.
> > (The wierd thing is that sometimes the server gets correct Chinese
> > characters.)
> >
> > I've tried to use an interceptor to do
> req.setCharacterEncoding("UTF-8").
> > It doesn't work.
> >
> > I've tried to use Servlet Filter to do
> req.setCharacterEncoding("UTF-8")
> > too.
> > (It's the way we solve Chinese problem in struts 1 environment).
> > It still doesn't work.
> >
> > Does anyone know how to solve this problem?
> >
> > Thanks a lot!
> >
>
> -
> 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] login action w/FORM authentication?

2007-06-27 Thread Wesley Wannemacher
 

> -Original Message-
> From: Jon Wilmoth [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 26, 2007 8:24 PM
> To: Struts Users Mailing List
> Subject: Re: [S2] login action w/FORM authentication?

[snip]
> This is a major bummer to say the least.  I'm not sure if the tomcat
implementation of the servlet 
> spec is flawed, if there's a gap in the servlet spec or what.  I am
surprised I'm the first S2 user 
> to run into this.  I'd GREATLY appreciate if one of the Struts
developers had a workaround 
> suggestion.  For example would it be feasible to port FilterDispatcher
to a servlet?

I tried to set the welcome-file to an action and did not succeed... To
workaround it, I tried a few things: First, I made a static HTML file
that does a plain-ol' meta-refresh/redirect to the action. Secnd, I'm
using apache in front of my app server, so I did some mod_rewrite rules
so that when certain files are requested, apache redirects them to the
place where I want them to go.

-Wes

- Original Message 
From: Jon Wilmoth <[EMAIL PROTECTED]>
To: Struts Users Mailing List 
Sent: Monday, June 25, 2007 7:14:52 PM
Subject: Re: [S2] login action w/FORM authentication?


Well I've been able to prove it's possible with S1.  I added a struts 1
action to log when it was called and forward to a s1 based login.jsp and
changed the web.xml to /login.action.


Is it possible that the architectural change to filters instead of
servlets requires some sort of special configuration with container
managed authentication?  Is it only tomcat that requires a special
struts2 configuration?

- Original Message 
From: Ian Roughley <[EMAIL PROTECTED]>
To: Struts Users Mailing List 
Sent: Monday, June 25, 2007 11:08:41 AM
Subject: Re: [S2] login action w/FORM authentication?


yes - it is definitely possible.  The thing to remember is that if you
are using struts2 tags (which I'm pretty sure you are), you need to
redirect through an action first so the value stack is available to the
tag.

/Ian

Jon Wilmoth wrote:

>To add a little more context...The login action loads the login.jsp
just fine when called directly, but doesn't work when invoked by the
servlet container.  Instead I see the following in the Tomcat log:
>
>Jun-25-2007 10:31:30:865 AM, PDT [DEBUG]
(org.apache.catalina.authenticator.FormAuthenticator) - Save request in
session '930B154E1AD9BFB1283165CD888441EF'
>Jun-25-2007 10:31:33:053 AM, PDT [DEBUG] 
>(org.apache.catalina.core.ApplicationDispatcher) - 
>servletPath=/login.action, pathInfo=null, queryString=null, name=null
>Jun-25-2007 10:31:33:053 AM, PDT [DEBUG] 
>(org.apache.catalina.core.ApplicationDispatcher) -  Path Based Forward
>Jun-25-2007 10:31:33:053 AM, PDT [DEBUG] 
>(org.apache.catalina.core.ApplicationDispatcher) -  Disabling the 
>response for futher output
>
>I tried configuring the app to go directly to the login jsp page, but
the struts2 tags throw the following NullPointer:
>
>Jun-25-2007 10:36:03:552 AM, PDT [ERROR] 
>(org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/myweba
>pp].[jsp]) - Servlet.service() for servlet jsp threw exception 
>java.lang.NullPointerException  at 
>org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:58)
> at 
>org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTa
>gSupport.java:52)  at 
>org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTa
>gSupport.java:49)  at 
>org.apache.jsp.login_jsp._jspx_meth_s2ib_005furl_005f0(login_jsp.java:5
>03)  at org.apache.jsp.login_jsp._jspService(login_jsp.java:111)
>
>If this is off topic and I should post this to the Tomcat user list
please let me know...it just seems to me that other S2 users may have
this same question.
>
>- Original Message 
>From: Jon Wilmoth <[EMAIL PROTECTED]>
>To: user@struts.apache.org
>Sent: Sunday, June 24, 2007 9:21:02 PM
>Subject: [S2] login action w/FORM authentication?
>
>
>Is it possible to use an action as the webapp's login page?  I've tried
the following web.xml/struts.xml entries with S2.0.8 & Tomcat 5.5.23,
but get a 404 The requested resource (/mywebapp/login.action) is not
available message.
>
>
>FORM
>
>/login.action
>/loginFailure.action
>
>
>
>
>/login.jsp
>
>  
>

-
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]


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



RE: Struts 2 Login example using a session

2007-06-27 Thread Wesley Wannemacher
Hello Session, 

See replies in context below -  

> -Original Message-
> From: Session Mwamufiya [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 26, 2007 11:58 PM
> To: 'Struts Users Mailing List'
> Subject: Struts 2 Login example using a session
> 
> Hi,
> 
> I tried to follow the simple login example at 
> http://struts.apache.org/2.x/docs/simplelogin-with-session.html, but
there are many 
> things that I don't get:
> - first, it's written for webworks, not struts 2, are there any
compatibility issues between the two?

I read that page and I would say that other than using  - second, the session is never set with a timeout attribute, how do we
actually enforce a timeout?

The session timeout period is controlled by the app server as far as I
know. For instance, I have the following using Tomcat4 - 


480


> - third, do we need to include a line like  at the 
> beginning of every jsp file in our web app to check whether the user
is still logged in; or is there 
> a more general way of ensuring that.

I took a different approach than the authors of that page (and may
update the wiki with my code if people feel it is appropriate. First
off, I created a global result named "login" in a global package. When
this result is encountered, it redirects to the Login action. Next, I
created a class that implemented SessionAware and put all of the login
logic in that class. Every action that needs to enforce a login inherits
from that class. With my way, you can avoid includes... If I don't want
to inherit from that "Authenticated" action, I can create a custom tag
with the same logic (check the session for a user object, if not there,
redirect to the Login action). 




Thanks,

Session A. Mwamufiya
Carnegie Mellon University
MBA | Tepper School of Business
MSE (software eng.) | School of Computer Science
T: (412) 508-5455 | [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]



Struts2Webflow plugin

2007-06-27 Thread Rikard

Hello! 

Im currently trying out the webflow plugin for S2 and trying out the example
i got an exception. 
It happens when i got to step2 i click on backbutton on browser and then on
step1 i try to go to step2. 
Then i got a 
"javax.servlet.ServletException:
org.springframework.webflow.engine.NoMatchingTransitionException: No
transition found on occurence of event 'submit' in state 'calcRate' of flow
'test-webflow-config' -- valid transitional criteria are
array[[eventId = 'finish']] -- likely programmer error,
check the set of TransitionCriteria for this state
"
Exception. Cant webflow handle backbutton submits? 

Regards Rille 
-- 
View this message in context: 
http://www.nabble.com/Struts2Webflow-plugin-tf3987938.html#a11323241
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-27 Thread vbharath19

it just sets a variable that i need to use in the action.


newton.dave wrote:
> 
> What does the "upload()" method in your
>  do?
> 
> --- vbharath19 <[EMAIL PROTECTED]> wrote:
> 
>> 
>> when i get the formfile using getthefile
>> 
>> 
>> 
>> newton.dave wrote:
>> > 
>> > --- vbharath19 <[EMAIL PROTECTED]> wrote:
>> >> if (actioncalled!=null &&
>> > actioncalled.equals("upload")) {
>> >> System.out.println("inside upload action");
>> >> FormFile myFile =
>> deploymentForm.getTheFile();
>> >> }
>> > 
>> > We're getting there. Now, which line is throwing?
>> > 
>> > d.
>> > 
>> > 
>> > 
>> >
>> >
>>
> 
>> > Yahoo! oneSearch: Finally, mobile search 
>> > that gives answers, not web links. 
>> >
>>
> http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
>> > 
>> >
>>
> -
>> > To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> > For additional commands, e-mail:
>> [EMAIL PROTECTED]
>> > 
>> > 
>> > 
>> 
>> -- 
>> View this message in context:
>>
> http://www.nabble.com/Form-Upload-throwing-null-pointer.-cannot-retrieve-the-file-in-action-class..HELP-URGENT%21%21%21-tf3983276.html#a11315299
>> Sent from the Struts - User mailing list archive at
>> Nabble.com.
>> 
>> 
>>
> -
>> To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>> 
>> 
> 
> 
> 
>
> 
> Building a website is a piece of cake. Yahoo! Small Business gives you all
> the tools to get online.
> http://smallbusiness.yahoo.com/webhosting 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Form-Upload-throwing-null-pointer.-cannot-retrieve-the-file-in-action-class..HELP-URGENT%21%21%21-tf3983276.html#a11322777
Sent from the Struts - User mailing list archive at Nabble.com.


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



RE: [S2] Chinese encoding problem

2007-06-27 Thread Emilia Ipate
There is no interceptor, from what I know.

You should try to found where exactly lies the problem:
- is struts doing something wrong or the request got from the client is
already bad. You can check that by looking in the HttpRequest object, in
the debug mode


Emilia
-Original Message-
From: Vincent Lin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 27, 2007 1:30 PM
To: Struts Users Mailing List
Subject: Re: [S2] Chinese encoding problem

Emilia,

I've tried -Dclient.encoding.override=UTF-8, it doesn't seem to change
anything.

It's really wired that when I use IE, the Chinese characters will be
scramble.
But when I use firefox, it works correctly.

The funny thing is that the browser language setting of my IE is "zh_TW"
while the setting in firefox is "en".

Is there any interceptor in S2 changing the encoding of request?

On 6/27/07, Emilia Ipate <[EMAIL PROTECTED]> wrote:
>
> Vincent,
> Your server must have as a Java VM Argument this line:
>   -Dclient.encoding.override=UTF-8
>
> (search on google client.encoding.override and you will find more)
> Emilia
>
>
>
>
>
> -Original Message-
> From: Vincent Lin [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 27, 2007 12:56 PM
> To: Struts Users Mailing List
> Subject: Re: [S2] Chinese encoding problem
>
> By the way the settings in my JSP:
>
> <%@ page contentType="text/html; charset=UTF-8" %>
>
> 
>
> Did I miss anything else?
>
> On 6/27/07, Vincent Lin <[EMAIL PROTECTED]> wrote:
> >
> > Hi
> >
> > I'm having problem to submit Chinese characters from browser to web
> > server.
> >
> > I have the following  settings in struts.properties:
> >
> > struts.locale=zh_TW
> > struts.i18n.encoding=UT8
> >
> > But when I submit Chinese characters to web server.
> > It gets scrambled characters.
> > (The wierd thing is that sometimes the server gets correct Chinese
> > characters.)
> >
> > I've tried to use an interceptor to do
> req.setCharacterEncoding("UTF-8").
> > It doesn't work.
> >
> > I've tried to use Servlet Filter to do
> req.setCharacterEncoding("UTF-8")
> > too.
> > (It's the way we solve Chinese problem in struts 1 environment).
> > It still doesn't work.
> >
> > Does anyone know how to solve this problem?
> >
> > Thanks a lot!
> >
>
> -
> 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] Chinese encoding problem

2007-06-27 Thread Vincent Lin

Emilia,

I've tried -Dclient.encoding.override=UTF-8, it doesn't seem to change
anything.

It's really wired that when I use IE, the Chinese characters will be
scramble.
But when I use firefox, it works correctly.

The funny thing is that the browser language setting of my IE is "zh_TW"
while the setting in firefox is "en".

Is there any interceptor in S2 changing the encoding of request?

On 6/27/07, Emilia Ipate <[EMAIL PROTECTED]> wrote:


Vincent,
Your server must have as a Java VM Argument this line:
  -Dclient.encoding.override=UTF-8

(search on google client.encoding.override and you will find more)
Emilia





-Original Message-
From: Vincent Lin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 27, 2007 12:56 PM
To: Struts Users Mailing List
Subject: Re: [S2] Chinese encoding problem

By the way the settings in my JSP:

<%@ page contentType="text/html; charset=UTF-8" %>



Did I miss anything else?

On 6/27/07, Vincent Lin <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I'm having problem to submit Chinese characters from browser to web
> server.
>
> I have the following  settings in struts.properties:
>
> struts.locale=zh_TW
> struts.i18n.encoding=UT8
>
> But when I submit Chinese characters to web server.
> It gets scrambled characters.
> (The wierd thing is that sometimes the server gets correct Chinese
> characters.)
>
> I've tried to use an interceptor to do
req.setCharacterEncoding("UTF-8").
> It doesn't work.
>
> I've tried to use Servlet Filter to do
req.setCharacterEncoding("UTF-8")
> too.
> (It's the way we solve Chinese problem in struts 1 environment).
> It still doesn't work.
>
> Does anyone know how to solve this problem?
>
> Thanks a lot!
>

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




Re: stat.odd ? test

2007-06-27 Thread Dave Newton
--- Mansour <[EMAIL PROTECTED]> wrote:
> I am trying to iterate over a list and display rows
> in different style:
> 
> 
> 
> 

You're allowed to change my variable names.




I think ${foo} will work, at least if you're on a JSP
2.0 container, but I can't test it at the moment.
Can't think of any reason why it wouldn't, but the
value for  needs to be in OGNL EL, not JSP
EL.

d.



   

Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 
http://mobile.yahoo.com/go?refer=1GNXIC

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



RE: [S2] Chinese encoding problem

2007-06-27 Thread Emilia Ipate
Vincent, 
Your server must have as a Java VM Argument this line: 
  -Dclient.encoding.override=UTF-8

(search on google client.encoding.override and you will find more)
Emilia





-Original Message-
From: Vincent Lin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 27, 2007 12:56 PM
To: Struts Users Mailing List
Subject: Re: [S2] Chinese encoding problem

By the way the settings in my JSP:

<%@ page contentType="text/html; charset=UTF-8" %>



Did I miss anything else?

On 6/27/07, Vincent Lin <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I'm having problem to submit Chinese characters from browser to web
> server.
>
> I have the following  settings in struts.properties:
>
> struts.locale=zh_TW
> struts.i18n.encoding=UT8
>
> But when I submit Chinese characters to web server.
> It gets scrambled characters.
> (The wierd thing is that sometimes the server gets correct Chinese
> characters.)
>
> I've tried to use an interceptor to do
req.setCharacterEncoding("UTF-8").
> It doesn't work.
>
> I've tried to use Servlet Filter to do
req.setCharacterEncoding("UTF-8")
> too.
> (It's the way we solve Chinese problem in struts 1 environment).
> It still doesn't work.
>
> Does anyone know how to solve this problem?
>
> Thanks a lot!
>

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



textfield and Map

2007-06-27 Thread nodep

Hi, i'm trying to populate a Map with the tag , but when i read
the map in my action i find a String array and not  a String.

In my JSP i have:




where "proprieta" is my Map.  In the action i have:

...
private Map proprieta = new HashMap();

public Map getProprieta()
{
return proprieta;
}

public void setProprieta(Map proprieta)
{
this.proprieta = proprieta;
}

and in the method execute when i call getProprieta() it return me
{pap=[Ljava.lang.String;@1eef1eb}

 that is a "String[]"  corresponding to the key "pap" .

How can i tell to Struts2 to fill the map only with a simple String and not
with a String[]?



Stefano


-- 
View this message in context: 
http://www.nabble.com/textfield-and-Map-tf3987607.html#a11322256
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: [S2] Chinese encoding problem

2007-06-27 Thread Vincent Lin

By the way the settings in my JSP:

<%@ page contentType="text/html; charset=UTF-8" %>



Did I miss anything else?

On 6/27/07, Vincent Lin <[EMAIL PROTECTED]> wrote:


Hi

I'm having problem to submit Chinese characters from browser to web
server.

I have the following  settings in struts.properties:

struts.locale=zh_TW
struts.i18n.encoding=UT8

But when I submit Chinese characters to web server.
It gets scrambled characters.
(The wierd thing is that sometimes the server gets correct Chinese
characters.)

I've tried to use an interceptor to do req.setCharacterEncoding("UTF-8").
It doesn't work.

I've tried to use Servlet Filter to do req.setCharacterEncoding("UTF-8")
too.
(It's the way we solve Chinese problem in struts 1 environment).
It still doesn't work.

Does anyone know how to solve this problem?

Thanks a lot!



[S2] Chinese encoding problem

2007-06-27 Thread Vincent Lin

Hi

I'm having problem to submit Chinese characters from browser to web server.

I have the following  settings in struts.properties:

struts.locale=zh_TW
struts.i18n.encoding=UT8

But when I submit Chinese characters to web server.
It gets scrambled characters.
(The wierd thing is that sometimes the server gets correct Chinese
characters.)

I've tried to use an interceptor to do req.setCharacterEncoding("UTF-8").
It doesn't work.

I've tried to use Servlet Filter to do req.setCharacterEncoding("UTF-8")
too.
(It's the way we solve Chinese problem in struts 1 environment).
It still doesn't work.

Does anyone know how to solve this problem?

Thanks a lot!


Re: error page at login

2007-06-27 Thread Laurie Harper

Tony Yawe wrote:

The error message is attached!


No, it isn't. Perhaps the mailing list is stripping the attachment. In 
any case, you need to provide more than just an error message.


- What version of Struts are you using?
- What are you trying to do?
- what were you expecting to happen?
- What actually happened?
- What steps have you taken to narrow the problem down?

L.


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



Re: How to make tabs in JSP

2007-06-27 Thread Angelo zerr

Hello,
if you have questions about JSPTabControl don't hesitate to ask me.

Regards Angelo

2007/6/27, Yoge <[EMAIL PROTECTED]>:


I have used http://webfx.eae.net/dhtml/tabpane/tabpane.html in our site
http://site24x7.com

May be u can try that also

--
Yoge,
AdventNet, Inc.
925-965-6528
[EMAIL PROTECTED]
site24x7.com



On 6/27/07, Kavita Mehta <[EMAIL PROTECTED]> wrote:
>
> I'm using Struts 1.2 ...
> wd search more on JSPTabControl as you previously suggested.
>
> thanks
>
>
>
> "Angelo zerr" <[EMAIL PROTECTED]>
> 06/26/2007 06:17 PM
> Please respond to
> "Struts Users Mailing List" 
>
>
> To
> "Struts Users Mailing List" 
> cc
>
> Subject
> Re: How to make tabs in JSP
>
>
>
>
>
>
> If you are using Struts2.x, you should use tabbedpanel as Adrian have
you
> suggested.
>
> 2007/6/26, Adrian Ost <[EMAIL PROTECTED]>:
> >
> > Angelo zerr schrieb:
> > > Hi,
> > > perhaps you could be interest with JSPTabControl
> > > http://jsptabcontrol.sourceforge.net/
> > > which generate tabs with ul/li HTML.
> > >
> > > Regards Angelo
> > >
> > > 2007/6/26, Kavita Mehta <[EMAIL PROTECTED]>:
> > >>
> > >> Hi,
> > >> I want to code a JSP page with tabs . Does struts support an easy
way
> > of
> > >> doing the same.
> > >> Any link to the related resource would be helpful ...I have
searched
> on
> > >> Struts-Layout ...any other option ?
> > >>
> > >> Thanks
> > >> Kavita
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> >
>
>
*DISCLAIMER*
> > >>
> > >>
> > >> This message and/or attachment(s) contained here are confidential,
> > >> proprietary to HUGHES SYSTIQUE and its customers.
> > >> Contents may be privileged or otherwise protected by law. The
> > >> information
> > >> is solely intended for the entity it is
> > >> addressed to. If you are not the intended recipient of this
message,
> > >> it is
> > >> strictly prohibited to read, forward,
> > >> print, retain, copy or disseminate this message or any part of it.
If
> > >> you
> > >> have received this e-mail in error,
> > >> please notify the sender immediately and delete the message.
> > >>
> > >>
> > >>
> >
>
>

> > >>
> > >>
> > >>
> > >
> > or u just go for the struts 2 tag tabbedpanel ... pretty easy to
> > customize with new template.
> > http://struts.apache.org/2.x/docs/tabbedpanel.html
> > greets adi
> >
> >
> > --
> > Adrian Ost
> >
> > MindMatics AG
> > Marcel-Breuer-Str. 18
> > D-80807 München
> >
> > E-Mail: [EMAIL PROTECTED]
> > Web:   www.MindMatics.de
> >

> > Der Inhalt dieser E-Mail ist vertraulich. Sollte Ihnen die E-Mail
> > irrtümlich zugesandt worden sein, bitten wir Sie, uns unverzüglich
> > zu benachrichtigen und die E-Mail zu löschen.
> >
> > Ust-IdNr. DE211603599
> > Registergericht München: HRB 131369
> > Vorstand: Ingo Lippert, Christian Hinrichs, Oliver Beckmann, Armin
> > Barbalata
> > Aufsichtsrat: Martin Weber (Vorsitzender), Dr. Dirk Brückner
> (stellvertr.
> > Vorsitzender)
> >
> > The contents of this e-mail are confidential. If you received this
> > e-mail in error, please notify us immediately and delete the e-mail.
> >

> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
>
>
>
>
*DISCLAIMER*
>
> This message and/or attachment(s) contained here are confidential,
> proprietary to HUGHES SYSTIQUE and its customers.
> Contents may be privileged or otherwise protected by law. The
information
> is solely intended for the entity it is
> addressed to. If you are not the intended recipient of this message, it
is
> strictly prohibited to read, forward,
> print, retain, copy or disseminate this message or any part of it. If
you
> have received this e-mail in error,
> please notify the sender immediately and delete the message.
>
>
>

>
>


--
--Yoge
91-9840425388



Re: How to make tabs in JSP

2007-06-27 Thread Yoge

I have used http://webfx.eae.net/dhtml/tabpane/tabpane.html in our site
http://site24x7.com

May be u can try that also

--
Yoge,
AdventNet, Inc.
925-965-6528
[EMAIL PROTECTED]
site24x7.com



On 6/27/07, Kavita Mehta <[EMAIL PROTECTED]> wrote:


I'm using Struts 1.2 ...
wd search more on JSPTabControl as you previously suggested.

thanks



"Angelo zerr" <[EMAIL PROTECTED]>
06/26/2007 06:17 PM
Please respond to
"Struts Users Mailing List" 


To
"Struts Users Mailing List" 
cc

Subject
Re: How to make tabs in JSP






If you are using Struts2.x, you should use tabbedpanel as Adrian have you
suggested.

2007/6/26, Adrian Ost <[EMAIL PROTECTED]>:
>
> Angelo zerr schrieb:
> > Hi,
> > perhaps you could be interest with JSPTabControl
> > http://jsptabcontrol.sourceforge.net/
> > which generate tabs with ul/li HTML.
> >
> > Regards Angelo
> >
> > 2007/6/26, Kavita Mehta <[EMAIL PROTECTED]>:
> >>
> >> Hi,
> >> I want to code a JSP page with tabs . Does struts support an easy way
> of
> >> doing the same.
> >> Any link to the related resource would be helpful ...I have searched
on
> >> Struts-Layout ...any other option ?
> >>
> >> Thanks
> >> Kavita
> >>
> >>
> >>
> >>
> >>
> >>
>

*DISCLAIMER*
> >>
> >>
> >> This message and/or attachment(s) contained here are confidential,
> >> proprietary to HUGHES SYSTIQUE and its customers.
> >> Contents may be privileged or otherwise protected by law. The
> >> information
> >> is solely intended for the entity it is
> >> addressed to. If you are not the intended recipient of this message,
> >> it is
> >> strictly prohibited to read, forward,
> >> print, retain, copy or disseminate this message or any part of it. If
> >> you
> >> have received this e-mail in error,
> >> please notify the sender immediately and delete the message.
> >>
> >>
> >>
>


> >>
> >>
> >>
> >
> or u just go for the struts 2 tag tabbedpanel ... pretty easy to
> customize with new template.
> http://struts.apache.org/2.x/docs/tabbedpanel.html
> greets adi
>
>
> --
> Adrian Ost
>
> MindMatics AG
> Marcel-Breuer-Str. 18
> D-80807 München
>
> E-Mail: [EMAIL PROTECTED]
> Web:   www.MindMatics.de
> 
> Der Inhalt dieser E-Mail ist vertraulich. Sollte Ihnen die E-Mail
> irrtümlich zugesandt worden sein, bitten wir Sie, uns unverzüglich
> zu benachrichtigen und die E-Mail zu löschen.
>
> Ust-IdNr. DE211603599
> Registergericht München: HRB 131369
> Vorstand: Ingo Lippert, Christian Hinrichs, Oliver Beckmann, Armin
> Barbalata
> Aufsichtsrat: Martin Weber (Vorsitzender), Dr. Dirk Brückner
(stellvertr.
> Vorsitzender)
>
> The contents of this e-mail are confidential. If you received this
> e-mail in error, please notify us immediately and delete the e-mail.
> 
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>






*DISCLAIMER*

This message and/or attachment(s) contained here are confidential,
proprietary to HUGHES SYSTIQUE and its customers.
Contents may be privileged or otherwise protected by law. The information
is solely intended for the entity it is
addressed to. If you are not the intended recipient of this message, it is
strictly prohibited to read, forward,
print, retain, copy or disseminate this message or any part of it. If you
have received this e-mail in error,
please notify the sender immediately and delete the message.








--
--Yoge
91-9840425388


Re: error page at login

2007-06-27 Thread Tony Yawe

The error message is attached!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE stat.odd ? test

2007-06-27 Thread meissa . sakho
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis 
Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez 
à la mise à jour de votre carnet d'adresses.


here is an example that is working.

 
   datavaluebluedatavaluewite">


 


 

And here is your example revisited:


oddeven">


I hope this help.
Meissa 





Mansour <[EMAIL PROTECTED]> 
27/06/2007 03:34
Veuillez répondre à
"Struts Users Mailing List" 


A
Struts Users Mailing List 
cc

Objet
stat.odd ? test






I am trying to iterate over a list and display rows in different style:







...


The resulting code have the class attribute always empty.  Like this :






Can any one advice what's wrong ?


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




L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut 
etre tenu responsable de son contenu. Toute utilisation ou diffusion non 
autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci 
de le detruire et d'avertir l'expediteur.
Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si 
necessaire

The integrity of this message cannot be guaranteed on the Internet. Natixis can 
not therefore be considered responsible for the contents. Any unauthorized use 
or dissemination is prohibited. If you are not the intended recipient of this 
message, then please delete it and notify the sender.
Let us mind the environment : let's print our mails only when necessary.