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
Hello:
I am using Struts 2 and need to add InputTransferSelect in my JSP page. I am
adding the following code in my JSP page.
But it generates error when this page is converted into HTML page. The
problem is with 'TRTMNT_TYPE_CODE' in the name attribute. Actually, the
Struts 2 do
Hi,
Thanks for the reply! I was out of the office so I was only able to try it
out now. It works so I guess I'll use this approach for now. I applied some
CSS using "display: none". Again not the most elegant approaches but I guess
it will do.
Is this really some bug? If anyone has other ways t
Have one log4j setting for all the projects,
Thanks
--- Clark O'Brien <[EMAIL PROTECTED]> wrote:
> Setting the freemarker_update_delay improved
> performance for sure.
>
> Hate to ask such a simple question but just own do I
> change the devMode option and logging - my log4j.xml
> has ERROR set
I am having a similar problem with WebSphere 6.0 using the j4 distro (I had to
retrotranslate the Sitemesh plugin). In my case, the NoClassDefFoundError was
for org.apache.struts2.sitemesh.TemplatePageFilter, which per the docs is to be
used in place of com.opensymphony.module.sitemesh.filter.P
> That class was built for JDK 1.5/Java 5, and you're running JDK 1.4.
Ahh.
> Is running Java 5 an option for you? If not, you might be
> able to re- compile XWork for 1.4.
Eventually. At the moment we're using BEA Weblogic 8.x. That supports
java 1.4, and it doesn't support servlets 1.4 eithe
--- Wesley Wannemacher <[EMAIL PROTECTED]>
wrote:
> Struts2 is heavily based on WebWork,
> which uses xwork. I am not sure if this will be
> re-factored out.
Almost everything in S2 *is* XWork; I don't see how
(or why) it would or could be refactored out.
d.
---
--- Jim Cushing <[EMAIL PROTECTED]> wrote:
> Is running Java 5 an option for you? If not, you
> might be able to re-compile XWork for 1.4.
Or use the retrotranslater included in the S2 download
and convert the XWork jar as well as the S2 ones
already converted.
d.
--
If you are not using container managed persistence, where the
HttpRequest values are being set in the environment, you probably don't
want to use the Principal or PrincipalAware interface, or even to wrap
the HttpServletRequest (this email was in response to using a servlet
wrapper to re-implem
That class was built for JDK 1.5/Java 5, and you're running JDK 1.4.
Is running Java 5 an option for you? If not, you might be able to re-
compile XWork for 1.4.
On Sep 18, 2007, at 2:50 PM, Slattery, Tim - BLS wrote:
What's with com.opensymphony.xwork2.ActionSupport?
I don't see anything li
> What's with com.opensymphony.xwork2.ActionSupport?
> I don't see anything like that in the Struts 2.0.9 package
> I downloaded. Did I miss something?
OK, I found that in the xwork-2.0.4.jar library, not in the struts2-core
library, where I expected it.
Now I get this message when I try to com
Very cool. I was able to get mine working with:
Action Class :
List beanList;
.getter/setter
in the jsp:
...
on submit I access my List of beans with
List mysubmittedList = getBeantList() ;
On 9/18/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- Vinny <[E
It is in the xwork jar file. It comes with any of the struts apps
(struts2-blank, struts2-showcase). Struts2 is heavily based on WebWork,
which uses xwork. I am not sure if this will be re-factored out.
-Wes
-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: T
I'm trying to follow along the Struts 2 tutorial. The HelloWorld.java
file starts this way:
package tutorial;
import com.opensymphony.xwork2.ActionSupport;
public class HelloWorld extends ActionSupport {
What's with com.opensymphony.xwork2.ActionSupport? I don't see anything
like that
It's not clear what you're doing to cause the exception; what does
'request a process' mean?
L.
hariskumar wrote:
Hi All,
We are developing web application using struts 1.3.5 and oracle database.
When I requesting a process at the page in my web application. The process
going before getting r
Am Dienstag, 18. September 2007 20:22:41 schrieb Sairam01:
> I'm unable to include a jsp dynamically. The include tag doesn't evaluate
> VALUE of the expression.
>
>
>
> someName is a attribute on my action code. Should this work..?
is this a typo in the email? it should read
if there is a pr
I'm unable to include a jsp dynamically. The include tag doesn't evaluate
VALUE of the expression.
someName is a attribute on my action code. Should this work..?
--
View this message in context:
http://www.nabble.com/s%3Ainclude-tag-tf4476115.html#a12763052
Sent from the Struts - User mailin
With some work, the annotations could be as flexible as the XML
validations. The messy problem in either case is being able to express
when and when-not to inherit validations from parent classes.
Right now, you can shut off the inheritance of validations (as
Veronica described), but it shuts off
On 9/18/07, Ian Roughley <[EMAIL PROTECTED]> wrote:
> By implementing the PrincipalAware interface, the Principal object will
> be injected into the action with those values from the request (the
> user, roles, etc.). The values can be be used in the action, or the
> Principal can be exposed with
By implementing the PrincipalAware interface, the Principal object will
be injected into the action with those values from the request (the
user, roles, etc.). The values can be be used in the action, or the
Principal can be exposed with a setter for the actions to use.
/Ian
Mark McLaren wro
--- Xibin Liu <[EMAIL PROTECTED]> wrote:
> I mean implementing the forward in the html:link tag
> too. It would be nice if you can give me an example
> for that.
Still
There are no ActionForwards in S2.
d.
-
To unsubscribe,
I mean implementing the forward in the html:link tag too.
It would be nice if you can give me an example for that.
Thanks
-Original Message-
From: Kun Niu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 18, 2007 11:33 AM
To: Struts Users Mailing List
Subject: Re: How to accomplish
s:url and s:a
?
2007/9/18, Xibin Liu <[EMAIL PROTECTED]>:
>
> What is the equivalent tag in struts 2.0 for the following struts 1 tag?
>
> key="help"/>
>
> I know s:text will replace bean:message, but what about html:link ?
>
>
> Thanks
>
--
失业
牛坤
MSN:[EMAIL PROTECTED]
What is the equivalent tag in struts 2.0 for the following struts 1 tag?
I know s:text will replace bean:message, but what about html:link ?
Thanks
/auction.jsp
public class AuctionAction {
public String buy() {
return SUCCESS;
}
public String sell() {
return SUCCESS;
}
}
Consider this code. It would be preferable to be able to write a
separate
Hi,
I used to filter the request parameters of certain actions. It works
like this: the original bean is stored in the session. When the user
hits update, the filter replaces the paramters submitted by the user
with the original ones. Then, it replaces or deletes the values the
user has changed an
I am exploring Struts2 and I have what may be a very simple question
from the Tutorial at http://struts.apache.org/2.x/docs/bootstrap.html.
In the tutorial one sets the struts.xml to include the mapping
Now, I understand why this works in response to the request
Logon_input.action, but I ca
I'm not sure I follow how validation is more flexible when using annotations
vs. xml files.
Aliases are how you tell xwork that this method is the one to be executed,
so there's a 1-to-1 mapping between aliases and methods.
File based validation is, in a sense, more flexible, because you can def
Is there some logical reason why the behavior of the value tag attribute
seems to be different among different tags. Basically, what I observe
is that if I'm using altSyntax, depending on the tag, the %{} syntax is
required or optional in the value attributes. For example, the below
tag:
--- Vinny <[EMAIL PROTECTED]> wrote:
> myBean[0].propertyName for example
> of values that struts 1.x was able to pick back up
> in the action. I'm sure there must be a way to do
> this in S2, right?
The same way, although AFAIK you have to build the
property name by hand using the iterator's nam
I will give this a try as well. I have been wrestling with getting my
indexed values
back from my jsp's forms. In struts 1.1+ , this was handled well by using
nested
tags. Nested used to produced arrays ( myBean[0].propertyName for example)
of values that struts 1.x was able to pick back up in th
--- [EMAIL PROTECTED] wrote:
> This code works running on the server
>
> <%
> String path = request.getContextPath();
> String basePath = request.getScheme()
>+ "://" + request.getServerName() ...
Oh, on the remote server? Hmm, I would have expected
that to fail in the same way--I assumed
Great! Getting the ISP to do anything outside of accept my money is like
getting through the airport with a duffle bag.
This code works running on the server
<%
String path = request.getContextPath();
String basePath = request.getScheme
()+"://"+request.getServerName()+":"+request.getServerPort(
devMode: http://struts.apache.org/2.x/docs/devmode.html
See if you have log4j.jar other places in your classpath (server
scope/shared scope), and if you have log4j configuration files
somewhere else.
Nils-H
On 9/18/07, Clark O'Brien <[EMAIL PROTECTED]> wrote:
> Setting the freemarker_update_dela
Setting the freemarker_update_delay improved
performance for sure.
Hate to ask such a simple question but just own do I
change the devMode option and logging - my log4j.xml
has ERROR set for logging but I am getting INFO on the
console.
Clark
--- Nils-Helge Garli <[EMAIL PROTECTED]> wrot
--- [EMAIL PROTECTED] wrote:
> Do you think it could be a server setting?
AFAIK the relevant code is in UrlHelper:
link.append(request.getServerName());
As a sanity check you could see what that returns in a
typical Action, but I'd guess something isn't right on
the server and it's returning a n
Thank you Balaji --
Do you think it could be a server setting?
Scott
On 9/17/07, Balaji J <[EMAIL PROTECTED]> wrote:
>
>
> Hi Scott,
>
> I verified and even <@s.url> in both environments. I was not able
> to see the difference.
> In my desktop, i was using tomcat 5.5
> and my server has tomcat
Not sure what your feelings are, but I've noticed the showcase
application example uses the commons validator for validation.
Would it make more sense for the validation (what little there is in
that app) to be changed to use the Xworks validator, considering this is
what the Struts 2 documentatio
Hi Ted,
It appears that if you use annotations you have more flexibilty than
with using xml. Would it not be possible to add the abililty to specify
validation files for each method without having to create aliases for
every single method. We have actions with quite a high number of methods
each w
Hi!
Is it just the page the portlet is on? Have you tried switching of
devMode and logging? There should be no extra performance hit
compared to a basic Struts 2 application, so the performance tuning
information in the documentation should apply:
http://struts.apache.org/2.x/docs/performance-tun
Hi,
I just downloaded struts2 a couple days ago and built
a basic portlet with it. When I added the portlet the
entire portal became dog slow. When I remove the
portlet it is performant again.
Can someone tell me why this would be happening.
Also I don't want spring, caching,... I just want a
bas
Hi,
D> With what?
Well, that was what I was asking myself. :) Problem is, the app hasn't
been touched since 4 years. So I kind of re-engineering here.
D> Something in your application is pre-loading the
D> dynaform with reasonable values, no? I don't really
D> remember S1.1 at this point; do you
* http://struts.apache.org/2.x/docs/validation.html
It's under "Defining Validation Rules" at 2. The term "alias" is used
to refer to the action method.
So if there's an actions.Register.java class with "insert" and
"update" action methods, then there might be XML docs like
/java/actions/Regist
Can someone please point me to the documentation that shows you how to
configure validation per action method using the validation xml files?
Or is this not possible?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Ted Husted
Sent: 18 September 2007 10:27
--- Arne Brutschy <[EMAIL PROTECTED]> wrote:
> But when I get at the beginning of the
> UserDispatchAction.update(), the dynaform
> has all values filled in.
With what?
Something in your application is pre-loading the
dynaform with reasonable values, no? I don't really
remember S1.1 at this poi
--- Arne Brutschy <[EMAIL PROTECTED]> wrote:
> But when I get at the beginning of the
> UserDispatchAction.update(), the dynaform
> has all values filled in.
With what?
Something in your application is pre-loading the
dynaform with reasonable values, no? I don't really
remember S1.1 at this poi
I added this as
* http://jira.opensymphony.com/browse/XW-565
-Ted.
On 8/3/07, mraible <[EMAIL PROTECTED]> wrote:
>
> I figured out how to do this - posting here so others will benefit.
-
To unsubscribe, e-mail: [EMAIL PROTECTE
I opened
* https://issues.apache.org/struts/browse/WW-2191
for this, and noted the setting in the Validators documentation.
Thanks for pointing this out, Veronica!
-Ted.
On 8/10/07, Veronica Iturrioz <[EMAIL PROTECTED]> wrote:
> You must to set the property validateAnnotatedMethodOnly=true, a
Hi,
I'm just thinking aloud, so perhaps someone can drop-in and shed some
light here... :)
Post data send by browser is identical on both versions (old: struts
1.1 and new: struts 1.3.8). It contains only the displayed parameters,
nothing else. So in the old version, when the request arrives at
A
Hi All,
We are developing web application using struts 1.3.5 and oracle database.
When I requesting a process at the page in my web application. The process
going before getting result I am requesting another process in the same
page. On that time I got the following error.
Please any one know h
Hello Balaji,
Thanks for the quick response. The problem is: I dont have a clue what an
interceptor is - and how to implement it in my
Application. Do you have any examples or guides for this solution?
Thanks
-Ursprüngliche Nachricht-
Von: Balaji J [mailto:[EMAIL PROTECTED]
Gesendet:
Hi Tom,
Interceptor is the best solution for this kind of problem.
Pass all your action requests to your custom interceptor that should
validate your requests and redirect to respective actions.
Regards,
Balaji
nomax wrote:
>
> Hi,
>
> I want to restrict access to my actions - meaning: I d
Hi,
I want to restrict access to my actions - meaning: I dont want users to
be able to type them in the adressbar and jump around in my page as they
like to.
It kinda makes my navigation effords senseless.
Ive try to write a servlet-filter which checks for actions beginning
with "secure" - but
Hi,
I just found out that the postdata didn't contain the attributes as
well when using struts 1.1. So nothing changed here. But when I get at
the beginning of the UserDispatchAction.update(), the dynaform has all
values filled in. So I'm wondering where struts fills in the data, and
why it doesn'
Hi all,
I think this is a generic problem rather than something Struts 2
specific. Ideally in this situation you would want to be able to
access getRemoteUser() and isUserInRole() from the request.
One approach is to use your application servers' container managed
security, e.g. Tomcat JAASRealm
55 matches
Mail list logo