Re: Struts URLs for perfectionists like Ebay's URLs

2007-09-19 Thread Vo Van Thuong
Hi Vinny, I'd like users to access to my website by URLs like Ebay's: http://listings.ebay.com/_W0QQcoactionZcompareQQcoentrypageZsearchQQcopagenumZ1QQfromZR2QQftrtZ1QQftrvZ1QQsabfmtsZ1QQsacatZQ2d1QQsaobfmtsZinsifQQsocmdZListingCategoryList In which we can't see which one is get parameters which

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

2007-09-19 Thread Abhinav
Try this : var vDate = dojo.widget.byId("validateDate"); vDate.inputNode.value = '2007-01-01'; Andvar Woo wrote: 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

Re: can't cast an object back from session

2007-09-19 Thread meissa . sakho
Yes, when I try casting it like you this, User user=(User)getSession().get(Constantes.USER_SESSION_KEY); I'm getting a ClassCastException. The debugger clearly shows me the right name I'm waiting for. It's very strange. Meissa wild_oscar <[EMAIL PROTECTED]> 19/09/2007 17:36 Veuillez répondre

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.

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 command

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

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

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

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 to

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: Note there is a bug in 2.0.9 that this doesn't work for ajax-themed submit button

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 o

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

[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

[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 selecaoO

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 se

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

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 >

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

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 gr

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: Paul On 9/19/07, abhiram <[EMAIL PROTECTED]> wrote: > > HII! i have a sma

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 to

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

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

Re: [S2] action mappings help

2007-09-19 Thread Eugen Stoianovici
Thanks, I added REQUEST REDIRECT 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 redirect. "" Use: <% String redirectAction = "/my

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

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

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. Which,

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 chi

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 bel

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 Wannemach

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

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?

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 I'

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. "" Use: <% String redirectAction = "/myapp/subfolder/welcome.action"; response.sendRedirect(redirectAction); %> On 9/19/07, Eugen Stoianovici <[EMAIL PROTECTED]> wrote: > > I'm trying

How to handle validation/errors in Ajax requests

2007-09-19 Thread Marc Eckart
Hi, I start a ajax request with a 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 target or can I force the site to l

[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

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

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 the

[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: so it redirects me to a mapped action. The problem is that even though the url is correct, i get a "The requested resource (/myapp/subfolder/welcome.action

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

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 siteTemplateSequenc

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 names

[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. ): it seems they are not being rendered. Could someone tell me where I'm wrong? ---

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 , then the Controller would not allow the action to be executed directly (i.e., through the add

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