I thought it may be like this:
s:if test=statement}Hello World/s:if or
s:if test=%{statement}}Hello World/s:if
On 3/27/07, Darren Salomons [EMAIL PROTECTED] wrote:
I don't know if this is a bug or if I'm doing something wrong but the if
tag
in Struts 2 always returns false for the first run
My filter is only interested in text parameters, my struts action
processes the file parameter. If I parse the request myself (in the
filter), the file parameter does not make it through to my action. If I
do not parse the request myself, I can not see the parameters in my filter.
Hope this
hi all,
i am trying to configure a same application with hibernate. I have a
login.jsp and login.java(action) class. right now i am using my action class
to check user name and password values entered by user against the one hard
coded in the clas. Now i want database connectivity with
--- struts2 [EMAIL PROTECTED] wrote:
I don't want 2 getter/setter one in action and one
for hibernate pojo. I want to use the same for both.
Expose the POJO in the action and use the fieldnames
in the JSP:
s:textfield name=user.username/
etc.
how do i can configure that in servlet.xml. In
Hello,
Can anyone tell me how do I setup the AJAX theme in my struts pages ?
As far as I can see I only have the xhtml theme available in my project.
Do let me know.
Thanks...Vijay
--
View this message in context:
http://www.nabble.com/Newbie-question-tf3472286.html#a9689968
Sent from
--- VJ22 [EMAIL PROTECTED] wrote:
Can anyone tell me how do I setup the AJAX theme in
my struts pages ?
s:head theme=ajax/
http://struts.apache.org/2.x/docs/ajax-theme.html
http://struts.apache.org/2.x/docs/ajax-tags.html
d.
Hi
My app is using Struts 1.3.8. It is sometimes deployed with SSL, and sometimes
without.
From a Struts Action is it possible to tell if SSL is in use?
I tried httpServletRequest.getPathInfo(), getRequestURL() and getAuthType(), but none of these seem
to return anything that indicates if
--- Adam Lipscombe [EMAIL PROTECTED]
wrote:
I tried httpServletRequest.getPathInfo(),
getRequestURL() and getAuthType(), but none of these
seem to return anything that indicates if the
request
started with http: or https:.
Any ideas if this is possible? How?
getScheme()
d.
Hi
You can use java SSL with your application
And Check by request if SSL in Use
But you should import in your files
If it is a wrong Idea , Please Drop it
Regards
Muralidharan.C
Senior Software Engineer
Catalytic Software, Ltd
Hyderabad. India
-Original Message-
From: Adam
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Adam,
Adam Lipscombe wrote:
From a Struts Action is it possible to tell if SSL is in use?
I tried httpServletRequest.getPathInfo(), getRequestURL() and
getAuthType(), but none of these seem to return anything that indicates
if the request
Hi,
I'm getting the following error when the form name is used in the action
mapping.
However, its working fine if the name attribute is removed.
action-mappings
action path=/viewAll
type=com.admin.DisplayAllAction
name=viewAllForm
Using Google, I have found some threads about using Tiles with Struts2,
but they all seem to involve using Tiles2 and not Tiles(1)
(http://www.mail-archive.com/user@struts.apache.org/msg56425.html and
http://www.mail-archive.com/user@struts.apache.org/msg56532.html)
Currently, I cannot forward
Hi,
How can I pass a parameter to a struts redirect-action?
i.e. given that the doSomething action requires a dynamic parameter, how do
I add this parameter to the redirect?
result type=redirect-actiondoSomething/result
Thank you in advance.
--
View this message in context:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Sateeshn,
Sateeshn wrote:
Hi,
I'm getting the following error when the form name is used in the action
mapping.
However, its working fine if the name attribute is removed.
Usually, this is an indication that you have validation turned on, the
You gave up just before you found it: you are looking for
ServletRequest.getScheme():
Silly me :-)
Many thanks all...
Adam
Christopher Schultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Adam,
Adam Lipscombe wrote:
From a Struts Action is it possible to tell if SSL is in
I am trying to migrate a WW 2.1.7 app to S2 with quite a few
difficulties on the way. As for now, the s:text tags don't get
replaced with the messages in the resource bundle for S2.
The resource bundle is in MyAppActionBase.properties, and
it is working with WW 2.1.7.
Any suggestions? I'm a S2
...or request.isSecure()
Larry
On 3/27/07, Christopher Schultz [EMAIL PROTECTED] wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Adam,
Adam Lipscombe wrote:
From a Struts Action is it possible to tell if SSL is in use?
I tried httpServletRequest.getPathInfo(), getRequestURL() and
--- Christopher Schultz wrote:
Sateeshn wrote:
action-mappings
action path=/viewAll
type=com.admin.DisplayAllAction
name=viewAllForm
scope=request
forward name=success
path=/marketing/viewAllPromos.jsp/
/action
/action-mappings
Are you
On 3/27/07, Andreas Imner [EMAIL PROTECTED] wrote:
Using Google, I have found some threads about using Tiles with Struts2,
but they all seem to involve using Tiles2 and not Tiles(1)
To my knowledge there is no way to use Struts 2 with Tiles 1. If you
*require* Tiles 1 it would probably not
Does this mean that the Tiles-code actually in use when using the
plugin is = Tiles2 ?
If so, is Tiles2 stable enough to use i a business critial
application, or do I need to look for a alternative for Tiles (like
Sitemesh) if I want to use Struts2?
Ursprungligt meddelande
Från:
Is there any way to show appropriate errors using DynaValidator?
I have a form with 3 fields, one for the username and two fields for a
password. When you enter no values, a global error must be shown to the user.
When the user enters an invalid character for the username, a messages that
On 3/27/07, Andreas Imner [EMAIL PROTECTED] wrote:
Does this mean that the Tiles-code actually in use when using the
plugin is = Tiles2 ?
Yes.
If so, is Tiles2 stable enough to use i a business critial
application, or do I need to look for a alternative for Tiles (like
Sitemesh) if I want
I just wanted to inform anyone out there that may be thinking of migrating to
Struts2 in a gradual way -- by having both S1 and S2 in the same war -- do
not try this at home, if you are using Tiles.
It is a futile excercise which cost me 24 man-hours.
The best approach would be to do a complete
On 3/26/07, Ashuin Sharma Chamorro [EMAIL PROTECTED] wrote:
Is it possible to use a DispatchAction but that some of the submit buttons
display the same name, but they redirect to different methods?
Use EventActionDispatcher or EventDispatchAction.
Your saying that any S1 app using Tiles can't, based on your experience,
be run with part of it being S2-based, in the same WAR? Could you
describe more what the problems you encountered were? I was considering
doing this for one app I have, the only one I've ever used Tiles in
actually, and
On 3/27/07, Frank W. Zammetti [EMAIL PROTECTED] wrote:
Your saying that any S1 app using Tiles can't, based on your experience,
be run with part of it being S2-based, in the same WAR? Could you
describe more what the problems you encountered were?
If I had to guess I would say that the
Why is it that putting this in the FilterDispatcher filter section in
web.xml breaks Sturts2:
init-param
param-nameconfig/param-name
param-value/WEB-INF/struts.xml/param-value
/init-param
It looks to me as if this makes S2 confused about the whereabouts of its
other
Hi all,
I have a problem... I'm using a TabbedPanel to display a
set of charts, using JFreeChart. Unfortunately, it takes about 1.5 secs
to render each chart, so I'm looking for a way to load only the Selected
Tab when my page is rendered. And delay the rendering of the other tab
--- King, Leon C wrote:
[...] I'm looking for a way to load only the
Selected
Tab when my page is rendered.
Does s:div... refreshOnShow=true .../ do what you
need?
http://struts.apache.org/2.x/docs/div.html
d.
I'm a Struts newbie having problems with the file upload in Struts
2.0.6 with Tomcat 6.0.10. When I select a file and submit it, the
setXXX(), setXXXContentType(), and setXXXFileName() methods in my action
aren't being called. However, if I then hit the Back button and try
again, it works and
It definitely IS possible to comingle a S1 app using Tiles1 and an S2
app using Tiles2 in the same WAR file. But they have separate
definition files. You can call a S1 action from an S2 page and vice
versa. I know it is possible, because I'm doing it. I believe that it
is NOT possible to
refreshOnShow is something different, it will force the tab(div) to reload
the content everytime it is made visible. The problem is that the tab will
load its content only if it is visible, I'm not sure why the isShowing()
method of the widget returns true, even when the tab is not visible, when
On 3/27/07, Ray Clough [EMAIL PROTECTED] wrote:
I believe that it is NOT possible to use S1 with T2 or S2 with T1 - at
least not out of
the box.
I know Antonio has worked on T2 support for S1, but I don't think it's quite
ready yet
Greg
result name=success type=redirect-action
param name=actionNamedoSomething/param
param name=namespace/someNamespace/param
param name=parsetrue/param
param name=methodsomeMethod/param
param name=myDynamicParam${myDynamicParam}/param
/result
On 3/27/07, ChristopherAngel
To follow up, here is the jira ticket (with the explanation):
https://issues.apache.org/struts/browse/WW-1860
regards
musachy
On 3/27/07, Dave Newton [EMAIL PROTECTED] wrote:
--- King, Leon C wrote:
[...] I'm looking for a way to load only the
Selected
Tab when my page is rendered.
Does
Thanks...
-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 27, 2007 3:56 PM
To: Struts Users Mailing List
Subject: Re: Load One Tab @ startup
To follow up, here is the jira ticket (with the explanation):
Anyone have any ideas on Content Management Software and using Struts 2? We
are devloping a new Web Site and would like to turn all the Content Maintenance
over to our Marketing Department. We are using Struts 2 and jsp's to render
the content now. We would like to pull the content from the
Struts 2 uses a different approach to loading the configuration. The
initial struts.xml is loaded from the root of the classpath. The
easiest way to set that up is to put the struts.xml under the classes
folder. The boostrap struts.xml can then load whatever other
struts.xml's you would like
I am trying the following with strange results.
@s.iterator value=availabilityList status=rowstatus
@s.if test=#rowstatus.index%7==0
tr
/@s.if
@s.if test=avail
My suggestion is, try hypercontent, and have jstl
import pointing to the hypercontent resource,
This is something I can give u a hand.
But hypercontent does not use any struts 2.
thanks.
--- Jim Young [EMAIL PROTECTED] wrote:
Anyone have any ideas on Content Management Software
and using
try any of these, dont get confused with jstl, also be
careful using % vs #
s:if test=%{statement}Hello World/s:if
s:if test=statementHello World/s:if
let us know if further problem exists
Thanks
--- joey [EMAIL PROTECTED] wrote:
I thought it may be like this:
s:if test=statement}Hello
When I try iterate using s:iterator tag I get a
ConcurrentModificationException.
The flow of my application is: I insert an user and I notify a topic to list
all the users. It is in a memory stored List.
Does any one got this error or even know how to fix that?
Here is my code.
table border=1
Are you using the Java NTML Authentication method by any chance (before
reaching this page or on this page) ?
NTLM makes tomcat/struts behave erratically. Form posts dont work
(Intermittently).
From: Kelly Morrison [mailto:[EMAIL PROTECTED]
Sent: Wed
Hi,
I'm trying to use the prepare interceptor in Struts 2, and although the
Action's prepare() function IS being called, the session doesn't seem to be
set on the action before the prepare() function is called.
The action implements SessionAware, and has a setSession(Map session)
function.
Yes thank you... I had confused it with the JSTL.
Thanks
joey-30 wrote:
I thought it may be like this:
s:if test=statement}Hello World/s:if or
s:if test=%{statement}}Hello World/s:if
On 3/27/07, Darren Salomons [EMAIL PROTECTED] wrote:
I don't know if this is a bug or if I'm doing
Hi Jason,
I believe it is the servlet-config interceptor that is responsible for
setting the session. I think it is part of the defaultStack. Try moving the
defaultStack before prepare in your configuration. That might do the job.
Regards,
Rohit
On 3/27/07, Jason Wyatt [EMAIL PROTECTED] wrote:
Thanks Rohit, moving the default stack before the prepare was a good idea,
works fine.
Regards
Jason
-Original Message-
From: Rohit Dewan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 28 March 2007 4:01 PM
To: Struts Users Mailing List
Subject: Re: Session not set before prepare()
47 matches
Mail list logo