Re: configure struts 2

2009-04-06 Thread Lukasz Lenart
Remove struts2-spring-plugin.jar from your lib folder if don't use integration with Spring. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mai

Re: Struts2 / Cimande @ MEruvian Foundation

2009-04-06 Thread Frans Thamura
On Tue, Apr 7, 2009 at 11:49 AM, dusty wrote: > > Now I really feel like I had my head up my ass.  Sorry Frans.  I need to > watch the video and check out the foundation. > you can check several of they work in www.sf.net/projects/papaje www.sf.net/projects/gandharva this project still bad in

Re: Struts2 / Cimande @ MEruvian Foundation

2009-04-06 Thread dusty
Now I really feel like I had my head up my ass. Sorry Frans. I need to watch the video and check out the foundation. Frans Thamura-2 wrote: > > wes right ;) > > i just want to show to you all that struts2 become education standard > in our country :) > > and i am trying to produce struts2

RE: Struts2 / Cimande @ MEruvian Foundation

2009-04-06 Thread dusty
Sorry man, It read different to me. It has been a long day and I clearly need a few beers and settle down a little. mgainty wrote: > > > right now Indonesia is doing better than New England > where the unemployment rate has recently jumped to 75% > > i do think a learning experience could

configure struts 2

2009-04-06 Thread john lee
any expert can give me the help?   i installed struts 2, but when i re-start the tomcat, and get the following error message   You might need to add the following to web.xml:         org.springframework.web.context.ContextLoaderListener       so, i did put above ... into /usr/apache-tomcat

Re: Struts2 / Cimande @ MEruvian Foundation

2009-04-06 Thread Frans Thamura
On Tue, Apr 7, 2009 at 8:04 AM, Martin Gainty wrote: > > right now Indonesia is doing better than New England > where the unemployment rate has recently jumped to 75% > > i do think a learning experience could benefit us all.. > thx martin my model right now, share the kernel to public (opensou

RE: Struts2 / Cimande @ MEruvian Foundation

2009-04-06 Thread Martin Gainty
right now Indonesia is doing better than New England where the unemployment rate has recently jumped to 75% i do think a learning experience could benefit us all.. Bon Chance Frans! Martin __ Verzicht und Vertraulichkeitanmerkung / Note de déni et d

Re: Struts2 / Cimande @ MEruvian Foundation

2009-04-06 Thread Frans Thamura
wes right ;) i just want to show to you all that struts2 become education standard in our country :) and i am trying to produce struts2 prgorammer, in JSF extramarketing buzzz hope if my students, mostly second grade high school, asking question here, all of you wanna to help :) they are futur

Re: Struts2 / Cimande @ MEruvian Foundation

2009-04-06 Thread Wes Wannemacher
I don't think it is an ad, Frans has posted questions in the past. I think he is just trying to show some of is that struts isn't always used in commercial endeavors, but iirc, he is building an e-learning platform in a developing country. I plan to watch the video when I fire up my laptop later. -

Re: Struts2 / Cimande @ MEruvian Foundation

2009-04-06 Thread Frans Thamura
no :) it just a "show off" hehee On Tue, Apr 7, 2009 at 4:33 AM, dusty wrote: > > Is that an ad for services?   Maybe proof read if so, but better yet > ask/answer questions. > > > Frans Thamura-2 wrote: >> >> hi all >> >> just wanna to give u all our work >> >> my foundation, meruvian, now co

format date return ??? (question marks)

2009-04-06 Thread deligeli
Hi! I have the following code: It works most of the time, but in some computers it shows for example ??? 03,2009. Why would it happen? Thanks! -- View this message in context: http://www.nabble.com/format-date-return-%28question-marks%29-tp22919582p22919582.html Sent from the Struts -

Re: hidden data

2009-04-06 Thread dusty
The common pattern suggested for this requirement is to create interceptors to decode the values coming in and a jsp library/tag to encode the values in the link. PEGASUS84 wrote: > > Thank you. > i wish encode data in the query string how can I do? > -- View this message in context: http:

Re: Struts2 / Cimande @ MEruvian Foundation

2009-04-06 Thread dusty
Is that an ad for services? Maybe proof read if so, but better yet ask/answer questions. Frans Thamura-2 wrote: > > hi all > > just wanna to give u all our work > > my foundation, meruvian, now collect and helping vocational school, > and mostly 50% cannot work, and they are smart > > take

Re: Debugging form values being set

2009-04-06 Thread dusty
Seems like it should work the way you have it described. Perhaps show the JSP syntax although is suspect its correct. Maybe also show the Bean and action code for good measure. Is days a reserved word in OGNL? I don't think so. Did you try to change it to dayz and see if that works? Secur

JavaRebel and Struts2

2009-04-06 Thread dusty
Back in December Blake was asking about reloading the config using JavaRebel. Does anyone have any experience with this working? They are advertising "Works great with Struts2" on their website. I was going to give it a try but wanted to know if anyone already did some debug lifting. -- View t

Re: Struts 2/Spring and @Required

2009-04-06 Thread Timothy Orme
Perfect, Ill give that a shot and let you know if I'm still stumped. Thanks! Tim Jeroen De Ridder wrote: Don't forget that you need to instantiate a bean postprocessor in your applicationContext to enforce the @Required-annotation: class="org.springframework.beans.factory.annotation.RequiredA

Re: Struts 2/Spring and @Required

2009-04-06 Thread Jeroen De Ridder
Don't forget that you need to instantiate a bean postprocessor in your applicationContext to enforce the @Required-annotation: class="org.springframework.beans.factory.annotation.RequiredAnnotationBeanPostProcessor" /> I don't supply any configuration to spring. I simply have the applicationCo

Re: Struts 2/Spring and @Required

2009-04-06 Thread Timothy Orme
I don't supply any configuration to spring. I simply have the applicationContexts constructing beans, and then have a couple of lines in my struts.xml configuring the Object Factory and the autowire method. and of course have the listeners set up in my web-xml. What sort of c

RE: Unable to get 'ScopedModelDriven' to work for session scope

2009-04-06 Thread Martin Gainty
pls check to see if ParameterFilter is blocking your params e.g. ... blocked_parameter allowed_parameter ... http://struts.apache.org/2.0.14/docs/parameter-filter-interceptor.html ? Martin __ Verzicht und Vertraulichkeitanm

Re: Struts 2/Spring and @Required

2009-04-06 Thread Musachy Barroso
You should post your spring xml config file, it looks like some AOP config is probably missing. musachy On Mon, Apr 6, 2009 at 2:34 PM, Timothy Orme wrote: > Hello All, > >        One of the nice annotation features of spring is the ability to > annotate injected fields with @Required so that yo

RE: Struts 2/Spring and @Required

2009-04-06 Thread Martin Gainty
//the struts-convention-plugin allows you to supply your own params e.g. public class HelloWorld extends ActionSupport { @Action(value="/different/url", result...@result(name="success", type="httpheader", params={"status", "500", "errorMessage", "Internal Error"})} http://cwiki.apache.org

Unable to get 'ScopedModelDriven' to work for session scope

2009-04-06 Thread Andrew Foltan (afoltan)
Hello Struts2 Users, I am attempting to utilize the ScopedModelDriven interceptor to manage user input across multiple form submits, in the style of a simple wizard with sequential pages of input. I have declared my Action class ('ScopedModelDrivenAction ') to implement 'ScopedModelDriven' a

Debugging form values being set

2009-04-06 Thread Security Management
I have an app that has a form value (rule.days) which should, if I understand the docs, call: getSearch().setDays() on the bean it's submitting to. How can I turn on debug for this, and see why rule.ruleName works, but rule.days is not being set? I see this in the log: 2009-04-06 15:14:21,345 [h

Struts 2/Spring and @Required

2009-04-06 Thread Timothy Orme
Hello All, One of the nice annotation features of spring is the ability to annotate injected fields with @Required so that you don't get null pointer exceptions. However, I can only seem to get this to work with my test cases (spring throws an error when a required field isn't set), but I can't

Re: Empty lines before doctype declaration

2009-04-06 Thread Cristian Peraferrer
I have seen that the problem wasn't related with UTF-8 nor the XML parser. It is about JSP configuration, I have put the following in my web.xml: *.jsp true This solved my problem. On 06/04/2009, at 13:14, Cristian Peraferrer wrote: I'm using struts 2.1.6, using JSP's with Tiles

RE: Empty lines before doctype declaration

2009-04-06 Thread Martin Gainty
If you are seeing org.xml.sax.SAXParseException: Content is not allowed in prolog. I see 3 struts Libraries which throw SAXParseException: \WEB-INF\lib\commons-el-1.0.jar \WEB-INF\lib\ognl-2.6.11.jar \WEB-INF\lib\velocity-1.4.jar I wouldcheck these version-specific jars are in your classpath ?

Struts2 / Cimande @ MEruvian Foundation

2009-04-06 Thread Frans Thamura
hi all just wanna to give u all our work my foundation, meruvian, now collect and helping vocational school, and mostly 50% cannot work, and they are smart take a look, this URL, the code usign cimande (intergration between struts2, spring2, and hibernate3).. wanna to see what we are doing her

RE: hidden data

2009-04-06 Thread Martin Gainty
Action Class expects Form content type to be application/x-www-form-urlencoded do you have another content-type which the Action class should accomodate? Martin __ Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité Diese Nachr

Re: Stumped on form field

2009-04-06 Thread Greg Lindholm
You are missing a setDays(Integer i) in your action. Or, change the textfield to "ruleDays". Security Management wrote: > > I cannot figure this out, days is never set, and the debug logging does > not > show up for setting days, but it does for name. Anyone have any idea? > > JSP page: > <

Re: Empty lines before doctype declaration

2009-04-06 Thread Lukasz Lenart
2009/4/6 Cristian Peraferrer : > I'm using struts 2.1.6, using JSP's with Tiles plugin, and I'm getting empty > lines before the doctype, but in my JSP's there aren't spaces. Where I > should look at? Maybe it's an encoding problem? Some UTF8 with BOM? Regards -- Lukasz http://www.lenart.org.pl

Empty lines before doctype declaration

2009-04-06 Thread Cristian Peraferrer
I'm using struts 2.1.6, using JSP's with Tiles plugin, and I'm getting empty lines before the doctype, but in my JSP's there aren't spaces. Where I should look at? Thanks, Cristian. -- GPG Key-ID: 0x564903FA - Jabber ID: corellian at swissjabber.ch -

Re: hidden data

2009-04-06 Thread Manos Batsis
PEGASUS84 wrote: i wish encode data in the query string how can I do? If security is no concern and you just don't want the data to be obvious, you could use base64. there are libraries out there to do this. hth, Manos - T

Re: hidden data

2009-04-06 Thread PEGASUS84
Thank you. i wish encode data in the query string how can I do? -- View this message in context: http://www.nabble.com/hidden-data-tp22905294p22905999.html Sent from the Struts - User mailing list archive at Nabble.com. - To u

Re: hidden data

2009-04-06 Thread Manos Batsis
I think the OP wants to send data with a link (i.e. an HTTP GET) without those appearing within the URL query string. In short, its cannot be done. One however can: * Use POST with hidden fields * Store the data in the session scope * Encode the data in the query string hth, Manos Muthu V

Re: hidden data

2009-04-06 Thread PEGASUS84
yes is this my question, but my english is orrible. the problem is that I don't know the hidden tag. i try with but for taking the value of x in an action How can I do. I'm using the hidden tag into a link tag -- View this message in context: http://www.nabble.com/hidden-data-tp22905294p2290574

Re: hidden data

2009-04-06 Thread Muthu Velappan
How to send data to action without displaying it in form? Is that your question?If yes, then u can use field to hold the data and post it back to the action, right? If this is not what you intent, please explain ur issue a bit detail.. ~Muthu PEGASUS84 wrote: > > good moorning; > i've a que

hidden data

2009-04-06 Thread PEGASUS84
good moorning; i've a question: can I send an hidden String with link to an action? i don't want that on query string there is the value of my string -- View this message in context: http://www.nabble.com/hidden-data-tp22905294p22905294.html Sent from the Struts - User mailing list archive at Na

Re: [Help] How to pass the parameter of an Interceptor to the Action??

2009-04-06 Thread Terry Gardner
One idea I have: 1. Create an interface called RedirectAware 2. Have the actions which need the redirectURL implement RedirectAware 3. Inject the redirectURL into Actions that are RedirectAware from the interceptor On Apr 6, 2009, at 4:17 AM, 白鹏 wrote: hey,guys, the code follows, public c

[Help] How to pass the parameter of an Interceptor to the Action??

2009-04-06 Thread 白鹏
hey,guys, the code follows, public class LoginInterceptor extends AbstractInterceptor { private String* redirectUrl*; public String getRedirectUrl() { return redirectUrl; } public void setRedirectUrl(String redirectUrl) { this.redirectUrl = redirectUrl; }