Re: [S2] Iterate through two lists

2008-08-23 Thread Milan Milanovic

O.K. I'll try to find it. But I just think that this synax is no good:

s:param value=someObject.fruits2[#rowstatus.index].name/ 

--
Milan


newton.dave wrote:
 
 --- On Fri, 8/22/08, Milan Milanovic wrote:
 Where can I set levels DEBUG for S2, XWork and OGNL ?
 
 Search the fine web for Java logging, possibly after checking what S2 has
 for logging-oriented dependencies.
 
 Dave
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19120556.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] Double conversion issue

2008-08-23 Thread Milan Milanovic

Uf, bug again :-(((.

Is there any custom type-converter for Double-s that doesn't have this error
?

--
Milan




Jeromy Evans - Blue Sky Minds wrote:
 
 I've seen this reported previous as a bug in S2/Xwork (appending an 
 extra 0 character).  I can't recall where I saw that.
 
 Write a custom type-converter for that field to work-around it.
 
 Milan Milanovic wrote:
 This is some wierd Struts behaviour for Double conversion, e.g., if my
 prop
 attribute in JSP was 2232.435, when user click on this Delete link, in
 my
 action class for prop attribute I get: 2232435.0 ?!

 --
 Milan



 Milan Milanovic wrote:
   
 Hi,

 I have this code in my jsp:

 s:iterator value=someObject status=rowstatus
 ...
 s:url id=removeUrl action=remove
 s:param name=prop value=prop /
 /s:url
 s:a id=a_%{prop} href=%{removeUrl} theme=ajax
 notifyTopics=/delete targets=fruitsDelete/s:a
 ...
 /s:iterator

 This remove.action is mapped into remove() method in my action class,
 and prop is a double property with get/set methods in my action class.

 What happens now, when user enter, e.g. 1234.0 for prop, it is well
 represented here, e.g. prop value is 1234.0 in jsp and my list in
 action
 class, but when user click on the link above to delete it, in my action
 class remove() method for prop I get: 12340.0 ! Zero is always added
 at
 end of the number, does anyone know why this could happen ?

 --
 Regards, Milan

 

   
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Double-conversion-issue-tp19092842p19120558.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] Double conversion issue

2008-08-23 Thread Jeromy Evans

Milan Milanovic wrote:

Uf, bug again :-(((.

Is there any custom type-converter for Double-s that doesn't have this error
?

--
Milan
  


A custom type-converter means you can write one yourself for that 
specific property.  It's very simple:


http://struts.apache.org/2.0.11.2/docs/type-conversion.html

Personally I never use Double in an action and instead opt for 
BigDecimal to maintain precision correctly.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] S2 Stream Result, downloading large file, advice needed

2008-08-23 Thread Stephan Schröder
 I'm still interested in hear any suggestions. I know that this is not
 strictly an S2 issue but it is related to using a Stream result type.  If
 I was writing a servlet I would just get the OutputStream and write directly
 to it, putting the burden of buffering etc. onto the container.

If you want to write directly on the OutputStream you can implement your own 
ResultType:

public class ByteContentResult implements Result,StrutsStatics
{
  public void execute( ActionInvocation invocation )
  throws Exception
  {
ByteContentProvider bytesProvider = (ByteContentProvider) 
invocation.getAction();
//HttpServletResponse response = 
org.apache.struts2.ServletActionContext.getResponse();
HttpServletResponse response = 
(HttpServletResponse)invocation.getInvocationContext().get( HTTP_RESPONSE );

response.setContentType(bytesProvider.getContentType());
byte[] content = bytesProvider.getBytes();
response.setContentLength( content.length );
ServletOutputStream outstream = response.getOutputStream();
outstream.write( content );
outstream.flush();
  }
}

The action class has only to implement this interface:
public interface ByteContentProvider
{
  public String getContentType();
  public byte[] getBytes();
}

Then make your result known in your my-struts-default.xml:
result-types
  result-type name=bytes class=result.ByteContentResult/
/result-types

/Stephan
-- 
GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



help required in using S:set

2008-08-23 Thread ravi_eze

hi,

The below i need the getSubCategories(xxx) method of action class to be
called. ANy idea where i am doing wrong below here. The method is not
getting called here. 

(2) i nee the inner loop also to get executed. Any ideas how this can
happen.

(1) s:iterator  status=catStat id=catId value=categoriesList 
s:set name=subCatList scope=page 
value=getSubCategories(#catId)
/s:set
abc abc abc
s:property value=subCatList.size() /

(2) s:iterator status=subCat value=#subCatList 
subMap.put(s:property 
value=#subCat.getId()/,s:property
value=#subCat.getUrl()/,s:property value=#subCat.getName() /);
/s:iterator

/s:iterator


Ravi
-- 
View this message in context: 
http://www.nabble.com/help-required-in-using-%3C-S%3Aset-tp19121396p19121396.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] Iterate through two lists

2008-08-23 Thread Dave Newton
--- On Sat, 8/23/08, Milan Milanovic wrote:
 O.K. I'll try to find it. But I just think that this synax is no good:
 
 s:param value=someObject.fruits2[#rowstatus.index].name/

You may *think* that, but the syntax is fine, and I have working code that uses 
it, written while working on your problem.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] S2 Stream Result, downloading large file, advice needed

2008-08-23 Thread Gabriel Belingueres
IMO the best solution is the one that download the files faster. The
faster the files download, the quicker the response will finish and
another user can download a file.

Whether you store all the file in memory or in a temp file could be
irrelevant if the server have a low bandwidth network connection.

The bottom line is: you should stress test your app to know what will
happen to the server on high load.

2008/8/22 Brendan Billingsley [EMAIL PROTECTED]:
 I have a somewhat similar situation in an application I am creating where I
 needed to provide a .tar.gz file that I create for the user. I want that
 file to hang around for some configurable amount of time in case the user
 re-requests that file and then I wanted to remove it.

 I used quartz to periodically run a cleanup method to remove old files.
 Right now it is running once a day to delete any file older then 72 hours
 but that can all be changed in my spring configuration later on if we have
 too many files sticking around.

 I am extending the StreamResult class to return my tar file for downloaded.

 Hope this helps. I can provide more detail into some or all of the above if
 you want. I don't really think that the details of quartz and/or spring
 belong on this list so if you want information about that feel free to
 contact me off list.

 -Brendan

 Greg Lindholm wrote:

 I'm still interested in hear any suggestions. I know that this is not
 strictly an S2 issue but it is related to using a Stream result type.  If
 I
 was writing a servlet I would just get the OutputStream and write directly
 to it, putting the burden of buffering etc. onto the container.

 What I decided to do (until I hear a better suggestion) is to write to a
 temporary file (File.createTempFile()) then for the InputStream I created
 a
 wrapper around FileInputStream which will delete the file when close() is
 called.  This seems to work fine in the conditions I can test, not sure if
 close() will be called if the user hits Cancel in the middle of a very
 large
 download.




 Greg Lindholm wrote:


 Hi Folks,
 I'm using S2 Stream result type to allow users to download a CSV file
 that I dynamically write from records selected from a database.

 First pass on this I'm using a StringWriter to write out the CSV data
 (using SuperCSV) that using the string to build a ByteArrayInputStream
 for
 the InputStream result.

 My concern is that the results could get very large based on the the
 selection criteria the user supplies. So trying to do this all in-memory
 with a StringWriter-String-Byte[] is likely a bad idea.

 I'm looking for advice on a better way of doing this?  I thought I could
 write to a temp file, but how do I ensure the file is
 deleted when the download completes?
 I also thought about using a PipedInputStream and hooking to a
 PipedOutputStream which I write to in another thread, but this seems like
 it could become overly complicated having to deal with the threads and
 database sessions and error conditions etc.

 Do you know a better way?

 Any advice or suggestions would be appreciated.
  Thanks
 Greg





 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]







 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



using maven to setup a project

2008-08-23 Thread Ian P. Christian
I am attempting to setup a struts 2 project as described here:
  - http://struts.apache.org/2.x/docs/ready-set-go.html
  - http://struts.apache.org/2.x/docs/struts-maven-archetypes.html

However, neither of these work.  Maven attempts to download a file such as this:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/struts/struts2-archetype-starter/2.0.5-SNAPSHOT/struts2-archetype-starter-2.0.5-SNAPSHOT.jar

which 404's.

Firstly, I'm not sure how to progress here getting this working - I
guess for the time being I'll have to avoid using maven.

Secondly, what is the correct procedure for reporting this issue such
that either the docs can be changed, or the underlying issue fixed?

Thanks,

Ian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: using maven to setup a project

2008-08-23 Thread Dave Newton
--- On Sat, 8/23/08, Ian P. Christian wrote:
 However, neither of these work.

I think somebody is working on the archetypes at the moment.

 Firstly, I'm not sure how to progress here getting this
 working - I guess for the time being I'll have to avoid 
 using maven.

For the archetype, probably, but that doesn't mean you can't use Maven. It can 
be a hassle if you're not familiar with Maven, though.

 Secondly, what is the correct procedure for reporting this
 issue such that either the docs can be changed, or the 
 underlying issue fixed?

The S2 wiki home page [1] includes a link to the JIRA issue tracking tool [2].

Dave

[1] http://struts.apache.org/2.x/docs/home.html
[2] https://issues.apache.org/struts/secure/Dashboard.jspa


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: using maven to setup a project

2008-08-23 Thread Wendy Smoak
On Sat, Aug 23, 2008 at 8:55 AM, Ian P. Christian [EMAIL PROTECTED] wrote:
 I am attempting to setup a struts 2 project as described here:
  - http://struts.apache.org/2.x/docs/ready-set-go.html
  - http://struts.apache.org/2.x/docs/struts-maven-archetypes.html

 However, neither of these work.  Maven attempts to download a file such as 
 this:
 http://people.apache.org/repo/m2-snapshot-repository/org/apache/struts/struts2-archetype-starter/2.0.5-SNAPSHOT/struts2-archetype-starter-2.0.5-SNAPSHOT.jar

Sorry about that.  We really shouldn't be pointing users at unreleased
snapshots.

 Firstly, I'm not sure how to progress here getting this working - I
 guess for the time being I'll have to avoid using maven.

Unless you want to build the archetypes yourself locally, you'll need
to wait for a release.

 Secondly, what is the correct procedure for reporting this issue such
 that either the docs can be changed, or the underlying issue fixed?

You did the right thing-- ask here, then once you're sure it's a bug
you can report it in JIRA.  In this case there's already an issue
open.  https://issues.apache.org/struts/browse/WW-1726

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] Double conversion issue

2008-08-23 Thread Milan Milanovic

Hi Jeromy,

well, if someone have this converter, please give it here.

I use BigDecimals for currency, this double is just for representing some
real values.

--
Milan


Jeromy Evans - Blue Sky Minds wrote:
 
 Milan Milanovic wrote:
 Uf, bug again :-(((.

 Is there any custom type-converter for Double-s that doesn't have this
 error
 ?

 --
 Milan
   
 
 A custom type-converter means you can write one yourself for that 
 specific property.  It's very simple:
 
 http://struts.apache.org/2.0.11.2/docs/type-conversion.html
 
 Personally I never use Double in an action and instead opt for 
 BigDecimal to maintain precision correctly.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Double-conversion-issue-tp19092842p19122944.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts loses action configuration

2008-08-23 Thread tjstavenger

The application doesn't appear to be reloaded.

The java.net.SocketException: Broken pipe exception appears just before
the Struts action configuration is lost.

I've also seen java.lang.IllegalStateException: Cannot forward a response
that is already committed just before the Struts configuration is lost.

I've tried setting struts.configuration.xml.reload=true in my struts.xml,
but we've encountered the problem again even with this property set, so I
don't think that helped out.

Everything works fine with the app for a time (no particular time, this the
time before last it happened the app was running fine for 3 days. The last
time it wasn't running for more than a couple of hours.

Thanks again.

dusty wrote:
 
 Are you seeing any thing in the log that would suggest that the app was
 reloaded? Are there any exceptions before the missing configuration?
 
 When you first start it up you can address this action fine?  What does
 the action do/use?  How long before the action starts thowing the error?
 
 Sent from my iPhone
 
 On Aug 18, 2008, at 5:15 AM, tjstavenger [EMAIL PROTECTED] wrote:
 
 
 My application makes connections to our database through data sources
 configured in WebLogic, and I'm not seeing any logs from WebLogic saying
 that it has lost the connection... But I'll certainly keep an eye out for
 it.
 
 As for #1, which connection are you referring to. The database or
 something
 else?
 
 Thanks for the help,
 Tim
 -- 
 View this message in context:
 http://www.nabble.com/Struts-loses-action-configuration-tp19016796p19030395.html
 Sent from the Struts - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Struts-loses-action-configuration-tp19016796p19125403.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [struts2] url tag not evaluating OGNL in anchor attribute

2008-08-23 Thread Daniel Ruan
I found the same behavior with 2.1.2 Beta, although the bug WW-2015 claims
it is fixed in 2.0.10.

Thanks,

Daniel

On Tue, Jun 24, 2008 at 4:34 AM, Volker Krebs [EMAIL PROTECTED] wrote:

 Hello,

 I have the following in my JSP Page:
 a href='s:url action=myAction anchor=%{name} /'

 It seems that the anchor attribute is not evaluating the OGNL.
 I guess it's the same problem like this one:
 https://issues.apache.org/struts/browse/WW-2015

 or is there any reason for not evaluating OGNL ?

 Thanks,
 Volker

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




RE: Struts 2 onchange event to get values from databases

2008-08-23 Thread Priyanka.dandekar



Johnson nickel wrote:
 
 Thanks for your quick response.
 I have created Jsp and action and struts.xml. you are mistaken
 me(imlazy), i'm not
 asking  the code for my requirement.
 
  I want to display the userdetails, at the time of  Onchange
 event. I don't want 
 to use javascript. My details are getting from db. If you provide some
 examples in AJAX 
 than it will be helpful.
 
 Johan Snyman wrote:
 
 Dude,
 
 Here is an example which shows how you can populate a drop down using
 AJAX
 
 http://struts-2-developers.blogspot.com/2008/07/struts-2-ajax-drop-down-example.html
 
 Hope this helps
 
 Regards,
 Priya
 
 
 Me thinks you're lazy for not going through the tutorials supplied on the
 documentation site: http://struts.apache.org/2.x/docs/home.html
 
 You'll have to set up 'n struts.xml file (saved in WEB-INF/classes
 folder)
 that looks something like this:
 
 !DOCTYPE struts PUBLIC
 -//Apache Software Foundation//DTD Struts Configuration 2.0//EN
 http://struts.apache.org/dtds/struts-2.0.dtd;
 struts
 !-- constant name=struts.devMode value=false / --
 constant name=struts.enable.DynamicMethodInvocation value=false
 /
 
 package name=mypackage  extends=struts-default
 
 action name=display class=com.imlazy.DisplayUserDetails
   resultuserdetails,jsp/result
 /action
 /struts
 
 You'll have to implement the action class, which has the values you want
 to
 pass to your jsp declared with getters and setter for each of them
 (JavaBean
 style):
 
 package com.imlazy;
 
 import **;
 
 @SuppressWarnings(serial)
 public class DisplayUserDetails extends ActionSupport {
 
private String userName;
private String userAddress;
private ListString userNameList;
// etc
 
   @Override
   public String execute() throws Exception {
 // HERE YOU DO YOUR DB ACCESS AND WHATEVER TO POPULATE YOUR FIELDS
   }
 
   public String getUserName() {
 return userName;
   }
 
   public void setUsername(String userName) {
 this.userName = username;
   }
 
   // Other getters and setters
 }
 
 And finally your jsp that will be displaying the fields:
 
 %@ page contentType=text/html;charset=UTF-8 language=java %
 %@ taglib prefix=s uri=/struts-tags %
 
 html
   head
   titleUser Details/title
   /head
 
   body
 s:form
   s:combobox label=Users list=HERE YOU MUST DEFINE THE LIST
 headerKey=-1 /
   
  s:textfield key=userName
   !-- HERE FOLLOWS YOUR OTHER FIELD --
 /s:form
   /body
 /html
 
 
 
 This is just touching what you need to do and know. Most important is to
 understand. Go through the tutorial, know what you need to get an action
 to
 display what you want to display (choose one user and just display the
 values for that user). Only then start thinking about AJAX and how you
 should be changing what is displayed as the combobox is changed.
 
 
 
 Jo
 
 
 
 
 
 -Original Message-
 From: Johnson nickel [mailto:[EMAIL PROTECTED] 
 Sent: 31 January 2008 07:35 AM
 To: user@struts.apache.org
 Subject: RE: Struts 2 onchange event to get values from databases
 
 
 
  I am very new to Struts 2 and Ajax. If u have any samples please send
 it. 
 
 Johan Snyman wrote:
 
 Hi Johnson (and others),
 I'm not really as retarded as I sound in the previous mail, just
 distracted
 while I was composing the mail. Please contact me if you find it as
 difficult to follow as I did after reading the first reply...
 
 Jo
 
 
 
 
 -Original Message-
 From: Johan Snyman [mailto:[EMAIL PROTECTED] 
 Sent: 30 January 2008 03:43 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Struts 2 onchange event to get values from databases
 
 Hi Johnson,
 
 I'm no Struts expert but from my experience you have two ways of
 implementing what you want to achieve.
 
 1. You can populate your dropdown box and have the fields empty. On your
 element you can set the onchange to call a javascript function that
 calls
 the same action, but passing it the content of your combobox, to do your
 database lookup on the server side and then pass the info to your
 userdetails.jsp where you can set your fields.
 
 2. You can use AJAX to do the call asynchrononously, that is the value
 is
 passed to an action on the server and without the values passed back and
 filled into your fields. Nowadays you'll find plenty of tutorials and
 examples out there. Check out the following:
 
 http://struts.apache.org/2.x/docs/ajax.html
 (the official Struts AJAX guide)
 
 http://www.roseindia.net/struts/struts2/struts2ajax/index.shtml
 (easy login example)
 

 http://www.javaworld.com/javaworld/jw-08-2007/jw-08-ajaxtables.html?fsrc=rss
 -index
 (although is a rather tough example to follow if you're new to AJAX)
 
 http://www.planetstruts.org/struts2-showcase/showcase.action
 (showcase examples)
 
 Hope this helps
 
 Jo
 
 
 
 -Original Message-
 From: Johnson nickel [mailto:[EMAIL PROTECTED] 
 Sent: 30 January 2008 03:26 PM
 To: user@struts.apache.org
 

Re: [S2] problem still with actionRedirect and redirect results (Struts2.1.2)

2008-08-23 Thread Andreas Mähler

Hello Daniel,

in Struts 2.1.2, you can add an empty string to the comma sperated list 
that goes to the struts.action.extension parameter (e.g. action,, 
allows you to use the normal .action extension and the empty one) . If 
you would like to switch off the extension entirely (like I do), you 
need to set it to ,, because  doesn't work.
I'm using the struts.xml: constant name=struts.action.extension 
value=,,/


Discussion about the topic on struts-dev: 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg29348.html
Feature in the Apache tracker: 
https://issues.apache.org/struts/browse/WW-2163


HTH.

Auf Wiedersehen!
~Andreas

P.S: CC to struts-user; just in case other ppl are interested as well.



Daniel Ruan schrieb:
 Hello Andreas,

 I was searching the Struts2 mailing list and came across this post 
from you.  I was intrigued by what you said about using the no .action 
extension feature of 2.1.x.   I have been trying to find a way to avoid 
the action extension, but I cannot find any reference online about what 
you alluded to.  Could you please shed more light?  I just upgraded to 
2.1.2.


 Thanks a lot.

 Daniel



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [struts2] url tag not evaluating OGNL in anchor attribute

2008-08-23 Thread Martin Gainty

check your el-ignored parameter in web.xml
does it look like
jsp-config
jsp-property-group
  url-pattern*.jsp/url-pattern
  el-ignoredtrue/el-ignored
/jsp-property-group
  /jsp-config?
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 Date: Sat, 23 Aug 2008 18:08:23 -0400
 From: [EMAIL PROTECTED]
 To: user@struts.apache.org
 Subject: Re: [struts2] url tag not evaluating OGNL in anchor attribute
 
 I found the same behavior with 2.1.2 Beta, although the bug WW-2015 claims
 it is fixed in 2.0.10.
 
 Thanks,
 
 Daniel
 
 On Tue, Jun 24, 2008 at 4:34 AM, Volker Krebs [EMAIL PROTECTED] wrote:
 
  Hello,
 
  I have the following in my JSP Page:
  a href='s:url action=myAction anchor=%{name} /'
 
  It seems that the anchor attribute is not evaluating the OGNL.
  I guess it's the same problem like this one:
  https://issues.apache.org/struts/browse/WW-2015
 
  or is there any reason for not evaluating OGNL ?
 
  Thanks,
  Volker
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

_
Get ideas on sharing photos from people like you.  Find new ways to share.
http://www.windowslive.com/explore/photogallery/posts?ocid=TXT_TAGLM_WL_Photo_Gallery_082008

RE: [struts2] url tag not evaluating OGNL in anchor attribute

2008-08-23 Thread Dave Newton
--- On Sat, 8/23/08, Martin Gainty [EMAIL PROTECTED] wrote:
 check your el-ignored parameter in web.xml
 does it look like
 jsp-config
 jsp-property-group
   url-pattern*.jsp/url-pattern
   el-ignoredtrue/el-ignored
 /jsp-property-group
   /jsp-config?

That won't affect S2's evaluating OGNL in a tag attribute, AFAIK.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [struts2] url tag not evaluating OGNL in anchor attribute

2008-08-23 Thread Daniel Ruan
Nah, the web.xml has no jsp-config at all.

Daniel

On Sat, Aug 23, 2008 at 8:28 PM, Martin Gainty [EMAIL PROTECTED] wrote:


 check your el-ignored parameter in web.xml
 does it look like
 jsp-config
jsp-property-group
  url-pattern*.jsp/url-pattern
  el-ignoredtrue/el-ignored
/jsp-property-group
  /jsp-config?
 Martin
 __
 Disclaimer and confidentiality note
 Everything in this e-mail and any attachments relates to the official
 business of Sender. This transmission is of a confidential nature and Sender
 does not endorse distribution to any party other than intended recipient.
 Sender does not necessarily endorse content contained within this
 transmission.


  Date: Sat, 23 Aug 2008 18:08:23 -0400
  From: [EMAIL PROTECTED]
  To: user@struts.apache.org
  Subject: Re: [struts2] url tag not evaluating OGNL in anchor attribute
 
  I found the same behavior with 2.1.2 Beta, although the bug WW-2015
 claims
  it is fixed in 2.0.10.
 
  Thanks,
 
  Daniel
 
 



RE: Struts loses action configuration

2008-08-23 Thread Martin Gainty

could you display struts.configuration.xml.reload parameter from 
struts-default.properties
is there anything else that may be interfering with your servlet container 
connection (usually 8080)
confirm with netstat -a and make sure that port is not already occupied

Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 Date: Sat, 23 Aug 2008 14:15:45 -0700
 From: [EMAIL PROTECTED]
 To: user@struts.apache.org
 Subject: Re: Struts loses action configuration
 
 
 The application doesn't appear to be reloaded.
 
 The java.net.SocketException: Broken pipe exception appears just before
 the Struts action configuration is lost.
 
 I've also seen java.lang.IllegalStateException: Cannot forward a response
 that is already committed just before the Struts configuration is lost.
 
 I've tried setting struts.configuration.xml.reload=true in my struts.xml,
 but we've encountered the problem again even with this property set, so I
 don't think that helped out.
 
 Everything works fine with the app for a time (no particular time, this the
 time before last it happened the app was running fine for 3 days. The last
 time it wasn't running for more than a couple of hours.
 
 Thanks again.
 
 dusty wrote:
  
  Are you seeing any thing in the log that would suggest that the app was
  reloaded? Are there any exceptions before the missing configuration?
  
  When you first start it up you can address this action fine?  What does
  the action do/use?  How long before the action starts thowing the error?
  
  Sent from my iPhone
  
  On Aug 18, 2008, at 5:15 AM, tjstavenger [EMAIL PROTECTED] wrote:
  
  
  My application makes connections to our database through data sources
  configured in WebLogic, and I'm not seeing any logs from WebLogic saying
  that it has lost the connection... But I'll certainly keep an eye out for
  it.
  
  As for #1, which connection are you referring to. The database or
  something
  else?
  
  Thanks for the help,
  Tim
  -- 
  View this message in context:
  http://www.nabble.com/Struts-loses-action-configuration-tp19016796p19030395.html
  Sent from the Struts - User mailing list archive at Nabble.com.
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
 -- 
 View this message in context: 
 http://www.nabble.com/Struts-loses-action-configuration-tp19016796p19125403.html
 Sent from the Struts - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
See what people are saying about Windows Live.  Check out featured posts.
http://www.windowslive.com/connect?ocid=TXT_TAGLM_WL_connect2_082008

MySQL Monitoring

2008-08-23 Thread Frans Thamura
hi all

anyone has try MySQL Enterprise monitoring

is it use Struts2?


any product that cool use S2 like MySQL monitoring?

-- 
-- 
Frans Thamura
Meruvian Foundation

Mobile: +62 855 7888 699
Linkedin: http://www.linkedin.com/in/fthamura

Training JENI, Medallion (Alfresco, Liferay dan Compiere).. buruan...
URL: 
http://nagasakti.mervpolis.com/roller/mervnews/entry/jeni_training_compiere_dan_alfresco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]