Re: Regarding locale in struts

2009-04-16 Thread Lukasz Lenart
2009/4/17 abhishek reddy : > thanks for the replyiam using struts 1.2.9, how to use the interceptor? Not possible ;-) And I have no idea how it (Locale) should be implemented in Struts 1.2. Regards -- Lukasz http://www.lenart.org.pl/

Re: Regarding locale in struts

2009-04-16 Thread abhishek reddy
thanks for the replyiam using struts 1.2.9, how to use the interceptor? On Thu, Apr 16, 2009 at 3:54 PM, Lukasz Lenart wrote: > 2009/4/16 abhishek reddy : > > how do i manually set the locale in struts application? > > You have to have I18N interceptor in your stack and setup > request_local

Re: Struts 1.2.9 or Struts 2.0

2009-04-16 Thread abhishek reddy
For developing a project..i have already started developing the appln. using struts 1.2.9 shall i continue with it...or shall i go for struts 2.0 On Thu, Apr 16, 2009 at 9:33 PM, Dave Newton wrote: > abhishek reddy wrote: > >> Please let me know, whether i should go for Struts 1.2.9 or

Struts 2.0 autocompleter WW-2222 issue workaround

2009-04-16 Thread beren7
Hello. I'm facing the WW- issue in struts 2.0.14 . The problem is with autocompleter, The generated html is fine, but when I submit the form, the request parameter is setted to descName and not to id. Trying to switch listValue and listKey solve the problem, but the description is no mor

having the same form in many JSP pages

2009-04-16 Thread far4ever
hi, i need to have the same form in all my JSP pages (a search form). so in such situation can i use the same same bean and the Action class being used for all these JSP. if so how should i specify the 'input' for the 'action mapping' . or is there any other alternative way of doing it. can a

setting multiple values via struts2 select tag

2009-04-16 Thread Bhaarat Sharma
I have a struts 2 select tag like this: everything seems to work OK except that when i select values and click submit. they are not being updated and not showing on the page that comes after submit is clicked. name="fmrUsers.terminationReason" corresponds to the following method: public vo

Re: Struts 2 Portlet/Oracle Portal Problems

2009-04-16 Thread Nils-Helge Garli Hegvik
Thanks. If they say it's not an Oracle problem, it would be great if you created a JIRA issue and attached a small example to reproduce the problem. Nils-H On Thu, Apr 16, 2009 at 9:17 PM, Stephen Turner wrote: > > On Thu, 16 Apr 2009 15:14:31 -0400, Nils-Helge Garli Hegvik > wrote: > >> No, I

Re: Struts2 WebApp Portlet Bridge

2009-04-16 Thread Nils-Helge Garli Hegvik
Struts 2 portlet support is provided through the portlet-plugin: http://struts.apache.org/2.1.6/docs/portlet-plugin.html There's a tutorial here: http://struts.apache.org/2.1.6/docs/struts-2-portlet-tutorial.html Nils-H On Thu, Apr 16, 2009 at 10:48 PM, Rohit Srivastava wrote: > Have been tryin

Struts2 WebApp Portlet Bridge

2009-04-16 Thread Rohit Srivastava
Have been trying to figure out which web framework to be used, however, this is not going to be one of the "what's the best framework" type of questions. Is there is a generic portlet bridge which can enable struts2 web applications deployment as a standard compliant portlet ? The application ar

Re: interceptor for dollar amount

2009-04-16 Thread Chris Pratt
That's really not a job for an Interceptor. But the tag might do what you want. Set up a property in your application properties something like: currency.format={0,number,currency} Then in your page you can use: Works for dates or building up text containing replacement parameters as well.

interceptor for dollar amount

2009-04-16 Thread Bhaarat Sharma
Does struts2 have any interceptor that would automatically convert an integer to a String and show it as a dollar amount. so 7 would be $7.00 5.56 would be $5.56

Re: Struts 2 Portlet/Oracle Portal Problems

2009-04-16 Thread Stephen Turner
On Thu, 16 Apr 2009 15:48:49 -0400, Martin Gainty wrote: you dont have a PortletSession? Implementing SessionAware just gives me a java.util.Map object called session, not a PortletSession object. I can get to the PortletSession through PortletActionContext: PortletActionContext.getR

RE: Struts 2 Portlet/Oracle Portal Problems

2009-04-16 Thread Martin Gainty
you dont have a PortletSession? are you implementing the org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher dispatcher identified as portlet-class thru portlet.xml? portlet.xml contents: http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"; xmlns:xsi="http://www.w3.org/2001/XMLSchem

Re: Struts 2 Portlet/Oracle Portal Problems

2009-04-16 Thread Nils-Helge Garli Hegvik
Not sure why this should have anything to do with the problem, but anyway, calling clear() on the map would invalidate the session. Nils-H On Thu, Apr 16, 2009 at 9:15 PM, Stephen Turner wrote: > On Thu, 16 Apr 2009 12:24:13 -0400, Martin Gainty > wrote: > >> >> 30 second solution seems to indi

Re: Storing interface instance in a user's session

2009-04-16 Thread Lukasz Lenart
2009/4/16 Security Management : > I think I just was being dumb and did not make the IUser serializable, which > should be all I need to do, yes? Yes, you should get exception when session will be saved to disk. Regards -- Lukasz http://www.lenart.org.pl/ --

Re: Struts 2 Portlet/Oracle Portal Problems

2009-04-16 Thread Stephen Turner
On Thu, 16 Apr 2009 15:14:31 -0400, Nils-Helge Garli Hegvik wrote: No, I didn't expect it to hel... But there was a bug with URLs and the includeParams attribute, although I don't think this is the same issue. Do you know if there's an official bug report for the render parameter behaviour?

Re: Struts 2 Portlet/Oracle Portal Problems

2009-04-16 Thread Stephen Turner
On Thu, 16 Apr 2009 12:24:13 -0400, Martin Gainty wrote: 30 second solution seems to indicate session variables are auto-populating url so last statement(s) in doView method should invalidate your PortletSession // Code fragment from class implementing SessionAware containing the // se

Re: Struts 2 Portlet/Oracle Portal Problems

2009-04-16 Thread Nils-Helge Garli Hegvik
No, I didn't expect it to hel... But there was a bug with URLs and the includeParams attribute, although I don't think this is the same issue. Do you know if there's an official bug report for the render parameter behaviour? Nils-H On Thu, Apr 16, 2009 at 8:58 PM, Stephen Turner wrote: > On Thu,

Re: Struts 2 Portlet/Oracle Portal Problems

2009-04-16 Thread Stephen Turner
On Thu, 16 Apr 2009 14:02:31 -0400, Nils-Helge Garli Hegvik wrote: That does indeed seem a little odd... The portlet framework expects these parameters, so I'm not sure there is a way around it. Did you try upgrading to 2.1.6? Nils-H I do suspect the Oracle portal is at fault - as I menti

Re: EJB3 plugin struts2

2009-04-16 Thread Stefano Tranquillini
I solved it. the interceptor has to be putted inside struts.xml and default package. the others package that will be created has to extend default package (the package creted above, not strut-default). and when recall ejb put before the name of the ejb project (look inside jndi of jboss to look

Re: Struts 2 Portlet/Oracle Portal Problems

2009-04-16 Thread Nils-Helge Garli Hegvik
That does indeed seem a little odd... The portlet framework expects these parameters, so I'm not sure there is a way around it. Did you try upgrading to 2.1.6? Nils-H On Thu, Apr 16, 2009 at 4:26 PM, Stephen Turner wrote: > Hello all - > > We've had some trouble using Struts 2 portlets (2.0.14)

Re: Multiple Logic iterate tags and setting indexed properties

2009-04-16 Thread thanuja
Yes, It worked. Thank you so much Nikhil. Nikhil Walvekar wrote: > > Hi Thanuja, > > Can you please try using input tag (if its allowed)? > > * indexId="i"> > > > > value="true"> > > > > > > > * > I will suggest you first try it with fixed size list (both), so you can > initialize l

RE: When using jsp:include or s:include in a JSP page the next Struts 2 tags will throw java.lang.NullPointerException on WebLogic 10.3

2009-04-16 Thread Néstor Boscán
Here is the war file. You have to add the Struts 2 core libraries. Regards, Néstor Boscán -Mensaje original- De: Martin Gainty [mailto:mgai...@hotmail.com] Enviado el: Wednesday, April 15, 2009 8:30 PM Para: Struts Users Mailing List Asunto: RE: When using jsp:include or s:include in a

and parameters

2009-04-16 Thread Andy Sykes
Hi all, How can I use parameters passed in to a jsp file with in a Struts2 tag within that JSP? So for example, I want to include a big chunk of boilerplate HTML and pass in an image name, then use that passed-in name in an tag to reference it. Include: prettything.jpg The

Re: Struts 1.2.9 or Struts 2.0

2009-04-16 Thread Dave Newton
abhishek reddy wrote: Please let me know, whether i should go for Struts 1.2.9 or Struts 2.0..i do have some knowledge on struts 1.2.9 "Go for?" Like what? Learn? Implement a site in? Recommend to an employer? In what context? Dave --

Re: Minimum number of jar files for Spring DI

2009-04-16 Thread Dave Newton
Struts Two wrote: I was wondering if anybody has the list of minimum number of jar files required to use > only Spring DI [with AOP] in struts 2 as opposed to using spring.jar. Might be quicker to find out on a Spring list. I'd assume spring-core and spring-aop, not sure about spring-beans or

Re: Struts2 equivalent of

2009-04-16 Thread Dave Newton
Martin Gainty wrote: yes the Struts 1.x if tag has been deprecated you can check for specific attributes as wes suggested OR change your struts-spring autowire type to "constructor" in your interceptor stack e.g. \WEB-INF\src\java\struts.xml 2 and configure the sp

Re: Validation - Simple Theme

2009-04-16 Thread Dave Newton
André Diniz wrote: How to validate my forms using simple theme? I can't see the message errors - - - x - - - I'd like to create my text fields side-by-side using ajax or xhtml themes, how can I do that? I have to customize a theme to do that? Oh my! How come? Minus bonus points for Struts

[Struts Workflow] Values disppear on back button

2009-04-16 Thread Manisha pawar
Hello, I want to user struts workflow extension in my application. When I tried to access demo application on this site I found that I am not able to retain the value on back. For e.g. Step 1)On first page I entered 1 as my first operand Step 2)I said Next .I entered 2 on second screen. Ste

Re: Problem Struts with Apache and Tomcat integration

2009-04-16 Thread abed
Hi Dusty, Here is the the "httpd.conf": # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See URL:http://httpd.apache.org/docs-2.0

RE: Storing interface instance in a user's session

2009-04-16 Thread Security Management
Thanks, I am doing that. I think I just was being dumb and did not make the IUser serializable, which should be all I need to do, yes? -Original Message- From: Jim Kiley [mailto:jhki...@summa-tech.com] Sent: Thursday, April 16, 2009 10:21 AM To: Struts Users Mailing List Subject: Re: Sto

Struts 2 Portlet/Oracle Portal Problems

2009-04-16 Thread Stephen Turner
Hello all - We've had some trouble using Struts 2 portlets (2.0.14) with Oracle Portal, and I wondered if anyone else had used this combination successfully. The problems occur with portlets that have a form and submit buttons, and the issue seems to be that Struts uses render parameters

Re: Storing interface instance in a user's session

2009-04-16 Thread Jim Kiley
If you use SessionAware in your actions, you can receive a Map that represents the session. You could pass that Map into your user manager class, and do the storage that way. On Thu, Apr 16, 2009 at 10:18 AM, Security Management < list-subscripti...@secmgmt.com> wrote: > I want to store a list o

Storing interface instance in a user's session

2009-04-16 Thread Security Management
I want to store a list of interface instances (i.e. UserImpl which implements IUser), so I can have methods: public void setUser(List users) { This.getSession().put(SESSION_USER_LIST_KEY, users); } public List getUsers() { return (List) this.getSession().get(SESSION_USER_LIST_KEY)

Re: Struts2 select tag with multiple enabled

2009-04-16 Thread Felipe Lorenz
Im not sure. but i think you need to add the attribute "name". i.e.: On Thu, Apr 16, 2009 at 10:45 AM, Bhaarat Sharma wrote: > I am using a select tag like this > > value="%{fmrTenant.terminationReason}" required="true"/> > > list = "rejectionReasons" > > invokes the following method: > >p

Re: Struts2 select tag with multiple enabled

2009-04-16 Thread Terry Gardner
fmrTenant.getTerminationReason should return a String, not an array? On a different subject, consider using generics: public List getRejectionReasons() { return this.rejectionReasons; } private List rejectionReasons; On Apr 16, 2009, at 9:45 AM, Bhaarat Sharma wrote: I am using a select ta

Struts2 select tag with multiple enabled

2009-04-16 Thread Bhaarat Sharma
I am using a select tag like this list = "rejectionReasons" invokes the following method: public List getRejectionReasons() { return rejectionReasons; } I am using value="%{fmrTenant.terminationReason}" because I want to preselec some of the values returned. this invokes the f

Re: EJB3 plugin struts2

2009-04-16 Thread Stefano Tranquillini
Someone has a simply example to show? thanks On Wed, Apr 15, 2009 at 14:01, Stefano Tranquillini wrote: > If i put the configuration of the interceptor inside struts.xml i've > no error message, but when i recall the ejb.method() i've a > nullPointException > > java.lang.NullPointerException >  

2.1.6 ActionContext change?

2009-04-16 Thread stanlick
I just received notice that the ActionContext now throws NoSuchMethodError from this interceptor. I am advising to use HttpServletRequest request = ServletActionContext.getRequest (); however, I am surprised to learn about this break. private void dropCrumb(ActionInvocation invocation) {

Minimum number of jar files for Spring DI

2009-04-16 Thread Struts Two
Hello: I was wondering if anybody has the list of minimum number of jar files required to use only Spring DI [with AOP] in struts 2 as opposed to using spring.jar. __ Looking for the perfect gift? Give the gift of Flickr!

Re: Session Management

2009-04-16 Thread Baran
Hello Pawel, well the intercepter can get a message that suggest us to have a login before proceeding, I guess that can be done, I was trying this thing as I am a newbie in Struts and I was exploring the possibilities. Thats the best I can do :) Thanks for ur help and suggestions. Regards, Bara

Re: Session Management

2009-04-16 Thread Paweł Wielgus
Hi, yes it's the case, because if You are firing ajax request to server it doesn't really care if it's ajax or plain html request, so the responsibility to behave properly is on the page side. I don't know if your interceptor returning html code (page) is ok for You? Or maybe it should return somet

Re: Session Management

2009-04-16 Thread Baran
Hi, Okay, this is the response I get, I did used the same thing that you are suggesting, Can it be an issue that I am using AJAX, as the html code of the login page is coming as a response of the http request I am making, do I have to redirect it via my JSP page(using javascript)? As otherwise I

Re: Struts 1.2.9 or Struts 2.0

2009-04-16 Thread Norris Shelton
2.1.6 with struts2-convention-plugin Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Shelton Consulting, LLC ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton From: abhishek reddy To: Struts Users Mailing List Sent: Thursday, April 16, 2

Re: Session Management

2009-04-16 Thread Paweł Wielgus
Hi, look at line: return Action.LOGIN; this is the place where interceptor is returning simple string which represents forward, in my case i have "logon" defined in struts.xml like this: /WEB-INF/pages/logon.jsp Hope that helps, Paweł Wielgus. 2009/4/16 Baran :

Re: Struts 2 Portlet - Intermittent Session Problems

2009-04-16 Thread Nils-Helge Garli Hegvik
Great. Please post back with your findings. Nils-H On Thu, Apr 16, 2009 at 4:29 AM, Kofford, C Todd wrote: > Well, my log didn't seem to expose the problem when compared to a log from my > local machine where the problem did not show itself, because except for the > session = {} there was no d

Re: Session Management

2009-04-16 Thread Baran
Hi, I guess I am fine with the intercepter side, but the issue is I am not able to redirect it to a new page. The intercepter is working fine, but the respone is coming back to the same page and not to the login page. Any thing that I might be missing in the struts.xml or somewhere? coz intercep

Re: Regarding locale in struts

2009-04-16 Thread Lukasz Lenart
2009/4/16 abhishek reddy : > how do i manually set the locale in struts application? You have to have I18N interceptor in your stack and setup request_local param in url with given Locale code, see [1] for more details [1] http://struts.apache.org/2.1.6/docs/i18n-interceptor.html Regards -- Lu

Re: Session Management

2009-04-16 Thread Lukasz Lenart
package example3; import com.opensymphony.xwork2.Action; import com.opensymphony.xwork2.ActionInvocation; import com.opensymphony.xwork2.interceptor.Interceptor; /** * * @author Lukasz */ public class LoginInterceptor implements Interceptor { public void destroy() { } public void

Re: Session Management

2009-04-16 Thread Baran
Hello Paul, Thanks for the prompt response, I guess that is a right way to do, but plz suggest me how can i redirect my control to the login page. Can u plz get me the syntax, the interceptor thing is ready all i need to do is to redirect if session is not there... Thanks Baran Paweł Wielgus

Re: Session Management

2009-04-16 Thread Paweł Wielgus
Hi Baran, You can check for this in interceptor in struts2 or in mainservlet in struts1. Best greeitings, Paweł Wielgus. 2009/4/16 Baran : > > Hello All, > > I have this common scenario of handling sessions. The scenario is: > > 1. To check session on the jsp side when ever a page is loaded. This

Session Management

2009-04-16 Thread Baran
Hello All, I have this common scenario of handling sessions. The scenario is: 1. To check session on the jsp side when ever a page is loaded. This is fairly simple and can be done without much hassle. 2. Lets say the page is left unattended and the session expires but the user is still on that

Clear and Reset Functionality in struts

2009-04-16 Thread abhishek reddy
How to implement Clear and Reset Functionality in struts? Note: Iam using struts 1.2.9 -- Abhishek

how to highlight error field in struts html form?

2009-04-16 Thread abhishek reddy
hi, ***how to highlight error field in struts html form?* Note: Validations are performed on the server side (validate() method of respective form bean) Iam using struts 1.2.9 -- Abhishek

problem on the launch of the application

2009-04-16 Thread elyes sallem
Hello, i was launching tomcat and i got this error, any one has an idea about the cause? java.lang.NullPointerException org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:428) org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:311) org.apache.struts.

Struts 1.2.9 or Struts 2.0

2009-04-16 Thread abhishek reddy
hi every one, Please let me know, whether i should go for Struts 1.2.9 or Struts 2.0..i do have some knowledge on struts 1.2.9 -- Abhishek

Regarding locale in struts

2009-04-16 Thread abhishek reddy
hi every one, how do i manually set the locale in struts application? I have list of language options set in combo box...based on the language selection locale has to be set and it has to be replicated in the whole application. -- Abhishek