I have a log4j.xml file located in my /src directory in my webapp
(Dynamic Web Project from eclipse ganymede).
http://jakarta.apache.org/log4j/";>
I've got log4j.jar in my appserver's
you'll need to be more specific about which categories of messages you want to
log File? SMTP? JDBC? categories are listed:
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Appender.html
you'll also need to be specific about which level of messages you want and dont
want
http://logg
Wow, I have no idea where you're going with this. So far you've shown code
that can write more messages to a log and find out the name of the log
file. How does this help in turning off the obnoxious messages that the
framework is logging that aren't in the obvious categories?
(*Chris*)
On Fri
Thanks Nils. Though, to be honest, it doesn't really help since my previous
post in this thread (and the question it asks) was based on a reading of
those very links...
;)
I hit the same wall: how to extract from an ActionInvocation (or an
ActionContext) the namespace, the name and the parameter
very good dave..
assuming your log4j configuration has a FILELOG appender
//Logger extends Category so use getAppender to get the Apender object
Appender appender=log.getAppender("FILELOG");
//finally to get the actual name of the log
String NameOfLogFile=appender.fileName;
...
Martin
_
--- On Fri, 10/17/08, Chris Pratt wrote:
> Hmmm, I don't get it Martin, how does writing something
> to the log prevent things from getting written to the log?
Reverse psychology.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED
Hmmm, I don't get it Martin, how does writing something to the log prevent
things from getting written to the log?
(*Chris*)
On Fri, Oct 17, 2008 at 3:05 PM, Martin Gainty <[EMAIL PROTECTED]> wrote:
>
> import org.apache.log4j.Logger;
>
> public class BeyondFuBarAction extends FuBarAction {
>
I can't find the original thread w/ the log msgs.
There's also the ognl logger; log4j.logger.ognl=XXX (or however Log4J does it,
if you're using Log4J).
Dave
--- On Fri, 10/17/08, Chris Pratt <[EMAIL PROTECTED]> wrote:
> From: Chris Pratt <[EMAIL PROTECTED]>
> Subject: Re: Tons of Could not f
--- On Fri, 10/17/08, Martin Gainty wrote:
> import org.apache.log4j.Logger;
>
> public class BeyondFuBarAction extends FuBarAction {
> private static final Logger LOG =
> Logger.getLogger(BeyondFuBarAction.class);
>
> /** override super */
> public String execute() throws Exception {
import org.apache.log4j.Logger;
public class BeyondFuBarAction extends FuBarAction {
private static final Logger LOG = Logger.getLogger(BeyondFuBarAction.class);
/** override super */
public String execute() throws Exception {
LOG.error("beyond FUBAR");
Martin
_
Maybe these links will help:
http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/ActionInvocation.html
http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/ActionProxy.html
Nils-H
On Fri, Oct 17, 2008 at 7:43 PM, Pierre Thibaudeau
<[EMAIL PROTECTED]> wr
Nope, I'm having the same problem. I've set those two categories, but still
get lots of junk in the logs.
(*Chris*)
On Fri, Oct 17, 2008 at 2:29 PM, 928572663 <[EMAIL PROTECTED]> wrote:
> Yeah I had tried that but they are still getting through. I must have some
> other config issue with log4
Yeah I had tried that but they are still getting through. I must have
some other config issue with log4j.
-John
Pierre Thibaudeau wrote:
Is there a way to determine which logging properties need to be configured
to remove / change all of the struts logging?
I haven't seen a confluence page o
>
> Is there a way to determine which logging properties need to be configured
> to remove / change all of the struts logging?
>
> I haven't seen a confluence page on that topic yet.
>
> i.e., if I wanted to set the whole logging level for all of struts2 to
> ERROR, how would I find the property na
I've seen that, and it had to do with the transition from https to http
resulting in discrete sessions.
-Original Message-
From: Peterson, Ryan [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2008 3:46 PM
To: user@struts.apache.org
Subject: Struts 2 session in Weblogic 10.0
Hi guy
Sorry, should have read the original question more carefully!
Because he provided JSP syntax (more accurate the OGNL syntax inside an S2
"property" tag in either JSP or FreeMarker). A plain %{expression} inside
FreeMarker, IIRC, would be meaningless.
-
I did try this as you told but I am still getting the exception.
Anyways to get a solution to that. I think this is a widespread
problem(having gone through the forums), is there any other way. I am
also looking to test this finally on Webshpere so are there some
issues there?
On 10/17/08, jygnash
Thanks for the emails. I downgraded and made the setting but haven't solved
my malfunction yet. I'm on WebSphere Platform 6.1 [BASE
6.1.0.17cf170821.07]. So, I'll mess with it some more later.
Tim
On Fri, Oct 17, 2008 at 2:01 PM, Struts Two <[EMAIL PROTECTED]> wrote:
> >>So, I do have a working
Is there a way to determine which logging properties need to be
configured to remove / change all of the struts logging?
I haven't seen a confluence page on that topic yet.
i.e., if I wanted to set the whole logging level for all of struts2 to
ERROR, how would I find the property names to set?
Hi guys,
I'm having some trouble with a session variable not being saved in
Weblogic 10. I'm tracking the login of a user by allowing my login
class to implement sessionAware, and putting a key/value pair into the
session upon successful login. This works just fine testing in Tomcat
5.5, but
It worked out.. Thank you!
Laurie Harper wrote:
>
> styl9090 wrote:
>> Hi,
>> I am using struts 2 in my current project.
>> How can I write the action dynamically in my JSP form tag?
>> Here is the example: This case, I have my form action is in session.
>>
>>
>> I have tried using below, whi
the workaround
https://issues.apache.org/jira/browse/TAP5-222
is to override HTTPServletRequest getPath() method as
@Override
public String getPath() {
//Websphere returns the path in the getPathInfo()
String path = request.getPathInfo();
//path == null so no Websphere
if (path == null) {
return
--- On Fri, 10/17/08, Martin Gainty wrote:
> if JSF cant locate a .JS there should not be any special algorithms or
> manipulations to handle the 404 The problem is with JSF not locating
> the .js file (even though the resource is located by other means later
> on) I'm going to ping the JSF folk
http://www-01.ibm.com/support/docview.wss?uid=swg1PK33090
if JSF cant locate a .JS there should not be any special algorithms or
manipulations to handle the 404
The problem is with JSF not locating the .js file (even though the resource is
located by other means later on)
I'm going to ping the
>>So, I do have a working configuration for tomcat5.5. Now for WebSphere/Rad7.
>>WebSphere does not give an error message but does load the .jsp but just not
>>the .action. This must be a websphere configuration issue or an issue with
>>conflicting .jars. i'll continue to investigate.
Before you r
>
> > Instead of the uri, the action name, method and namespace called would be
> > better.
> > In this way the same can be applied to portlets too. So i would like to
> > enhance your original thread question.
>
> I belive this can be obtained from the action invocation.
>
I believe so too, but I
--- On Fri, 10/17/08, doahh wrote:
> I have no idea why the mehtod you gave doesn't work for me [...]
Because he provided JSP syntax (more accurate the OGNL syntax inside an S2
"property" tag in either JSP or FreeMarker). A plain %{expression} inside
FreeMarker, IIRC, would be meaningless.
Anot
--- On Fri, 10/17/08, A. Lotfi wrote:
>
>
> --SELECT--
>labelProperty="label" />
> [...]
>
> I have two questions :
> 1) I hard coded the size of the lists to 10,How to make
> the size dynamic?
Use JSP EL:
> 2) I would like to transfer element between the two
Thanks again for the reply, it didn't work for me but I managed to get it
thanks to the documentation you pointed me towards. I got it through:
${action.servletResponseFromActionContext.contextPath}
where 'servletResponseFromActionContext' is a method
'getServletResponseFromActionContext' of my
Francisco-
Not clear how an interceptor can solve this..how does interceptor solve
reception of timeout 'event's?
Thanks,
Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business
I've done it using an interceptor and it works properly. Thanks all!
> From: [EMAIL PROTECTED]
> To: user@struts.apache.org
> Subject: RE: Session timeout
> Date: Thu, 16 Oct 2008 12:12:08 -0400
>
>
> your web.xml contains a session-timeout parameter set e.g.
>
> 30
>
>
> from my und
I am not a YUI guy, but I'm assuming YUI is expecting a javascript array
of string. What does your struts.xml look like? What have you defined
for the SUCCESS result? Is it a jsp? If it is a jsp, you should make
the jsp write out the array as YUI is expecting it. The jsp will have
access to
HI All,
DO any one have any clue about this probelm...???
i am really stuck here.
On Thu, Oct 16, 2008 at 3:33 PM, shekher awasthi
<[EMAIL PROTECTED]>wrote:
> Hi All,
>
> I am trying to integrate struts2 with YUI ,but facing some problems with
> this. I want that when my action get call
%{#request}
That should get you the request context, as stated in:
http://struts.apache.org/2.x/docs/ognl.html
doahh wrote:
Thanks for the reply, I am sure I am being dumb but I haven't had any luck in
getting them working. I have tried:
${req}
${#req}
%{req}
%{#req}
can you give an example o
Hi,
I am using struts1.2.9
I have a jsp file that has two list boxes :
--SELECT--
--SELECT--
I have two questions :
1) I hard cod
Thanks for the feedback. Wow. i would NEVER have expected so much problems
from sub-releases of the libs. I'm trying it in Tomcat 5.5. the lib
versioning problems there are a big mess too.
I first tried my files from the RAD7/WebSphere and had the same failures.
Then I unjarred struts-2.0.11-all.
Thanks for the reply, I am sure I am being dumb but I haven't had any luck in
getting them working. I have tried:
${req}
${#req}
%{req}
%{#req}
can you give an example of the correct syntax please?
--
View this message in context:
http://www.nabble.com/Re%3A-Strus2%2C-Freemarker-and-getting
Am Freitag, 17. Oktober 2008 16:18:27 schrieb Martin Gainty:
> you can configure fileUpload Interceptor to allow these predefined types
Its not a upload problem. I am delivering a simple jsp page with more or less
static html and there is no content type set.
I don't want a method at the FilterDi
Hi Adam,
I vaguely believe that what you are looking for can be found, not among
interceptors, but among converters. (Isn't there a "trim" flag, somewhere?)
Sorry for the vague answer, but I hope it can steer you in the right general
direction!
2008/10/17 Adam Lister <[EMAIL PROTECTED]>
> Yes,
> Instead of the uri, the action name, method and namespace called would be
> better.
> In this way the same can be applied to portlets too. So i would like to
> enhance your original thread question.
I belive this can be obtained from the action invocation.
Nils-H
--
Yes, I could write my own request filter that does this, but I was sort
of hoping there'd be something in the framework that could do it for me,
as other web frameworks that I've used in the past have offered this
functionality, and it seems to be something that people would fairly
commonly wan
Hi,
I have setup same version of java on linux also.
JDk 1.5
Tomcat 5.5
Struts1.2.8
Even then the struts are not recognized.
Sample struts applications also not working in linux system.
struts-exercise-taglib
servlets-examples
I get similar error
-Original Message-
From: Raghu [mail
you can configure fileUpload Interceptor to allow these predefined types
http://cwiki.apache.org/WW/file-upload-interceptor.html
image/png,image/gif,image/jpeg
http://struts.apache.org/2.0.6/struts2-core/apidocs/org/apache/struts2/dispatcher/FilterDispatcher.html
If there is a reason
How would you use dojo to know what row was selected in a displaytag
collection? I have this working with javascript and Firefox, of course ie
does this differently. I would like to use dojo for cross browser
compatibility issues (among other things). I did not see this functionality
demonstrated
Am Freitag, 17. Oktober 2008 15:22:43 schrieb Adam Lister:
> Am I missing something?
Write your own one which does that and add it to your stack.
--
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html
Really, I'm not out to d
Am Freitag, 17. Oktober 2008 15:53:03 schrieb Pierre Thibaudeau:
> Suggestions?
Yes but more to your question.
Instead of the uri, the action name, method and namespace called would be
better.
In this way the same can be applied to portlets too. So i would like to
enhance your original thread q
Is it possible, inside an interceptor, to "grab" the URL of the current
request?
The typical scenario for why I would like to be able to do that:
1) A user is about to perform MyRestrictedAction, but (say) the user lacks
authentication for that particular action.
2) CheckUserAuthenticatedIntercep
Am Freitag, 17. Oktober 2008 15:33:24 schrieb Dave Newton:
> AFAIK it is; I've never had to set the content type.
I am running my struts2 war in Pluto 1.1.6 (Tomcat 5.5.x) and Liferay 5.1.x
(JBoss 4).
Portlet Actions are working fine (because the container sets the stuff).
But running Actions thr
--- On Fri, 10/17/08, Torsten Krah wrote:
> Answering to myself - although i am confused that this is
> not the default when delivering jsps:
AFAIK it is; I've never had to set the content type.
Dave
-
To unsubscribe, e-mail: [
Am Freitag, 17. Oktober 2008 14:57:23 schrieb Torsten Krah:
> How to tell the action, its content type is text/html?
Answering to myself - although i am confused that this is not the default when
delivering jsps:
... extends ActionSupport implements ServletResponseAware ...
...
response.setConte
I forgot, my corp pays for me.
Sorry about that.
Here are some suggestions from that page:
- while loading file, create one hidden input type[field] and assign
dropdown selected value to this hidden input type. When you will
submit the page, extract value from this hidden filed
- resto
Hi,
I would like to set up struts 2 so that all request parameters are
trimmed (leading and trailing whitespace removed) when the parameters
are bound to the action. I sort of expected this to be the default
behavior, but I'm finding it is not (struts 2.0.11). I looked around
to see if may
Hello,
I have an application with 2 buttons. Each button hides/shows a div. In
each div I want to use the same ActionForm, but different Actions. Maybe
this can't be done, but I also have problems using a different ActionForm
for each div.
A short overview:
- my initial jsp looks like this:
Hi.
You can configure the action to set the result type to e.g. plain text (
http://struts.apache.org/2.x/docs/result-types.html).
How to tell the action, its content type is text/html?
I am calling my action
/WEB-INF/view/consumer/register.jsp
/WEB-INF/view/consumer/register.j
hI,
in your *.struts.xml file ( a subcontext struts configuration file)
Define a global mapping to jsp like
../Error.jsp
map the exception to the global mapping defined above
Note : I have kept this is in one of the sub context struts configuration
file which gets included in the str
--- On Fri, 10/17/08, doahh wrote:
> How can I get access to the Request object inside of my
> Freemarker template when I am using Struts 2?
http://struts.apache.org/2.x/docs/freemarker-support.html
Towards the top, under the "Objects in the Context" is.
Dave
--
I expect this is probably very easy but I have not seen and description
anywhere of how to do it. I currently have this in a Struts2 enabled jsp
page:
<%request.getContextPath()%>
and need to convert it to freemarker. I have tried the obvious:
${request.contextPath}
${request.getContextPath}
a
Hi,all
before I use codebehind and rest plugin in struts2.1.2Beta, I can solve
exceptions as the follow code:
SQLExceptionAction
/DataAccess.jsp
But,Now I use rest plugin and codebehind, no xml configuration. I know I can
setup globle exception
in my xml, but how to implement the same functi
Struts 2.0.11.2 has a known issue for running on websphere. Downgrade to struts
2.0.11.1 [That is the one I am currently using with RAD 7.5 and Websphere
6.1.0.19 and it works perfect] or upgrade to build 2.0.12 which is supposed to
have fixed the issue [I have not tried it yet]
- Origina
Hi,all
Thanks. I get it. I change my code as follow:
<#if (actionMessages?size>0)>
<@s.actionmessage />
Everything works well. I use freemarker syntax.
---
Thanks!
Mobile: +086-15864011231
Website:http://www.openmotel.cn
http://www.vvthumb
ok, it works well, but I use the rest plugin, when I want to use delete form, I
tried to add an but it does not work.
I always have to use http://www.openmotel.cn
http://www.vvthumb.com
GTalk:[EMAIL PROTECTED]
Skype:saharabear
Haulyn Runner Jason
- Original Message
From: Mead Lai <[
Hi all,
How do I find out the name of the DEFAULT SAX parser implementation class
used by Struts2? Struts2 picks up the Oracle xml parser from web-inf/lib
whenever I place the Oracle's XMLParserv2.jar there, and it fails while
parsing. From Tomcat's mailing list I found out that the SAXParserFacto
hi
i have change this property to false
and copy static folder in /struts/
but it doesnt work ,i dont know why
any body gives me idea?
trying to use performance tuning concept in struts docs
help me
--
View this message in context:
http://www.nabble.com/how-to-use-struts.serve.static-tp200
the param like %{id}
you shall use tag
On Thu, Oct 16, 2008 at 5:00 PM, Haulyn Jason <[EMAIL PROTECTED]> wrote:
> Hi, all
> When I use , everything
> works well, struts2 generate the html as below:
>
> But when I want to add some parameters, and change the code as: namespace="website" action="e
May, write yourself define struts2-Tag is good solution.
On Fri, Oct 17, 2008 at 1:18 PM, arunabh <[EMAIL PROTECTED]>wrote:
>
> Hi ,
>
> Thank you for the reply . But the side you reffered me to , they charge
> money for signing up . And without signing up i can't see the solutions .
> So
> could
Hi,all
I want to write a custom tag to display and
in different style, so I write some freemarker page like this:
<@s.if test="%{actionMessages}">
<@s.actionmessage />
<@s.if test="%{actionErrors}">
<@s.actionerror />
without the if logic, error messages ca
66 matches
Mail list logo