Re: help me...

2007-06-27 Thread Nuwan Chandrasoma
Hi, Do you have a form property in your struts-config. that is a array?, if there is one you should set the size or initial property. size The number of array elements to create if the value of the type attribute specifies an array, but there is no value specified for

RE: help me...

2007-06-27 Thread Vikash Manoranjan
Hi Nuwan, I have already set as mentioned below: form-bean name=selSpecPopupForm type=org.apache.struts.action.DynaActionForm form-property name=context type=java.lang.String initial=0 size=5 /

how to use I18N in macros

2007-06-27 Thread sudhitekkala
hello to develop a page in velocity i am not getting the design as expected ... so i started using macros so that i can get the expected design for example::: table tr td#ssubmit(key=button1 value=Search)/td td#ssubmit(key=button2 value=Submit)/td /tr /table i have taken the key

error page at login

2007-06-27 Thread Tony Yawe
The error message is as attached. i hope i will be able to get a solution. - 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. s:iterator value=articles status=rowstatus tr

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

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

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

[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

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 % meta http-equiv=Content-Type content=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

textfield and Map

2007-06-27 Thread nodep
Hi, i'm trying to populate a Map with the tag s:textfield, but when i read the map in my action i find a String array and not a String. In my JSP i have: s:textfield key=proprieta['pap']/ where proprieta is my Map. In the action i have: ... private MapString,String proprieta = new

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:

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

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-

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 html:submit.../ do? --- vbharath19 [EMAIL PROTECTED] wrote: when i get the formfile using getthefile newton.dave wrote: --- vbharath19 [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:

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

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

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,

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 *** !DOCTYPE struts-config PUBLIC

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

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

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

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.

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 Connector

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

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

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

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

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,

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

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

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

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 servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name

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

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

2007-06-27 Thread Bill Johnson
I was under the impression that the s:property 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: display:table id=row name=locations requestURI=/AdminLocation.action defaultsort=2 display:column

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]

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:

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

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

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

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

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

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

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

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

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

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

2007-06-27 Thread Dave Newton
--- Bill Johnson [EMAIL PROTECTED] wrote: I was under the impression that the s:property tag could access page-scoped variables, but it doesn't seem to work for me. AFAIK s:property.../ access the OGNL stack, not scoped variables. Session and request are put on the stack, but not page. Bear

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

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:

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

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

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

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

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

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

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