XWORK2/struts2 logs out Unable to find text for key

2007-09-19 Thread Adrian Ost
I use struts 2.0.9 and the s:i18n-Tag and s:text to get values from a resource bundle. My jsp-pages get rendered the correct way, but it happens more often that somehow my resource bundle gets lost during writing the response. The result is a page where my text, at the beginning, consists of the

Re: struts 1.3.5 problem

2007-09-19 Thread Paul Benedict
An existing connection was forcibly closed by the remote host sounds like some networking issue to me. It appears the server hung up the call. Paul

Re: Struts138 - Restrict Access to my actions?

2007-09-19 Thread Paul Benedict
Thomas, But you're using Struts 1.3.8 right? The interceptor solution is for Struts 2. I once thought of adding an internal attribute to my Struts actions. If the action had this property set through set-property, then the Controller would not allow the action to be executed directly (i.e.,

[S2 and Ajax] Could not locale widget implementation...

2007-09-19 Thread Paolo Beccari
Hi list, I'm trying to display the results of a Form in a s:div through Ajax. The submit is done fine, I can get the parameters through scriptlets (request.getParameter...) but i can't use s2 tags (i.e. s:property value=%{property}/): it seems they are not being rendered. Could someone tell me

Re: [S2 and Ajax] Could not locale widget implementation...

2007-09-19 Thread Paolo Beccari
Ops, I missed some information. In addition, when setting the s:head debug=true I'm getting the message: DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate widget implementation for div in s.widget registered to namespace s. Developers must specify correct namespaces

Displaying table contents

2007-09-19 Thread Hiroyuki Suzuki
Hello guys.. Please help me in displaying the contents of the table. I have the following in my database: 3 radio buttons (siteName/siteSequence) each siteSequence has the following select options (siteTemplate/siteTemplateSequence) Example: siteName siteSeqsiteTemplate

Re: Displaying table contents

2007-09-19 Thread Hiroyuki Suzuki
there are some mistakes in the siteTemplateSequence. WRONG: siteName siteSeqsiteTemplate siteTemplateSequence X 1 A,B,C 1 Y 2 D,E,F 2 Z 3 G,H,I3 CORRECT: siteName siteSeqsiteTemplate X

Re: [S2 and Ajax] Could not locale widget implementation...

2007-09-19 Thread Paolo Beccari
Follow up, just in case... The two problems where related one each other. In fact: Taglib %@ taglib prefix=s uri=/struts-tags % was defined in the main page. Inside the jsp called via Ajax by action result (inside s:div) I used tags like s:property. I discovered that when doing s:div id=div1

[S2] action mappings help

2007-09-19 Thread Eugen Stoianovici
I'm trying to create an index with an action mapped to it for a subfolder in my webapp. The ideea was to create a index.jsp file that has: jsp:forward page=/myapp/subfolder/welcome.action/ so it redirects me to a mapped action. The problem is that even though the url is correct, i get a The

Re: [S2] Wicket integration

2007-09-19 Thread Ted Husted
Sounds like a job for a plug-in! A good starting point for developing a Wicket plugin might be the JSF plugin. HTH, Ted http://www.husted.com/ted/blog/ On 9/17/07, Chris Pratt [EMAIL PROTECTED] wrote: I'm wondering if anyone has been able to replace the Struts 2 view using Wicket. It seems

[s2] Odd taglib behaviour with single character comparisons

2007-09-19 Thread Mark McLaren
I hope someone can explain the following behaviour to me. Using the S2 taglibs and OGNL is starting to confuse me somewhat. I have a test JSP that I am accessing via the default ActionSupport class: [EMAIL PROTECTED] uri=http://java.sun.com/jstl/core; prefix=c% [EMAIL PROTECTED] prefix=s

How to handle validation/errors in Ajax requests

2007-09-19 Thread Marc Eckart
Hi, I start a ajax request with a s:submit theme=ajax target=x This pumps the result in the target div tag and all is perfect. But how can I handle validation errors. They should not appear in the target div tag, instead it should appear in a different div tag for errors. Can I change the

Re: [S2] action mappings help

2007-09-19 Thread Cory D. Wiles
If you are trying to truly redirect then the below line is your problem. It is trying to forward not redirect. jsp:forward page=/myapp/subfolder/welcome.action/ Use: % String redirectAction = /myapp/subfolder/welcome.action; response.sendRedirect(redirectAction); % On 9/19/07, Eugen

Execute Action on the server

2007-09-19 Thread Oguz Kologlu
Hi, Does anyone know how to execute an action on the server and get the result on the server (without having to use something like commons http client). What I want is the resulting html from an action so I send it as an email. I vaguely remember a way to do it with a velocity template

Request Processing Chains - HOWTO... ?

2007-09-19 Thread Arne Brutschy
Hello, I'm new to struts 1.3.x and therefore not used to the new request processing using common-chains. I have two questions: How do I filter/add request parameters? In the old days (TM) I simply added a filter, which wrapped a RequestWrapper around the non-writable map. How can I do that now?

Re: How to handle validation/errors in Ajax requests

2007-09-19 Thread Musachy Barroso
There isn't much you can do about that on 2.0, on trunk (future 2.1) we have a new JSON validation interceptor, check this for details: http://struts.apache.org/2.x/docs/ajax-validation.html musachy On 9/19/07, Marc Eckart [EMAIL PROTECTED] wrote: Hi, I start a ajax request with a s:submit

RE: Struts tags help

2007-09-19 Thread wild_oscar
Following the latest message, what is the syntax if your session attribute is a List of Principal objects and what you want is an attribute in a) the first object in the list ( principals[0].name) b) the first object of the child principal Principal1 (principal1Object.name) ? Wesley

can't cast an object back from session

2007-09-19 Thread meissa . sakho
I'm troubleshooted with this starnge behaviour of the session. I have implemented SessionAware and have defined a session attribute of Map type with getter (and setter) as indicated to handle session. I'm putting a User objet to the session and want to retrieve it after some steps. The code

Re: Struts tags help

2007-09-19 Thread Randy Jonasz
Hello, On 9/19/07, wild_oscar [EMAIL PROTECTED] wrote: Following the latest message, what is the syntax if your session attribute is a List of Principal objects and what you want is an attribute in a) the first object in the list ( principals[0].name) b) the first object of the child

S2 tutorial

2007-09-19 Thread Slattery, Tim - BLS
I cannot make the first step of the struts 2 tutorial work. I've got web.xml, struts.xml, and the HelloWorld.java just as on the page. When I invoke the app, I get There is no Action mapped for namespace / and action name HelloWorld. What does that mean? -- Tim Slattery [EMAIL PROTECTED]

Re: Struts tags help

2007-09-19 Thread wild_oscar
Not really. I stumbled upon this doubt when developing my application. I have a List of Principals on my session. The first element is a UserPrincipal and the rest are RolePrincipal. What I want is to simply have in a JSP: Welcome, USERNAME And I want to retrieve USERNAME from that list.

Re: S2 tutorial

2007-09-19 Thread wild_oscar
Did you try writting helloWorld (with small h) as the action name in your struts.xml file? Slattery, Tim - BLS wrote: I cannot make the first step of the struts 2 tutorial work. I've got web.xml, struts.xml, and the HelloWorld.java just as on the page. When I invoke the app, I get There

Sw2 tutorial

2007-09-19 Thread Slattery, Tim - BLS
There is no Action mapped for namespace / and action name HelloWorld. I think I see it. Struts.xml has to be in WEB-INF/classes, not where struts-config.xml was in Struts 1. -- Tim Slattery [EMAIL PROTECTED]

Re: can't cast an object back from session

2007-09-19 Thread wild_oscar
Did you try casting it directly, like: User user=(User)getSession().get(Constantes.USER_SESSION_KEY); ? If not, try logging (or debug to it) the class name of the object you've got: getSession().getAttribute(aa).getClass().getCanonicalName() (or getName()) Loggers and debuggers are great for

Re: [s2] Odd taglib behaviour with single character comparisons

2007-09-19 Thread Chris Pratt
Not sure where, but I remember reading that OGNL converts single characters in single quotes to the Character wrapper type, which may explain what you're seeing. In the first case 1 != '1' in Java since one is a String and one is a char, same is true here. Was there anything in the logs about 3

Re: [S2] action mappings help

2007-09-19 Thread Eugen Stoianovici
Thanks, I added dispatcherREQUEST/dispatcher dispatcherREDIRECT/dispatcher in my web.xml file for filter-mapping. Which made perfect sense right after i read it. Cory D. Wiles wrote: If you are trying to truly redirect then the below line is your problem. It is trying to forward not

Reload a page after ActionForm

2007-09-19 Thread Diego Ezquerro
Hi to everybody. I have a JSP that has a Tree that is modified by a submit button that sends data to an ActionForm. Inside this ActionForm class, the tree is modified but only if the page is reloaded the tree is visually modified. How can I reload the page after de mapping.findForward

Re: Reload a page after ActionForm

2007-09-19 Thread Paul Benedict
You can set redirect=true on the action mapping. On 9/19/07, Diego Ezquerro [EMAIL PROTECTED] wrote: Hi to everybody. I have a JSP that has a Tree that is modified by a submit button that sends data to an ActionForm. Inside this ActionForm class, the tree is modified but only if the page is

can we redirect to input page after validation fails ?

2007-09-19 Thread abhiram
HII! i have a small doubt.. when i submit a form from a jsp called LoginForm.jsp, and if the validation fails in the validate() method of the ActionForm, I am being shown LoginForm.jsp, but with URL as LoginAction.do. How to avoid this ? i want it to be shown as LoginForm.jsp. can we redirect

Re: can we redirect to input page after validation fails ?

2007-09-19 Thread Paul Benedict
You can do it, but it's a little bit more work. 1) Set inputForward=true on the Controller 2) Convert your input attributes on the action mapping to refer to a mapping name. 3) Add a corresponding forward. Example: controller inputForward=true / mapping ... input=input forward name=input

Re: can we redirect to input page after validation fails ?

2007-09-19 Thread abhiram
Hi!! your method works..but i am not able to see my error message.. i mean.. i want it to work like javascript... like display the err mesg when validation fails, and once i refresh the page, display the page without error message(the original input page)..,with url intact. may seem like i am

Re: can we redirect to input page after validation fails ?

2007-09-19 Thread Paul Benedict
What ver of Struts? On 9/19/07, abhiram [EMAIL PROTECTED] wrote: Hi!! your method works..but i am not able to see my error message.. i mean.. i want it to work like javascript... like display the err mesg when validation fails, and once i refresh the page, display the page without error

Re: can we redirect to input page after validation fails ?

2007-09-19 Thread abhiram
it is struts 1.2, and my application server is tomcat 5.5.9 Paul Benedict [EMAIL PROTECTED] wrote: What ver of Struts? On 9/19/07, abhiram wrote: Hi!! your method works..but i am not able to see my error message.. i mean.. i want it to work like javascript... like display the err mesg when

Re: [S2] Autocompleter initial value and key

2007-09-19 Thread Pedro Herrera
any idea for Struts ?? herrera rrecoba wrote: :(... so i´ve to change all my nice autocompleters :_( Pedro, I don´t know anything about DWR? have you did your own autocompleter using DWR ? or you get it from some place? do you have any link ? thanks a lot. Pedro Herrera

Re: can we redirect to input page after validation fails ?

2007-09-19 Thread Paul Benedict
To preserve messages across redirects, you need to do a little magic. Struts 1.2 does not have the automatic ability to put messages into session scope if validation fails. Instead, you should customize the Controller (through a subclass you write) to copy any messages from the request into the

[struts2] Button pressed

2007-09-19 Thread Marcos Mendonça
Hello I've tried following this http://struts.apache.org/2.x/docs/html-form-buttons-howto.html, to determine in my validate() method of my action to check wich button was pressed, It doesn't seem to work though. private boolean selecaoOk = false; public void setSelecaoOk(boolean

[OT] Ajax recommendations for use with Struts1.1

2007-09-19 Thread Rick Reumann
Hey all, unfortunately I'm going to be stuck on a new project has to use Struts1.1 - not that I'm against Struts it's just that I'd rather use something less archaic like Struts2 - We have to run on an old server( Weblogic8.1), won't upgrade to java5, servletspec2.3/jsp1.2), have to use offshore

Re: [OT] Ajax recommendations for use with Struts1.1

2007-09-19 Thread Adam Hardy
Hi Rick, DWR is highly useful for getting your pojos across to the client-side and back again. Adam Rick Reumann on 19/09/07 23:23, wrote: Hey all, unfortunately I'm going to be stuck on a new project has to use Struts1.1 - not that I'm against Struts it's just that I'd rather use

struts1 taglibs and struts2

2007-09-19 Thread Adam Hardy
The old struts1 HTML taglibs have a 'titleKey' attribute, for putting an internationalised title on an HTML tag automatically. Others had a 'key' attribute. Is there any intention to put this kind of attribute onto the S2 tags? I know there are OGNL methods to do the same thing, but 'titleKey'

Re: [OT] Ajax recommendations for use with Struts1.1

2007-09-19 Thread Frank W. Zammetti
Hi Rick, AjaxParts is still a good alternative, especially given your past experience. It's still very much alive, and probably even a bit better than the last time you used it. As Adam said, DWR is another alternative I think very highly of as well (highly enough to be nearing completion

RE: [struts2] Button pressed

2007-09-19 Thread Jason Wyatt
Hi Marcos, In my understanding you can use a String instead of a boolean: Action: private String submit; public void setSubmit(String submit) { this.submit = submit; } And in the JSP: s:submit name=submit value=Save / s:submit name=submit value=Delete / Note there

Re: [OT] Ajax recommendations for use with Struts1.1

2007-09-19 Thread Roger Ye
Hi Frank, I'm interested in the experience with DWR and Dojo you have got, so why are you trying to move away from Dojo? then move to which? is is DWR? I've used DWR in a previous project, for me it's quite good, gotta love it, however, in the current project we use Struts 2 and Struts 2 seems

set value of the datetimepicker but the value does not appear in the input box

2007-09-19 Thread Andvar Woo
hi all, i want to set the value of a datetimepicker in javasript but encounter a problem. i do that like this: first use ajax to get a record as a json object,then use the json object to initialize a form, which contains a datetimepicker. the form is used to add a new record and to modify a

Re: set value of the datetimepicker but the value does not appear in the input box

2007-09-19 Thread Martin Gainty
Andvar- Date date = new Date(Sat, 01 Jan 2007 13:30:00 GMT); and then once you acquire the id call setDate as in dojo.byId(id).setDate(date); courtesy of a posting by musachy http://mail-archives.apache.org/mod_mbox/struts-user/200705.mbox/[EMAIL PROTECTED] HTH/ M-- - Original Message

Re: set value of the datetimepicker but the value does not appear in the input box

2007-09-19 Thread Andvar Woo
Thanks for your reply,but the problem still exists: the value do be set--a alert statement shows that,but the input box still displays nothing: just a blank,the datetimepicker does not work either--i cannot select a new date,the dropdown date-select panel does not appear when click the date icon.

Re: [OT] Ajax recommendations for use with Struts1.1

2007-09-19 Thread Frank W. Zammetti
Roger Ye wrote: Hi Frank, I'm interested in the experience with DWR and Dojo you have got, so why are you trying to move away from Dojo? then move to which? is is DWR? Let me begin by giving the caveat that we started with Dojo 0.3.1, and have never had the time to upgrade, so we're still on

Struts URLs for perfectionists like Ebay's URLs

2007-09-19 Thread Vo Van Thuong
Hi, I'm very interested in Ebay's Urls, would someone pls give me some ideas about Ebay's Urls. why they do that and can i also make my Urls like Ebay's? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Struts URLs for perfectionists like Ebay's URLs

2007-09-19 Thread Vinny
Can you give an example of what you are trying to do? There a few plugins/tools/filters that can effect urls in struts and webapps in general On 9/20/07, Vo Van Thuong [EMAIL PROTECTED] wrote: Hi, I'm very interested in Ebay's Urls, would someone pls give me some ideas about Ebay's Urls.