Re: Multiple Logic iterate tags and setting indexed properties

2009-04-15 Thread Nikhil Walvekar
Hi Thanuja, Can you please try using input tag (if its allowed)? * * I will suggest you first try it with fixed size list (both), so you can initialize list in form bean. Regards, Nikhil On Wed, Apr 15, 2009 at 5:07 AM, thanuja wrote: > > Hi Nikhil, > > Thanks for the suggestion. I

RE: Struts 2 Portlet - Intermittent Session Problems

2009-04-15 Thread Kofford, C Todd
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 difference. However, I did run across this uportal-specific bug when researching the problem more. http://www.ja-si

RE: Struts2 equivalent of

2009-04-15 Thread Martin Gainty
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 springframework ContextLo

Re: Validation - Simple Theme

2009-04-15 Thread Felipe Fraga
if fancy errors above each field is not needed, it can simply add the following to the JSP, and it will render the errors and messages. On Wed, Apr 15, 2009 at 10:31 PM, Jim Kiley wrote: > Customizing the textfield in the xhtml theme takes about seven minutes. >  

Re: Validation - Simple Theme

2009-04-15 Thread Jim Kiley
Customizing the textfield in the xhtml theme takes about seven minutes. Really. 2009/4/15 André Diniz > 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

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-15 Thread Martin Gainty
if you attach the war offline.. I'll test it here Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we

Validation - Simple Theme

2009-04-15 Thread André Diniz
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... André.

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-15 Thread Néstor Boscán
Source Code: MyAction.java: public class MyAction { private String message; public MyAction() { } public String execute () { message = "message"; return ("success"); } public void setMessage(String message) { this.message = messa

Re: Redirect After Post

2009-04-15 Thread Adam Hardy
I thought this pattern was called Post-Redirect-Get (PRG)? Strange that it's name has morphed into something else. You implement it using 'redirect' result types. Check them out in the struts user guide. Manoj Dhore on 15/04/09 15:42, wrote: Have a lot at this: http://cwiki.apache.org/WW/re

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-15 Thread mitch gorman
Néstor Boscán wrote: > I created a simple project with an Action and two JSP pages and the problem > reproduces. > it might be helpful if you posted your source. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.or

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-15 Thread Musachy Barroso
can you post your filter config? I cannot test on weblogic, but maybe someone else can. musachy 2009/4/15 Néstor Boscán : > Plain vanilla application. Just the Filter, an Action, two JSPs, and the > struts tags. > Regards, > > Néstor Boscán > > On Wed, Apr 15, 2009 at 4:46 PM, Musachy Barroso wr

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-15 Thread Néstor Boscán
Plain vanilla application. Just the Filter, an Action, two JSPs, and the struts tags. Regards, Néstor Boscán On Wed, Apr 15, 2009 at 4:46 PM, Musachy Barroso wrote: > is this a plain application or are you using Sitemesh or Tiles? > > musachy > > 2009/4/15 Néstor Boscán : > > When using jsp:inc

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-15 Thread Musachy Barroso
is this a plain application or are you using Sitemesh or Tiles? musachy 2009/4/15 Néstor Boscán : > When using jsp:include or s:include in a JSP page the next Struts 2 tags > will throw: > > > >  java.lang.NullPointerException > >      at > >  org.apache.struts2.views.jsp.ComponentTagSupport.doSt

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-15 Thread Néstor Boscán
When using jsp:include or s:include in a JSP page the next Struts 2 tags will throw: java.lang.NullPointerException at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentT agSupport.java:50) This happens with WebLogic 10.3 but doesn't happen in OC4J 10.1.3.4.

Re: Struts2 equivalent of

2009-04-15 Thread Russell Neufeld
You're right - the method may be a quicker change. I'll give that a shot. Thanks for the quick answer. Russ Wes Wannemacher wrote: On Wednesday 15 April 2009 16:00:34 Russell Neufeld wrote: Hi all, We're porting an app from Struts 1 to Struts 2, and I'm having trouble figuring o

RE: Struts 2 Portlet - Intermittent Session Problems

2009-04-15 Thread Kofford, C Todd
OK, I've now got a log with a sequence of events that causes the problem (see below). However, I'm still not sure that I can determine where the request(s) went wrong except for where session = {}. Any help would be appreciated. This one is driving me crazy. --Todd DEBUG [http-8090-Processor20

RE: Struts2 equivalent of

2009-04-15 Thread Security Management
I second the Spring Security stuff, it's great. -Original Message- From: Wes Wannemacher [mailto:w...@wantii.com] Sent: Wednesday, April 15, 2009 4:09 PM To: Struts Users Mailing List Subject: Re: Struts2 equivalent of On Wednesday 15 April 2009 16:00:34 Russell Neufeld wrote: > Hi al

Re: Struts2 equivalent of

2009-04-15 Thread Wes Wannemacher
On Wednesday 15 April 2009 16:00:34 Russell Neufeld wrote: > Hi all, > > We're porting an app from Struts 1 to Struts 2, and I'm having > trouble figuring out how to conditionally include a portion of a JSP > depending on the role of the user principal. In Struts 1 we did this: > > > ...

Struts2 equivalent of

2009-04-15 Thread Russell Neufeld
Hi all, We're porting an app from Struts 1 to Struts 2, and I'm having trouble figuring out how to conditionally include a portion of a JSP depending on the role of the user principal. In Struts 1 we did this: ... some html ... What's the preferred way of doing this in Struts2?

Re: localized tiles in Struts2

2009-04-15 Thread Antonio Petrelli
ult localization is > used. > Is there any my mistake or is there any other way I have to use? > > Thank you, > Jiri > > > __ Informace od ESET Smart Security, verze databaze 4010 (20090415

localized tiles in Struts2

2009-04-15 Thread Jiří Chaloupka
loaded / is not used and only default localization is used. Is there any my mistake or is there any other way I have to use? Thank you, Jiri __ Informace od ESET Smart Security, verze databaze 4010 (20090415) __ Tuto zpravu proveril ESET Smart Security.

Re: Struts 2 Sample application look for index() method

2009-04-15 Thread SanJ.SANJAY
don't guess. newton.dave wrote: > > SanJ.SANJAY wrote: >> No its not truncated. > > Oh, that's too bad. > >> The application is very simple helloworld application. > > It's not so simple we can guess what your code and configuration looks > like with any degree of accuracy. > > Dave > >

RE: Struts 2 Sample application look for index() method

2009-04-15 Thread Security Management
We need your struts2 xml configuration file and possibly the java code to help. That, or someone with better ESP than me will have to help. M. -Original Message- From: SanJ.SANJAY [mailto:girish...@gmail.com] Sent: Wednesday, April 15, 2009 11:25 AM To: user@struts.apache.org Subject: R

Re: Struts 2 Sample application look for index() method

2009-04-15 Thread SanJ.SANJAY
The problem is resolved, I had to remove the struts2-rest plugin. SanJ.SANJAY wrote: > > No its not truncated. > The application is very simple helloworld application. > > > > newton.dave wrote: >> >> SanJ.SANJAY wrote: >>> I have a struts 2 sample application integrated with my struts 1.

Re: Struts 2 Sample application look for index() method

2009-04-15 Thread Dave Newton
SanJ.SANJAY wrote: No its not truncated. Oh, that's too bad. The application is very simple helloworld application. It's not so simple we can guess what your code and configuration looks like with any degree of accuracy. Dave

Re: Struts 2 Sample application look for index() method

2009-04-15 Thread SanJ.SANJAY
No its not truncated. The application is very simple helloworld application. newton.dave wrote: > > SanJ.SANJAY wrote: >> I have a struts 2 sample application integrated with my struts 1. >> Everything >> is fine but the filter complains that it did not find index() method on >> the >> action.

Re: Struts 2 Sample application look for index() method

2009-04-15 Thread Dave Newton
SanJ.SANJAY wrote: I have a struts 2 sample application integrated with my struts 1. Everything is fine but the filter complains that it did not find index() method on the action. I have only one method execute() in the action class. The application is very simple one why does it says java.lang

Struts 2 Sample application look for index() method

2009-04-15 Thread SanJ.SANJAY
I have a struts 2 sample application integrated with my struts 1. Everything is fine but the filter complains that it did not find index() method on the action. I have only one method execute() in the action class. The application is very simple one why does it says java.lang.NoSuchMethodExcepti

Re: sample CRUD application question

2009-04-15 Thread Bhaarat Sharma
I've resolved the issue. I was missing an interceptor from my struts.xml which is why the object was not getting invoked On Wed, Apr 15, 2009 at 7:44 AM, Bhaarat Sharma wrote: > My Code is as follows: > > Struts.xml > >extends="struts-default"> >class="gov.hud.pih.eiv.web.actio

RE: Redirect After Post

2009-04-15 Thread Manoj Dhore
Have a lot at this: http://cwiki.apache.org/WW/redirect-after-post.html There are other sites as well which has examples and will help you to use Redirect-after-post -Original Message- From: maestro [mailto:maestr...@gmail.com] Sent: 15 April 2009 15:38 To: Struts Users Mailing List S

Redirect After Post

2009-04-15 Thread maestro
Hello, We are in the process of looking at Struts2. Here is a pattern: http://www.theserverside.com/tt/articles/article.tss?l=RedirectAfterPost Generally the web page has lists, inputted data and possible error messages. In case of errors, the list items and selections, and inputted data must be

RE: Struts 2 Portlet - Intermittent Session Problems

2009-04-15 Thread Kofford, C Todd
I've been trying to reproduce the problem, but can't do it consistently. I've never seen it when running on localhost only on our test server. I've also been cleaning up a lot of code, and I'm still not ruling out a logic (code) error. No I'm not calling session.clear(), when I remove objects fr

Re: Struts 2 Portlet - Intermittent Session Problems

2009-04-15 Thread Nils-Helge Garli Hegvik
It would be helpful if you tried it in a different container and report your findings, and/or create a JIRA issue with a small sameple application that can be used to reproduce the error. Are you by any chance calling "clear()" on the session map? That would invalidate the session. Nils-H On Wed

RE: Struts 2 Portlet - Intermittent Session Problems

2009-04-15 Thread Kofford, C Todd
I'm using session scope (implements SessionAware). No, I haven't deployed to a different portlet container. Todd Kofford tkoff...@ku.edu University of Kansas - IT -Original Message- From: Nils-Helge Garli Hegvik [mailto:nil...@gmail.com] Sent: Wednesday, April 15, 2009 4:05 AM To: Stru

Re: Struts 2.1.6 conversion problem with java.util.Date

2009-04-15 Thread Stefano Tranquillini
U have to specify the tipe, if your field is a timestamp have to set the annotation in this way: @Temporal(TemporalType.TIMESTAMP) private Date datetime; and then u can simply assign the value in this way: setDatetime(new Date()); cheers On Sun, Apr 12, 2009 at 15:27, lewy87 wrote: > >

Re: Set Unchecked Value in the Checkbox Interceptor

2009-04-15 Thread Richard Sayre
I think I found the problem. All of my check boxes have the same name. After examining the code in the interceptor: if (key.startsWith("__checkbox_")) { String name = key.substring("__checkbox_".length()); iterator.remove(); // is this checkbox checked/sub

Re: EJB3 plugin struts2

2009-04-15 Thread Stefano Tranquillini
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 example.HelloWorld.execute(HelloWorld.java:44) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Meth

Re: EJB3 plugin struts2

2009-04-15 Thread Stefano Tranquillini
Hi, i've done this: web.xml http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";> struts2 org.apache.struts2.dispatcher.FilterDispatc

Re: EJB3 plugin struts2

2009-04-15 Thread Stefano
Hi, i've done this: web.xml http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";> struts2 org.apache.struts2.dispatcher.FilterDisp

Re: sample CRUD application question

2009-04-15 Thread Bhaarat Sharma
My Code is as follows: Struts.xml /reports/debtsowed/tenants.jsp PHAInformation /reports/debtsowed/tenantForm.jsp /error.jsp URL code in tenants.jsp

Re: Set Unchecked Value in the Checkbox Interceptor

2009-04-15 Thread Richard Sayre
After reading some more documentation I tried : -1 completeDefault is a stack I created which includes the checkbox interceptor. This is still not setting the value in my int array. On Wed, Apr 15, 2009 at 8:29 AM, Richard Sayre wrote: > The Struts 2 docs says the followi

Set Unchecked Value in the Checkbox Interceptor

2009-04-15 Thread Richard Sayre
The Struts 2 docs says the following about the Checkbox Interceptor: setUncheckedValue - The default value of an unchecked box can be overridden by setting the 'uncheckedValue' property. Where in code can I call the setUncheckedValue(String uncheckedValue) from? The problem I am facing is the f

Using AJAX in Struts 2.x

2009-04-15 Thread NR031
Hi, I am new to struts 2.x. I am using NetBeans IDE and struts 2.0.11. I want to use AJAX in my struts program. I am following the tutorial given http://www.roseindia.net/struts/struts2/struts2ajax/ajax-login-form.shtml HERE . When I click on Submit button I am getting "undefined" mes

Re: Struts 2 Portlet - Intermittent Session Problems

2009-04-15 Thread Nils-Helge Garli Hegvik
As long as you're using the portlet session, and not the APPLICATION_SCOPE session, the sessions shouldn't interfere. Which container are you running in? Have you tried deploying to a different portlet container? Nils-H On Tue, Apr 14, 2009 at 8:01 PM, Kofford, C Todd wrote: > Hi Nils, > > Well

Re: It's a struts2 bug? or just I miss something or configuration error

2009-04-15 Thread Gordian Yuan
Hi,Dave I'm using a Maven plug-ins that at compile time will be automatically native2ascii I have just finally solve this problem, some jsp page I forgot to add the following command <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> Together with this command,everyhing is fi