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
I think you have to use s:url .../ when using ajaxed remote divs.
Try something like:
s:url id=yourId ... /
...
s:div id=one label=Stories theme=ajax
href=%{yourId}
labelposition=top
/s:div
Regards,
basti
Raghuveer Rawat wrote:
Hi,
I am using Struts2, Tile2, Spring2, Display
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?
s:url action='/content/'+someID+'/view' id=testURL/
The corresponding action would be mapped like content/*/view.
This will output an URL like
Hi,
i have an html id in a jsp page tr id=theId/tr.
i have,
forward name=thisisdjsp.jsp/ 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,
forward name=thisisdjsp.jsp id=theId/
but it was of no help
can anyone help
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.
html:select onchange = submit();
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 html:select
field changes. I want to fill
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
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
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,
hi,
Got rid of the issue by changing the following parameter in struts.xml
From:
constant name=struts.devMode value=true /
To:
constant name=struts.devMode value=false /
hard to guess this one ..
regards,
Giovanni
Giovanni Azua wrote:
hi all,
I am playing with Struts 2.1.1 built
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
--- Thilo Ettelt [EMAIL PROTECTED] wrote:
s:url action='/content/'+someID+'/view'/
s:url action=%{'content/' + someID + '/view'}.../
d.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
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:
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.
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
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
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
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
Hi,
I want to use the struts property tag to set a JavaScript variable.
Ordinarily, it would look something like:
var testValue = 's:property value=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
chengas123 wrote:
var testValue = 's:property value=testValue /';
However, this does not work if the value has a single quote in it
Try:
var testValue = s:property value='%{testValue}'/;
-Dale
-
To unsubscribe, e-mail:
That does not escape the single quote.
-Ben
DNewfield wrote:
chengas123 wrote:
var testValue = 's:property value=testValue /';
However, this does not work if the value has a single quote in it
Try:
var testValue = s:property value='%{testValue}'/;
-Dale
--
View this
what about 's:property value=testValue escape=true /'
-Wes
On 11/13/07, chengas123 [EMAIL PROTECTED] wrote:
That does not escape the single quote.
-Ben
DNewfield wrote:
chengas123 wrote:
var testValue = 's:property value=testValue /';
However, this does not work if the value
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
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
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 button
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 PROTECTED] wrote:
Escape is true by default. It escapes HTML characters such as and and
not single quotes.
-Ben
Wes Wannemacher wrote:
what about 's:property value=testValue escape=true /'
-Wes
--
View this message in context:
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',
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',
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
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,
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
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:
--- 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:
s:property
value=@[EMAIL
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?
s:property
value=[EMAIL PROTECTED]@escapeJavascript(ognlExpr)}/
-Dale
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
That is basically what I had been trying all along. Am I doing anything
wrong?
s:property value=comments / returns what I am expecting.
s:property value=%{comments} / returns what I am expecting.
s:property
value=@[EMAIL PROTECTED](comments)
/ returns nothing.
s:property
value=[EMAIL
Wes
Thanks for your quick response. You gave me the clue I needed!. OK, so I
had this statements in my jsp:
tdww:radio theme=simple name=responses[%{questionNo}].value
list=%{#{5:''}} //td
which produced the following error message:
org.apache.jasper.JasperException:
chengas123 wrote:
s:property value=%{comments} / returns what I am expecting.
s:property
value=[EMAIL PROTECTED]@escapeJavaScript(comments)}
/ returns nothing.
Do you have a commons-lang jar in your WEB-INF/lib?
http://commons.apache.org/lang/
-Dale
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
chengas123 wrote:
s:property value=%{comments} / returns what I am expecting.
s:property
value=[EMAIL PROTECTED]@escapeJavaScript(comments)}
/ returns nothing.
Have you turned off this capability (or rather not turned it back on)?
struts.ognl.allowStaticMethodAccess
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
I have an folder hierarchy that I'm trying to display on a web page,
but I can't figure out how to get s:iterate (or c:forEach) to work
with a structure of unknown depth. Does anyone know of a technique
that would allow this?
(*Chris*)
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 s:iterate (or c:forEach) 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
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
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 s:iterate (or c:forEach) to work
with a structure of unknown depth. Does anyone know of a technique
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
47 matches
Mail list logo