Struts 2 Multi Level Type Conversion

2007-11-13 Thread richmondp
Hi, I am trying to write a type converter that will convert a String to a Date Time (dd/mm/yyy HH:mm:ss) and then convert the Date back to a String. I already have a global converter that converts a String to a Date (dd/mm/) and back to a String so my DateTime conveter is class specific and o

Re: [struts] [S2] Recursive

2007-11-13 Thread Chris Pratt
On Nov 13, 2007 10:51 PM, Dale Newfield <[EMAIL PROTECTED]> wrote: > > Chris Pratt wrote: > > I have an folder hierarchy that I'm trying to display on a web page, > > but I can't figure out how to get (or ) to work > > with a structure of unknown depth. Does anyone know of a technique > > that wo

About package org.apache.commons.fileupload.*

2007-11-13 Thread Fencer
Hi all, I do write a java servlet to process the file upload with package org.apache.commons.fileupload.*. It works normally when I use a jsp form to call the servlet but when I drive a flash I find the uploaded files stay in the temp directory set by the method setRepositoryPath. Actually the

Re: [struts] [S2] Recursive

2007-11-13 Thread Dale Newfield
Chris Pratt wrote: I have an folder hierarchy that I'm trying to display on a web page, but I can't figure out how to get (or ) to work with a structure of unknown depth. Does anyone know of a technique that would allow this? Create a .tag file that (conditionally) calls itself? -Dale -

[S2] Recursive

2007-11-13 Thread Chris Pratt
I have an folder hierarchy that I'm trying to display on a web page, but I can't figure out how to get (or ) to work with a structure of unknown depth. Does anyone know of a technique that would allow this? (*Chris*) - To unsu

How to preselect a radio button in Struts 2

2007-11-13 Thread Pankaj Gupta
Hi, I am working on Struts 2 and I want to preselect a radio button. If somebody can let me know how to go about it. Regards, Pankaj

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread Dale Newfield
chengas123 wrote: returns what I am expecting. returns nothing. Have you turned off this capability (or rather not turned it back on)? struts.ognl.allowStaticMethodAccess https://issues.apache.org/struts/browse/WW-2160 Does: value='[EMAIL PROTECTED]@escapeJavaScript("hello world")}'/> work

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread chengas123
Yes. That's definitely not the problem. It's on my classpath, etc. I was originally trying this same thing with a custom String util class that I wrote and that did not work either. I should mention that I am using Struts 2.1.1. If I am doing this correctly, then perhaps it's a bug? -Ben

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread Dale Newfield
chengas123 wrote: returns what I am expecting. returns nothing. Do you have a commons-lang jar in your WEB-INF/lib? http://commons.apache.org/lang/ -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: JasperException and javax.el.ELException when running under Jetty

2007-11-13 Thread Phil404
Wes Thanks for your quick response. You gave me the clue I needed!. OK, so I had this statements in my jsp: which produced the following error message: org.apache.jasper.JasperException: /WEB-INF/pages/assessment/questions.jsp(33,20) PWC6038: "%{#{5:''}}" contains invalid expression(s): jav

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread chengas123
That is basically what I had been trying all along. Am I doing anything wrong? returns what I am expecting. returns what I am expecting. returns nothing. returns nothing. Thanks, Ben newton.dave wrote: > > --- chengas123 <[EMAIL PROTECTED]> wrote: >> That brings me back to my original qu

Re: [struts] JAAS and Struts Re-authentication Question

2007-11-13 Thread Dale Newfield
Adam Gordon wrote: We're using JAAS for webapp authentication and we've discovered an issue: If user A is logged in and tries to log in as user B, they stay logged in as user A. Couldn't you protect the login form page and action so that they're only accessible by a session without any valid

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread Dale Newfield
chengas123 wrote: Thanks. I will be sure to look at that. That brings me back to my original question though which is how do I call that from within the property tag? value="[EMAIL PROTECTED]@escapeJavascript(ognlExpr)}"/> -Dale

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread Dave Newton
--- chengas123 <[EMAIL PROTECTED]> wrote: > That brings me back to my original question though > which is how do I call that from within the property tag? http://struts.apache.org/2.x/docs/ognl-basics.html See the section called "Accessing static properties". Nutshell: d. --

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread chengas123
Thanks. I will be sure to look at that. That brings me back to my original question though which is how do I call that from within the property tag? -Ben DNewfield wrote: > > chengas123 wrote: >> I think escaping would still be best for me > > Then you're looking for: > > org.apache.comm

JAAS and Struts Re-authentication Question

2007-11-13 Thread Adam Gordon
Hi- We're using JAAS for webapp authentication and we've discovered an issue: If user A is logged in and tries to log in as user B, they stay logged in as user A. We know how to detect if a user's already authenticated (we have some static objects stored on the session) but we're not sure w

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread Dale Newfield
chengas123 wrote: I think escaping would still be best for me Then you're looking for: org.apache.commons.lang.StringEscapeUtils.escapeJavaScript() -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread chengas123
Ahh, I'm afraid I'd missed that you reversed the order of the quotation marks. I was not aware that could be done. However, what I'm actually doing is putting the value into an onclick attribute. I'm not sure I can use this trick because then I end up with something like onClick="myFunction('te

Re: JasperException and javax.el.ELException when running under Jetty

2007-11-13 Thread Wes Wannemacher
Although the bug summary may be misleading, I'm guessing it's related to - https://issues.apache.org/struts/browse/WW-2213 Basically, Jetty is treating your anonymous map as UEL, when it's OGNL. You can escape the # like so - \#{'FRESHMAN':'Freshman', 'SOPHOMORE':'Sophomore', 'JUNIOR':'Junior',

JasperException and javax.el.ELException when running under Jetty

2007-11-13 Thread Phil404
I have a struts 2 application which works perfectly on Tomcat 5.5.23 but when I run it on Jetty 6.1.1 I get the following exception when processing an OGNL expressions in a jsp page: org.apache.jasper.JasperException: /WEB-INF/pages/register/info.jsp(45,10) PWC6038: "#{'FRESHMAN':'Freshman', 'SOP

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread chengas123
Escape is true by default. It escapes HTML characters such as < and > and not single quotes. -Ben Wes Wannemacher wrote: > > what about '' > > -Wes > > -- View this message in context: http://www.nabble.com/Escaping-Characters-in-Struts-Property-Tag-tf4799846.html#a13733962 Sent from

Re: [S2.0.11] TabbedPanel remote div loads twice on notifyTopic

2007-11-13 Thread Alvaro Sanchez-Mariscal
https://issues.apache.org/struts/browse/WW-2123 On Nov 13, 2007 9:06 PM, Alvaro Sanchez-Mariscal <[EMAIL PROTECTED]> wrote: > I fired a bug about this some weeks ago, and the response was "we will > solve it in Struts 2.1". > > Alvaro. > > > On Nov 13, 2007 8:43 PM, Crocker, Patrick <[EMAIL PROTEC

Re: [S2.0.11] TabbedPanel remote div loads twice on notifyTopic

2007-11-13 Thread Alvaro Sanchez-Mariscal
I fired a bug about this some weeks ago, and the response was "we will solve it in Struts 2.1". Alvaro. On Nov 13, 2007 8:43 PM, Crocker, Patrick <[EMAIL PROTECTED]> wrote: > Struts 2.0.11 > > I have a tabbed panel with 2 div's, one static, one remote. Tab one > (static) has a form with a submit

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread Dale Newfield
chengas123 wrote: That does not escape the single quote. Correct. But I believe the following is valid ecmascript (without the single quote being escaped): var testValue = "You've got to be kidding!"; -Dale - To unsubscri

[S2.0.11] TabbedPanel remote div loads twice on notifyTopic

2007-11-13 Thread Crocker, Patrick
Struts 2.0.11 I have a tabbed panel with 2 div's, one static, one remote. Tab one (static) has a form with a submit button that publishes a notify topic of "/refresh". Tab two (remote) has a listen topic of "/refresh". The problem is that when the form is submitted, Tab two (remote) is loaded t

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread Wes Wannemacher
what about '' -Wes On 11/13/07, chengas123 <[EMAIL PROTECTED]> wrote: > > That does not escape the single quote. > > -Ben > > > > DNewfield wrote: > > > > chengas123 wrote: > >> var testValue = ''; > >> > >> However, this does not work if the value has a single quote in it > > > > Try: > > var te

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread chengas123
That does not escape the single quote. -Ben DNewfield wrote: > > chengas123 wrote: >> var testValue = ''; >> >> However, this does not work if the value has a single quote in it > > Try: > var testValue = ""; > > -Dale > > -- View this message in context: http://www.nabble.com/Escapin

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread Dale Newfield
chengas123 wrote: var testValue = ''; However, this does not work if the value has a single quote in it Try: var testValue = ""; -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

Escaping Characters in Struts Property Tag

2007-11-13 Thread chengas123
Hi, I want to use the struts property tag to set a JavaScript variable. Ordinarily, it would look something like: var testValue = ''; However, this does not work if the value has a single quote in it, so that character needs to be escaped. It should be easy, but I can't figure out how to do it.

Re: what login security&encription are good for struts...?

2007-11-13 Thread Gary Affonso
msg2ajay wrote: hello friends, I am developing a struts+hibernate application which contains a login page. I am not sure of which tools or API's to use for logn Authentication and encription. Can any bady suggest me which is best for login Authentication and what way c

Re: [S2] Help for Ajax Tabbed Panel

2007-11-13 Thread Raghuveer Rawat
I can see below message after execution in tabble panel.. *Couldn't load content:Unknown runtime error* It looks request is getting forwarded to new location /WEB-INF/jsp/MyArticlesDetail.jsp. How do I include response of MyArticlesDetail.jsp in main jsp MyArticles.jsp I have below configuration

Re: [S2] Help for Ajax Tabbed Panel

2007-11-13 Thread Raghuveer Rawat
Thanks Basti, I made this change for s:url Now I can see from log that DisplayTag is getting populated with correct data but table is not getting populated to main JSP MyArticles.jsp i.e. response of MyArticlesDetail.jsp is not getting included in MyArticle.jspwhich contain TabbedPanel Not sure wh

Re: S2 v2.1.1: exception updating remote div ..

2007-11-13 Thread Giovanni Azua
hi Dave, Please find below all relevant sources. Workflow is: 1-. Menu -> ListOptimizationJobStatus.action 2-. ListOptimizationJobStatus.action -> Displays listOptimizationJobStatus.jsp 3-. listOptimizationJobStatus.jsp Remote DIV refreshes every X secs and invokes RefreshOptimizationJobStatus

Re: what login security&encription are good for struts...?

2007-11-13 Thread Ingo Villnow
Hi, A salt value is a random value that will combinated with a password, so both can be encrypted encrypt(salt+password) = hash Please read: http://en.wikipedia.org/wiki/Salt_%28cryptography%29 You don't have to decrypt any passwords. Yes, 'I am using hibernate to read/write on my database. Gre

Re: S2 v2.1.1: exception updating remote div ..

2007-11-13 Thread Dave Newton
Hello, Could you post the outline of the source that created this error? Just curious as to what could have caused that error--may be a bug. Thanks, Dave --- Giovanni Azua <[EMAIL PROTECTED]> wrote: > hi, > > Got rid of the issue by changing the following > parameter in struts.xml > > From: >

Re: [s2] s:url and wildcards

2007-11-13 Thread Dave Newton
--- Thilo Ettelt <[EMAIL PROTECTED]> wrote: > d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: what login security&encription are good for struts...?

2007-11-13 Thread Piero Sartini
> its a very nice example which u have sent but i have a doubt that > "as u are using salt(generation) adding to the encripting code that will be > fine for registeration but what ab the login time how you are going to > decript the data base code"? You do not need to decrypt - you just

Re: S2 v2.1.1: exception updating remote div ..

2007-11-13 Thread Giovanni Azua
hi, Got rid of the issue by changing the following parameter in struts.xml From: To: hard to guess this one .. regards, Giovanni Giovanni Azua wrote: hi all, I am playing with Struts 2.1.1 built from sources and I am currently getting the exception below while using remote div,

S2 v2.1.1: exception updating remote div ..

2007-11-13 Thread Giovanni Azua
hi all, I am playing with Struts 2.1.1 built from sources and I am currently getting the exception below while using remote div, any clues? TIA, regards, Giovanni WARNING: Could not find property [struts.valueStack] ognl.OgnlException: target is null for setProperty(null, "preventCache", [Lj

RE: conditional statement in struts2

2007-11-13 Thread SudarshanP
With all due respect to roseindia.net, i would like to say that, the examples given are vanilla which is good to know the concepts but actual development code will be much complex Deepak Kumar wrote: > > Please check http://www.roseindia.net/struts/struts2/struts-2-tags.shtml > > Thanks >

conditional matching using s:if

2007-11-13 Thread SudarshanP
Hi Struts2 users, I am new to Struts2 Have a problem with s:if tag, below is the code snippet 'branchsData' is a javaobject having 'branch' as its property Trying to generate table structure based on condition, i am afraid s:if conditional tag is not working for me. Let me know what is the pro

Re: struts 1.2: calling an action by javascript

2007-11-13 Thread Friend Here
function submit() { populate values ..then document.action.value = " /url "; document[0].forms[0].submit(); } Ingo Villnow wrote: > > Hello, > > i want to call an action by javascript, when a value in a > field changes. I want to fill my with the data provided by > the ac

Without ActionServlet can i use struts ....?

2007-11-13 Thread Friend Here
without ActionServlet can i use struts ? could u plz explain abt this ... -- View this message in context: http://www.nabble.com/Without-ActionServlet-can-i-use-struts---tf4796947.html#a13723279 Sent from the Struts - User mailing list archive at Nabble.com. -

forward to a particular id in a page from

2007-11-13 Thread shakeel_code
Hi, i have an html id in a jsp page . i have, in my struts config.xml but i want to go directly to that id in the jsp page when the forward happens. i also tried, but it was of no help can anyone help me? thanks... -- View this message in context: http://www.nabble.com/forwar

[s2] s:url and wildcards

2007-11-13 Thread Thilo Ettelt
I have noticed that it doesn't seem to be possible to construct a wildcard action using s:url, is that correct? Or am I doing something wrong? The corresponding action would be mapped like "content/*/view". This will output an URL like "/content/'+someID+'/view'", instead of "/content/100/view

Re: what login security&encription are good for struts...?

2007-11-13 Thread msg2ajay
hi, its a very nice example which u have sent but i have a doubt that "as u are using salt(generation) adding to the encripting code that will be fine for registeration but what ab the login time how you are going to decript the data base code"? and authenticate... and one more thing is

Re: [S2] Help for Ajax Tabbed Panel

2007-11-13 Thread lbastil
I think you have to use when using ajaxed remote divs. Try something like: ... Regards, basti Raghuveer Rawat wrote: > > Hi, > I am using Struts2, Tile2, Spring2, Display Tag. > I am implementing tabbed panel and all the tabs make remote calls. Each > Tab > will contain a table wh