Struts 2.1.6 - reload resource bundles

2009-05-29 Thread Kishan G. Chellap Paandy
Hi,

I want to reload resource bundles (application resources) dynamically for i18n.

Since it is production, I can't set dev mode struts property to true.

Does setting only the struts2 property i18n.reload to true will solve my 
problem?

Is there is any other workaround like doing it programmatically?

Please advice.

Thank you.
Regards,
Kishan.G




Re: Stuts2 field validation problems

2009-05-29 Thread rakeshp

invalid.fieldvalue.yourpropertyname

This should override the default message.


Robert Stenholt Mygind wrote:
> 
> Hi All
> 
> I have some problems with field validation in Struts2, I am not the
> most experienced in Struts2.
> 
> 
> I have a form looking something like this:
> 
>   
> ..
>   
> 
> 
> 
> In my acrion class I have something looking like:
> 
> @RequiredFieldValidator(message = "Some error text", shortCircuit=true)
> public Integer getSubscriptions() {
>   return subscriptions;
>   }
> 
> 
> The field is a Integer field, so if I insted write  "test" in it I get
> the following HTML:
> 
> 
> 
>  Invalid field value for field "subscriptions".
>
>
>  Some error text
>
> 
> 
> 
> The first is the default from "invalid.fieldvalue" and the second is
> the one I made.. I only wish to have the secound, in some kind of
> override. I also tried to use
> @ConversionErrorFieldValidator(message = "Default message")
> @RequiredFieldValidator(message = "Some error text", shortCircuit=true)
> 
> and that is the same, get both errors..
> 
> I don't have any idea what to do, maybe I have misunderstood the
> Struts2 validation completely. Hope you can help.
> -- 
> Very Best regards
> Robert
>  http://www.innovated.dk www.innovated.dk 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Stuts2-field-validation-problems-tp21401218p23776022.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



[s2] strange (for me) OGNL behavior

2009-05-29 Thread kindlerm
Hi,

OGNL is a great mystery for me. It does magic and - well - strange things. :-)
Perhaps you can help me out.

The situation:
I have a S2 (2.16) site where I use on some pages a form like this:

  
  


This works great.

The problem:
when pressing the Submit-button, Struts throws exceptions that it (OGNL) cannot 
set the properties x and y which do not exist.
This does not stop my app from working, its just ugly.

Looking a bit into the problem I found that the form tries to transfer 
plzs_submit.x and plzs_submit.y and this causes the problem.

I am puzzled.

Any explanation and hint for stopping this will be greatly appreciated.

Martin

+---
 Dipl. inf. Martin Kindler
 Julius-Leber-Str. 8
 D-76448 Durmersheim

 Tel. +49 (0)7245 80 48 774
 GSM +49 (0)160 977 636 14

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



OGNL Check for Enum in a list of Strings

2009-05-29 Thread Richard Sayre
I have a String array and I am trying to see if there is a value in it.

Using:  works.

I want to use the value of an enum in place of foo.

I tried 

which didn't work.  Using the String literal works: 

Is it possible to do this using @my.package.mye...@enum_value?

Thanks

Rich

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [s2] strange (for me) OGNL behavior

2009-05-29 Thread Jim Kiley
Whenever you click an HTML button with your mouse, the browser will submit
the X and Y coordinates of the area that you clicked.  This is to support
image maps.  By giving the submit button a name (I think), the browser tries
to provide those X and Y coordinates with respect to the button's name (thus
name.x and name.y).  Struts is trying to parse those input parameters but
because you probably don't have an object in your action class that has the
name that your submit button has, it is lost.
This error won't actually cause you any real problems, but if you want to
get rid of it I think you'll want to get rid of the 'name' attribute on your
submit button.

jk

On Fri, May 29, 2009 at 5:46 AM,  wrote:

> Hi,
>
> OGNL is a great mystery for me. It does magic and - well - strange things.
> :-)
> Perhaps you can help me out.
>
> The situation:
> I have a S2 (2.16) site where I use on some pages a form like this:
> 
>  
>   name="plzs_submit" cssStyle="margin-left: 5px;" />
> 
>
> This works great.
>
> The problem:
> when pressing the Submit-button, Struts throws exceptions that it (OGNL)
> cannot set the properties x and y which do not exist.
> This does not stop my app from working, its just ugly.
>
> Looking a bit into the problem I found that the form tries to transfer
> plzs_submit.x and plzs_submit.y and this causes the problem.
>
> I am puzzled.
>
> Any explanation and hint for stopping this will be greatly appreciated.
>
> Martin
>
> +---
>  Dipl. inf. Martin Kindler
>  Julius-Leber-Str. 8
>  D-76448 Durmersheim
>
>  Tel. +49 (0)7245 80 48 774
>  GSM +49 (0)160 977 636 14
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


-- 
Jim Kiley
Senior Technical Consultant | Summa
[p] 412.258.3346
http://www.summa-tech.com


Aw: Re: [s2] strange (for me) OGNL behavior

2009-05-29 Thread kindlerm
Thanks Jim,

that is the explanation I needed. I can't get rid of the name attribute, but I 
can live with the stack traces in my log file.

Martin


- Original Nachricht 
Von: Jim Kiley 
An:  Struts Users Mailing List 
Datum:   29.05.2009 14:45
Betreff: Re: [s2] strange (for me) OGNL behavior

> Whenever you click an HTML button with your mouse, the browser will submit
> the X and Y coordinates of the area that you clicked.  This is to support
> image maps.  By giving the submit button a name (I think), the browser
> tries
> to provide those X and Y coordinates with respect to the button's name
> (thus
> name.x and name.y).  Struts is trying to parse those input parameters but
> because you probably don't have an object in your action class that has the
> name that your submit button has, it is lost.
> This error won't actually cause you any real problems, but if you want to
> get rid of it I think you'll want to get rid of the 'name' attribute on
> your
> submit button.
> 
> jk
> 
> On Fri, May 29, 2009 at 5:46 AM,  wrote:
> 
> > Hi,
> >
> > OGNL is a great mystery for me. It does magic and - well - strange
> things.
> > :-)
> > Perhaps you can help me out.
> >
> > The situation:
> > I have a S2 (2.16) site where I use on some pages a form like this:
> > 
> >  
> >   > name="plzs_submit" cssStyle="margin-left: 5px;" />
> > 
> >
> > This works great.
> >
> > The problem:
> > when pressing the Submit-button, Struts throws exceptions that it (OGNL)
> > cannot set the properties x and y which do not exist.
> > This does not stop my app from working, its just ugly.
> >
> > Looking a bit into the problem I found that the form tries to transfer
> > plzs_submit.x and plzs_submit.y and this causes the problem.
> >
> > I am puzzled.
> >
> > Any explanation and hint for stopping this will be greatly appreciated.
> >
> > Martin
> >
> > +---
> >  Dipl. inf. Martin Kindler
> >  Julius-Leber-Str. 8
> >  D-76448 Durmersheim
> >
> >  Tel. +49 (0)7245 80 48 774
> >  GSM +49 (0)160 977 636 14
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
> 
> 
> -- 
> Jim Kiley
> Senior Technical Consultant | Summa
> [p] 412.258.3346
> http://www.summa-tech.com
> 

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



S2: on Servlet 2.3

2009-05-29 Thread Givler, Eric
I read a few threads on this and have not seen anything that reflects that this 
can be done.

Is anyone running Struts2 on an older Servlet Container, and if so, what did 
you do to get it running?  We're stuck with an Oracle Application Server 10gR2 
server that can be tweaked to support a newer JDK, but it still will only 
support Servlet 2.3 and JSP 1.2.




Struts 1.3.9 & tags-html-el

2009-05-29 Thread David Miller
Greetings,

An application that runs just fine in Glassfish 2.1 sort-of craps out when
deployed on Weblogic 10.3.

Specifically, an exception is thrown upon accessing a page that uses
html:checkbox with an EL expression for the 'disabled' attribute:


11:04:29 ERROR  926:org.apache.struts.tiles.taglib.InsertTag -
ServletException in '/pages/xxx/xxx.jsp': Failed to compile JSP
/pages/xxx/xxx.jsp
xxx.jsp:390:102: The method setDisabled(boolean) in the type BaseHandlerTag
is not applicable for the arguments (String)


javax.servlet.ServletException: weblogic.servlet.jsp.CompilationException:
Failed to compile JSP /pages/xxx/xxx.jsp
xxx.jsp:390:102: The method setDisabled(boolean) in the type BaseHandlerTag
is not applicable for the arguments (String)


at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:252)
at
weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at
weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:502)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:432)
at
weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:163)
at
weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:184)
... snipped



${disabledFlag} evaluates to true. If I use 'true' instead of the EL
expression, it works.

I'm using the following taglib: <%@ taglib uri="
http://struts.apache.org/tags-html-el"; prefix="html" %>.

If I use <%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html"
%> there is no problem (no 'el').

What is happening?!


Re: Error in Jasper printReport

2009-05-29 Thread Wes Wannemacher
Or, just quit trying to specify true... Based on the information
provided, I would suggest that you specify false from now on.

:)

-Wes

On Fri, May 29, 2009 at 2:24 AM, Nils-Helge Garli Hegvik
 wrote:
> Maybe you should try a Jasper mailing list?
>
> Nils-H
>
> On Fri, May 29, 2009 at 8:19 AM, Ikya Technical  
> wrote:
>> Hi,
>>
>>     Whenever I am giving true in
>>
>>                        JasperPrintManager.printReport(jasperPrint, true)
>>
>>    it is throwing the error
>>
>>                net.sf.jasperreports.engine.JRException: Error printing 
>> report.
>>
>>
>>     But if I am giving it as JasperPrintManager.printReport(jasperPrint,
>> false) it is working fine.
>>
>>     Am I missing any library for this?
>>
>> Regards,
>> Sreekanth
>>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



convention plug-in question

2009-05-29 Thread Jim Collings
So if I use dynamic method invocation, like so:

/admin/change-wingding!change

How will the result urls for that call be constructed?


Jim C.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



How to make readonly textfield in Struts 2.0.11.2 datetimepicker

2009-05-29 Thread Girish Naik
Hi,
I have used struts2-core-2.0.11.2 in My Application. And intend to use the
Struts date time picker, but the text field is coming as an editable field.
I want to make it as a readonly textbox. The funny thing  is that the dojo
is not ready to pass my id to the textbox. Only name is supplied to the text
box.

Any suggesstions on how to make the textbox non editable and only the icon
clickable?

Thanks in Advance.


Regards,
-
Girish Naik
Mobile:-+91-09740091638
girish.n...@gmail.com
Mitch Hedberg
- "My fake plants died because I did not pretend to water them."


Re: How to make readonly textfield in Struts 2.0.11.2 datetimepicker

2009-05-29 Thread Jim Collings
I just did this a while ago. All I had to do was set:

readonly="true"

on the struts textfield tag. Mine doesn't have an icon though.

On Fri, May 29, 2009 at 2:00 PM, Girish Naik  wrote:
> Hi,
> I have used struts2-core-2.0.11.2 in My Application. And intend to use the
> Struts date time picker, but the text field is coming as an editable field.
> I want to make it as a readonly textbox. The funny thing  is that the dojo
> is not ready to pass my id to the textbox. Only name is supplied to the text
> box.
>
> Any suggesstions on how to make the textbox non editable and only the icon
> clickable?

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: error validation error

2009-05-29 Thread coolsayan

what to change please be specific

coolsayan wrote:
> 
> how to solve??why this  not working??
> 
> 
> 
> code in login.jsp
> 
> <%...@page contentType="text/html"%>
> <%...@page pageEncoding="UTF-8"%>
> 
> <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"; prefix="bean"
> %>
> <%@ taglib uri="http://jakarta.apache.org/struts/tags-html"; prefix="html"
> %>
> <%@ taglib uri="http://jakarta.apache.org/struts/tags-logic";
> prefix="logic" %>
>  "http://www.w3.org/TR/html4/loose.dtd";>
> 
> 
> 
> 
> JSP Page
> 
> 
>  Login Form
>  
> 
> 
> 
> 
> 
>  register.jsp Register to login 
> 
> 
> Enter Your user name:
> 
> 
> 
> Enter Your Password:
> 
> 
> 
> 
> 
> 
>  forgetpass.jsp Forget Password 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> code in ActionBean:
> 
> /*
>  * To change this template, choose Tools | Templates
>  * and open the template in the editor.
>  */
> 
> package com.myapp.struts;
> 
> import javax.naming.NamingException;
> import javax.servlet.http.HttpServletRequest;
> import javax.servlet.http.*;
> import javax.servlet.*;
> //import javax.sql.DataSource;
> import org.apache.struts.action.ActionErrors;
> import org.apache.struts.action.ActionMapping;
> import org.apache.struts.action.ActionMessage;
> //import sun.jdbc.odbc.JdbcOdbcDriver;
> 
> /**
>  *
>  * @author Administrator
>  */
> public class LoginForm extends org.apache.struts.action.ActionForm {
> //private JdbcOdbcDriver serviceLocator;
> 
> private String name;
> //private String name;
> private String password;
> 
> public String getPassword() {
> return password;
> }
> 
> public void setPassword(String password) {
> this.password = password;
> }
> 
> private int number;
> 
> /**
>  * @return
>  */
> public String getName() {
> return name;
> }
> 
> /**
>  * @param string
>  */
> public void setName(String string) {
> name = string;
> }
> 
> /**
>  * @return
>  */
> public int getNumber() {
> return number;
> }
> 
> /**
>  * @param i
>  */
> public void setNumber(int i) {
> number = i;
> }
> 
> /**
>  *
>  */
> public LoginForm() {
> super();
> // TODO Auto-generated constructor stub
> }
> 
> /**
>  * This is the action called from the Struts framework.
>  * @param mapping The ActionMapping used to select this instance.
>  * @param request The HTTP Request we are processing.
>  * @return
>  */
>  
> public ActionErrors validate(ActionMapping mapping, HttpServletRequest
> request) {
> ActionErrors errors = new ActionErrors();
> if (getName() == null || getName().length() < 1) {
> errors.add("name", new ActionMessage("error.name.required"));
> // TODO: add 'error.name.required' key to your resources
> }
> return errors;
> }
> 
> 
> 
> 
> }
> 
> code in Action servlet:
> 
> /*
>  * To change this template, choose Tools | Templates
>  * and open the template in the editor.
>  */
> package com.myapp.struts;
> 
> import javax.servlet.http.HttpServletRequest;
> import javax.servlet.http.HttpServletResponse;
> import javax.servlet.http.*;
> import java.io.*;
> import org.apache.struts.action.Action;
> import org.apache.struts.action.ActionForm;
> import org.apache.struts.action.ActionMapping;
> import org.apache.struts.action.ActionForward;
> 
> /**
>  *
>  * @author Administrator
>  */
> public class LoginAction extends org.apache.struts.action.Action {
> 
> /* forward name="success" path="" */
> private final static String SUCCESS = "success";
> private final static String FAILURE = "failure";
> 
> /**
>  * This is the action called from the Struts framework.
>  * @param mapping The ActionMapping used to select this instance.
>  * @param form The optional ActionForm bean for this request.
>  * @param request The HTTP Request we are processing.
>  * @param response The HTTP Response we are processing.
>  * @throws java.lang.Exception
>  * @return
>  */
> public ActionForward execute(ActionMapping mapping, ActionForm form,
> HttpServletRequest request, HttpServletResponse response)
> throws Exception {
> LoginForm formBean = (LoginForm) form;
> String name = formBean.getName();
> String password = formBean.getPassword();
> 
> // perform validation
> if ((name.isEmpty()) || // name parameter does not exist
> password == null || // 

Cant find @Result type=? list in docs

2009-05-29 Thread Jim Collings
So what are the different options for setting type in an @Result
annotation and what are they for?  Can't find this in the docs.

Jim C.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Error in Jasper printReport

2009-05-29 Thread Martin Gainty

can you post:

WEB/INF/web.xml
/WEB-INF/classes/struts.xml
/WEB-INF/classes/struts-config.xml
/WEB-INF/classes/struts-plugin.xml
/WEB-INF/classes/xwork-classes.xml
any/all *.jsp
any/all java source for Action classes
version of all jars used (especially which version jasperpreports.jar)
DB connection and / or schema

thx,
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Fri, 29 May 2009 11:29:35 -0400
> Subject: Re: Error in Jasper printReport
> From: w...@wantii.com
> To: user@struts.apache.org
> 
> Or, just quit trying to specify true... Based on the information
> provided, I would suggest that you specify false from now on.
> 
> :)
> 
> -Wes
> 
> On Fri, May 29, 2009 at 2:24 AM, Nils-Helge Garli Hegvik
>  wrote:
> > Maybe you should try a Jasper mailing list?
> >
> > Nils-H
> >
> > On Fri, May 29, 2009 at 8:19 AM, Ikya Technical  
> > wrote:
> >> Hi,
> >>
> >> Whenever I am giving true in
> >>
> >>JasperPrintManager.printReport(jasperPrint, true)
> >>
> >>it is throwing the error
> >>
> >>net.sf.jasperreports.engine.JRException: Error printing 
> >> report.
> >>
> >>
> >> But if I am giving it as JasperPrintManager.printReport(jasperPrint,
> >> false) it is working fine.
> >>
> >> Am I missing any library for this?
> >>
> >> Regards,
> >> Sreekanth
> >>
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
> 
> 
> 
> -- 
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 

_
Hotmail® goes with you. 
http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009

Re: Error in Jasper printReport [Friday]

2009-05-29 Thread Wes Wannemacher
I think we'll also need his social security number, any and all credit
card numbers and his first-born child.

-Wes

On Fri, May 29, 2009 at 2:40 PM, Martin Gainty  wrote:
>
> can you post:
>
> WEB/INF/web.xml
> /WEB-INF/classes/struts.xml
> /WEB-INF/classes/struts-config.xml
> /WEB-INF/classes/struts-plugin.xml
> /WEB-INF/classes/xwork-classes.xml
> any/all *.jsp
> any/all java source for Action classes
> version of all jars used (especially which version jasperpreports.jar)
> DB connection and / or schema
>
> thx,
> Martin Gainty
> __
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
> sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
> oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich 
> dem Austausch von Informationen und entfaltet keine rechtliche 
> Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen 
> wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
> destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
> l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci 
> est interdite. Ce message sert à l'information seulement et n'aura pas 
> n'importe quel effet légalement obligatoire. Étant donné que les email 
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter 
> aucune responsabilité pour le contenu fourni.
>
>
>
>
>> Date: Fri, 29 May 2009 11:29:35 -0400
>> Subject: Re: Error in Jasper printReport
>> From: w...@wantii.com
>> To: user@struts.apache.org
>>
>> Or, just quit trying to specify true... Based on the information
>> provided, I would suggest that you specify false from now on.
>>
>> :)
>>
>> -Wes
>>
>> On Fri, May 29, 2009 at 2:24 AM, Nils-Helge Garli Hegvik
>>  wrote:
>> > Maybe you should try a Jasper mailing list?
>> >
>> > Nils-H
>> >
>> > On Fri, May 29, 2009 at 8:19 AM, Ikya Technical  
>> > wrote:
>> >> Hi,
>> >>
>> >>     Whenever I am giving true in
>> >>
>> >>                        JasperPrintManager.printReport(jasperPrint, true)
>> >>
>> >>    it is throwing the error
>> >>
>> >>                net.sf.jasperreports.engine.JRException: Error printing 
>> >> report.
>> >>
>> >>
>> >>     But if I am giving it as JasperPrintManager.printReport(jasperPrint,
>> >> false) it is working fine.
>> >>
>> >>     Am I missing any library for this?
>> >>
>> >> Regards,
>> >> Sreekanth
>> >>
>> >
>> > -
>> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> > For additional commands, e-mail: user-h...@struts.apache.org
>> >
>> >
>>
>>
>>
>> --
>> Wes Wannemacher
>> Author - Struts 2 In Practice
>> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
>> http://www.manning.com/wannemacher
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>
> _
> Hotmail® goes with you.
> http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009



-- 
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Cant find @Result type=? list in docs

2009-05-29 Thread Wes Wannemacher
http://struts.apache.org/2.x/docs/convention-plugin.html#ConventionPlugin-Resultannotation

-Wes

On Fri, May 29, 2009 at 2:20 PM, Jim Collings  wrote:
> So what are the different options for setting type in an @Result
> annotation and what are they for?  Can't find this in the docs.
>
> Jim C.
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Cant find @Result type=? list in docs

2009-05-29 Thread Jim Collings
@Result(name="success", location="http://struts.apache.org";, type="redirect")

Question was supposed to be: "In the line above, what are the
possibilities for type=?"

I think the answer is:
http://struts.apache.org/2.1.6/docs/result-types.html however, I just
tried "redirect-action" mentioned in these docs and either I don't
know how to  use it, or it doesn't work.

On Fri, May 29, 2009 at 2:45 PM, Wes Wannemacher  wrote:
> http://struts.apache.org/2.x/docs/convention-plugin.html#ConventionPlugin-Resultannotation
>
> -Wes
>
> On Fri, May 29, 2009 at 2:20 PM, Jim Collings  wrote:
>> So what are the different options for setting type in an @Result
>> annotation and what are they for?  Can't find this in the docs.
>>
>> Jim C.
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>
>
>
> --
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Cant find @Result type=? list in docs

2009-05-29 Thread Wes Wannemacher
It is redirectAction

The docs are supposed to auto-update, but they haven't been recently.
Apache Infra is working on it.

-Wes

On Fri, May 29, 2009 at 2:57 PM, Jim Collings  wrote:
> @Result(name="success", location="http://struts.apache.org";, type="redirect")
>
> Question was supposed to be: "In the line above, what are the
> possibilities for type=?"
>
> I think the answer is:
> http://struts.apache.org/2.1.6/docs/result-types.html however, I just
> tried "redirect-action" mentioned in these docs and either I don't
> know how to  use it, or it doesn't work.
>
> On Fri, May 29, 2009 at 2:45 PM, Wes Wannemacher  wrote:
>> http://struts.apache.org/2.x/docs/convention-plugin.html#ConventionPlugin-Resultannotation
>>
>> -Wes
>>
>> On Fri, May 29, 2009 at 2:20 PM, Jim Collings  wrote:
>>> So what are the different options for setting type in an @Result
>>> annotation and what are they for?  Can't find this in the docs.
>>>
>>> Jim C.
>>>
>>> -
>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>
>>>
>>
>>
>>
>> --
>> Wes Wannemacher
>> Author - Struts 2 In Practice
>> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
>> http://www.manning.com/wannemacher
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: S2: on Servlet 2.3

2009-05-29 Thread Dave Newton

Givler, Eric wrote:

I read a few threads on this and have not seen anything that reflects that this 
can be done.


I've run older S2 under servlet 2.3, but that was pre-S2.1.

It'd be easier to describe any problems you're having, although I 
suspect we won't put a huge amount of effort into supporting servlet 
2.3--if it doesn't currently work.


Dave

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: error validation error

2009-05-29 Thread Dave Newton

coolsayan wrote:

what to change please be specific


The taglib URIs.

Dave

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Error in Jasper printReport [Friday]

2009-05-29 Thread Dave Newton

Wes Wannemacher wrote:

I think we'll also need his social security number, any and all credit
card numbers and his first-born child.


Could be a firmware issue, so include a BIOS dump.

Dave

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Cant find @Result type=? list in docs

2009-05-29 Thread Martin Gainty

if you follow the link wes supplied from result-types for redirection-action
http://struts.apache.org/2.1.6/docs/redirect-action-result.html

take note required params of 
actionName
namespace

a fairly comprehensive example used to construct namespace=/genReport 
actionName=generateReport
(suffixed with 
reportType param
width param
height param
}

   <-- Pass parameters (reportType, width and height) -->
   
   
  
 generateReport
 /genReport
 pie
 100
 100
  
   
are the examples provided clear enough to follow?
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Fri, 29 May 2009 15:32:42 -0400
> Subject: Re: Cant find @Result type=? list in docs
> From: w...@wantii.com
> To: user@struts.apache.org
> 
> It is redirectAction
> 
> The docs are supposed to auto-update, but they haven't been recently.
> Apache Infra is working on it.
> 
> -Wes
> 
> On Fri, May 29, 2009 at 2:57 PM, Jim Collings  wrote:
> > @Result(name="success", location="http://struts.apache.org";, 
> > type="redirect")
> >
> > Question was supposed to be: "In the line above, what are the
> > possibilities for type=?"
> >
> > I think the answer is:
> > http://struts.apache.org/2.1.6/docs/result-types.html however, I just
> > tried "redirect-action" mentioned in these docs and either I don't
> > know how to  use it, or it doesn't work.
> >
> > On Fri, May 29, 2009 at 2:45 PM, Wes Wannemacher  wrote:
> >> http://struts.apache.org/2.x/docs/convention-plugin.html#ConventionPlugin-Resultannotation
> >>
> >> -Wes
> >>
> >> On Fri, May 29, 2009 at 2:20 PM, Jim Collings  wrote:
> >>> So what are the different options for setting type in an @Result
> >>> annotation and what are they for?  Can't find this in the docs.
> >>>
> >>> Jim C.
> >>>
> >>> -
> >>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> >>> For additional commands, e-mail: user-h...@struts.apache.org
> >>>
> >>>
> >>
> >>
> >>
> >> --
> >> Wes Wannemacher
> >> Author - Struts 2 In Practice
> >> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> >> http://www.manning.com/wannemacher
> >>
> >> -
> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> >> For additional commands, e-mail: user-h...@struts.apache.org
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
> 
> 
> 
> -- 
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 

_
Hotmail® goes with you. 
http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009

Re: Cant find @Result type=? list in docs

2009-05-29 Thread Dave Newton
As Wes said, the problem is that "redirect-action" is no longer the name 
of the result: "redirectAction" is.


For some time the wiki hasn't been pulling in code snippets 
correctly--this may have been fixed, as [1] is currently showing the 
correct information. I didn't even think *that* one was working until I 
tried it just now.


Dave

[1] http://struts.apache.org/2.x/docs/redirect-action-result.html

Martin Gainty wrote:

if you follow the link wes supplied from result-types for redirection-action
http://struts.apache.org/2.1.6/docs/redirect-action-result.html

take note required params of 
actionName

namespace

a fairly comprehensive example used to construct namespace=/genReport 
actionName=generateReport
(suffixed with 
reportType param

width param
height param
}

   <-- Pass parameters (reportType, width and height) -->
   
   
  
 generateReport
 /genReport
 pie
 100
 100
  
   
are the examples provided clear enough to follow?
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.

Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.





Date: Fri, 29 May 2009 15:32:42 -0400
Subject: Re: Cant find @Result type=? list in docs
From: w...@wantii.com
To: user@struts.apache.org

It is redirectAction

The docs are supposed to auto-update, but they haven't been recently.
Apache Infra is working on it.

-Wes

On Fri, May 29, 2009 at 2:57 PM, Jim Collings  wrote:

@Result(name="success", location="http://struts.apache.org";, type="redirect")

Question was supposed to be: "In the line above, what are the
possibilities for type=?"

I think the answer is:
http://struts.apache.org/2.1.6/docs/result-types.html however, I just
tried "redirect-action" mentioned in these docs and either I don't
know how to  use it, or it doesn't work.

On Fri, May 29, 2009 at 2:45 PM, Wes Wannemacher  wrote:

http://struts.apache.org/2.x/docs/convention-plugin.html#ConventionPlugin-Resultannotation

-Wes

On Fri, May 29, 2009 at 2:20 PM, Jim Collings  wrote:

So what are the different options for setting type in an @Result
annotation and what are they for?  Can't find this in the docs.

Jim C.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org





--
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org





--
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



_
Hotmail® goes with you. 
http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Cant find @Result type=? list in docs

2009-05-29 Thread Dave Newton

Martin Gainty wrote:
take note required params of 
actionName

namespace


Oh, and "namespace" isn't required.

Dave

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Error in Jasper printReport [Friday]

2009-05-29 Thread Martin Gainty

yep.. forgot the BIOS

very good dave!

Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Fri, 29 May 2009 16:05:14 -0400
> From: newton.d...@yahoo.com
> To: user@struts.apache.org
> Subject: Re: Error in Jasper printReport [Friday]
> 
> Wes Wannemacher wrote:
> > I think we'll also need his social security number, any and all credit
> > card numbers and his first-born child.
> 
> Could be a firmware issue, so include a BIOS dump.
> 
> Dave
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 

_
Hotmail® has ever-growing storage! Don’t worry about storage limits.
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage1_052009

Re: Cant find @Result type=? list in docs

2009-05-29 Thread musomesa

 Are you using xml or annotations?
Does your package extend struts-default? (the 'built-in' types are defined 
there)
Chris


 


 

-Original Message-
From: Jim Collings 
To: Struts Users Mailing List 
Sent: Fri, 29 May 2009 2:57 pm
Subject: Re: Cant find @Result type=? list in docs










@Result(name="success", location="http://struts.apache.org";, type="redirect")

Question was supposed to be: "In the line above, what are the
possibilities for type=?"

I think the answer is:
http://struts.apache.org/2.1.6/docs/result-types.html however, I just
tried "redirect-action" mentioned in these docs and either I don't
know how to  use it, or it doesn't work.

On Fri, May 29, 2009 at 2:45 PM, Wes Wannemacher  wrote:
> http://struts.apache.org/2.x/docs/convention-plugin.html#ConventionPlugin-Resultannotation
>
> -Wes
>
> On Fri, May 29, 2009 at 2:20 PM, Jim Collings  wrote:
>> So what are the different options for setting type in an @Result
>> annotation and what are they for? ?Can't find this in the docs.
>>
>> Jim C.
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>
>
>
> --
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



 



RE: S2: on Servlet 2.3

2009-05-29 Thread Givler, Eric
I tried to follow the Simple Struts application example on the Wiki and I had a 
problem with the Struts tags; the dispatching to the URL (.action) seemed ok.  
(/struts-tags.tlld).  As it turns out, I looked at the file and it's definitely 
JSP 2.0 (it references dynamic tag attributes, etc. and it's a different spec). 
 However, the mail reader application's web.xml is definitely 2.3.  

When I converted the tld file to a 1.2 file (manually), *and* removed it out of 
the struts-core-2.1.6.jar (so the Oracle OC4J container wouldn't cache it), I 
ended up with another error.  It was a java.lang.ClassCastException: unable to 
cast ...XMLComment to Element (I can't remember the exact class names now). 
 The error was occurring in the JSP in the line that contains the <%@ taglib 
uri ... %> directive.  I tried precompiling the page from the command line and 
have the same error.  I'm assuming that error is probably coming from some 
dependency in Struts that is causing the JSP compiler/translator to have an 
issue.  I know that the Oracle XML parser with this older version of Oc4j has 
been the culprit for other issues.

I'm definitely blocked from having the container upgraded to Servlet 2.4 at 
this point since it's tied to Oracle's proprietary forms technology, and it's 
stuck back in Java 1.4.2.  The container *can* have a newer JDK, so it's 
currently pointing to a 1.6.0.  I've gotten Spring 2.5.6's petclinic with 
Toplink JPA to run against it after modifying the JSPs to use JSTL 1.0 and 
removing the JSP 2.0 EL expressions in them.  I was hoping Struts 2.1.x 
wouldn't be very painful as I'd like to stick with Struts but get into the 2.x 
line.

Any help will be appreciated.  I'll post back more details if I have some time 
this weekend.

Eric


From: Dave Newton [newton.d...@yahoo.com]
Sent: Friday, May 29, 2009 4:02 PM
To: Struts Users Mailing List
Subject: Re: S2: on Servlet 2.3

Givler, Eric wrote:
> I read a few threads on this and have not seen anything that reflects that 
> this can be done.

I've run older S2 under servlet 2.3, but that was pre-S2.1.

It'd be easier to describe any problems you're having, although I
suspect we won't put a huge amount of effort into supporting servlet
2.3--if it doesn't currently work.

Dave

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: S2: on Servlet 2.3

2009-05-29 Thread Givler, Eric
Ok... I just did this a couple of minutes ago at home.  

I'm using:
1. Oc4j 10.1.2.0.2 (standalone oc4j)
2. I'm setting the jdk and java path via the startup script for this to java 5, 
like this:
set java_home=C:\jdk1.5.0_12
set path=C:\jdk1.5.0_12\bin;%path%
3. I used jdev 10.1.3.4 to make the ear to deploy to this standalone container, 
and deployed it from DOS.

Here's a log of more of the detail:


in jdev 10.1.3.4, create new workspace
create project based on import of struts mail reader
create deployment profile based oon web.xml - include jars in web-inf\lib
build war/ear
set project properties: j2ee properties
set context path and filenames


from standaloneusersguide.pdf oc4j 10.1.2.0.2:

java -jar c:\oc4j_101202\j2ee\home\admin.jar ormi://localhost:23791 admin 
welcome -deploy -file StrutsMailReaderApplication.ear -deploymentName 
StrutsMailReader 

rem -targetPath applications/

You can bind any Web application through the admin.jar tool, as follows:

java -jar c:\oc4j_101202\j2ee\home\admin.jar ormi://localhost:23791 admin 
welcome -bindWebApp StrutsMailReaderApplication StrutsMailReader http-web-site 
/StrutsMailReader



Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Owner>cd 
C:\Projects\jdev10134\Struts2Samples\StrutsMailReader\deploy

C:\Projects\jdev10134\Struts2Samples\StrutsMailReader\deploy>java -jar 
c:\oc4j_101202\j2ee\home\admin.jar ormi://localhost:23791 adm
in welcome -deploy -file StrutsMailReaderApplication.ear -deploymentName 
StrutsMailReader
Notification ==> Application Deployer for StrutsMailReader STARTS [ 
2009-05-29T22:24:23.515EDT ]
Notification ==> Undeploy previous deployment
Notification ==> Removing files for app 
file:/C:/OC4J_101202/j2ee/home/applications/StrutsMailReader.ear
Notification ==> Copy the archive to 
C:\OC4J_101202\j2ee\home\applications\StrutsMailReader.ear
Notification ==> Unpack StrutsMailReader.ear begins...
Notification ==> Unpack StrutsMailReader.ear ends...
Notification ==> Initialize StrutsMailReader.ear begins...
Notification ==> Initialize StrutsMailReader.ear ends...
Notification ==> Initialize StrutsMailReader begins...
Notification ==> Initialize StrutsMailReader ends...
Notification ==> Application Deployer for StrutsMailReader COMPLETES [ 
2009-05-29T22:24:27.828EDT ]

* bind it...

C:\Projects\jdev10134\Struts2Samples\StrutsMailReader\deploy>java -jar 
c:\oc4j_101202\j2ee\home\admin.jar ormi://localhost:23791 adm
in welcome -bindWebApp StrutsMailReader StrutsMailReader http-web-site 
/StrutsMailReader



http://localhost:/

http://localhost:/StrutsMailReader/index.html

500 error


modify oc4j's global-web-application.xml and add this:

   
   debug_mode
   true
   

restart it.

500 Internal Server Error
OracleJSP: 

JSP Error:





Request URI:/StrutsMailReader/Welcome.jsp

Exception:
java.lang.NullPointerException
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:261)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
 at 
com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.java:143)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
 at 
com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.java:143)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
 at oracle.jsp.parse.JspUtils.loadClassJDK(JspUtils.java:256)
 at oracle.jsp.parse.JspUtils.loadClass(JspUtils.java:246)
 at oracle.jsp.parse.JspRTTag.(JspRTTag.java:149)
 at oracle.jsp.parse.JspParseState.createTagParser(JspParseState.java:575)
 at oracle.jsp.parse.JspParseTag.parseNextTag(JspParseTag.java:693)
 at oracle.jsp.parse.JspParseTagFile.parse(JspParseTagFile.java:184)
 at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java:154)
 at 
oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:428)
 at oracle.jsp.runtimev2.JspPageCompiler.compilePage(JspPageCompiler.java:303)
 at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:483)
 at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:542)
 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:305)
 at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
 at 

Re: Struts 1.3.9 & tags-html-el

2009-05-29 Thread Paul Benedict
Have you tried 1.3.10 ? If you still have a problem, please log it in
Struts JIRA so it can be fixed in 1.3.11.

Paul

On Fri, May 29, 2009 at 10:20 AM, David Miller  wrote:
> Greetings,
>
> An application that runs just fine in Glassfish 2.1 sort-of craps out when
> deployed on Weblogic 10.3.
>
> Specifically, an exception is thrown upon accessing a page that uses
> html:checkbox with an EL expression for the 'disabled' attribute:
>
>
> 11:04:29 ERROR  926:org.apache.struts.tiles.taglib.InsertTag -
> ServletException in '/pages/xxx/xxx.jsp': Failed to compile JSP
> /pages/xxx/xxx.jsp
> xxx.jsp:390:102: The method setDisabled(boolean) in the type BaseHandlerTag
> is not applicable for the arguments (String)
>                     value="${}" disabled="${disabledFlag}"
> title="${titleMessage}" />
>
> javax.servlet.ServletException: weblogic.servlet.jsp.CompilationException:
> Failed to compile JSP /pages/xxx/xxx.jsp
> xxx.jsp:390:102: The method setDisabled(boolean) in the type BaseHandlerTag
> is not applicable for the arguments (String)
>                     value="${}" disabled="${disabledFlag}"
> title="${titleMessage}" />
>
>        at
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:252)
>        at
> weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
>        at
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
>        at
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
>        at
> weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:502)
>        at
> weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:432)
>        at
> weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:163)
>        at
> weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:184)
>        ... snipped
>
>
>
> ${disabledFlag} evaluates to true. If I use 'true' instead of the EL
> expression, it works.
>
> I'm using the following taglib: <%@ taglib uri="
> http://struts.apache.org/tags-html-el"; prefix="html" %>.
>
> If I use <%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html"
> %> there is no problem (no 'el').
>
> What is happening?!
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Error in Jasper printReport [Friday]

2009-05-29 Thread Musachy Barroso
lol

On Fri, May 29, 2009 at 2:43 PM, Wes Wannemacher  wrote:
> I think we'll also need his social security number, any and all credit
> card numbers and his first-born child.
>
> -Wes
>
> On Fri, May 29, 2009 at 2:40 PM, Martin Gainty  wrote:
>>
>> can you post:
>>
>> WEB/INF/web.xml
>> /WEB-INF/classes/struts.xml
>> /WEB-INF/classes/struts-config.xml
>> /WEB-INF/classes/struts-plugin.xml
>> /WEB-INF/classes/xwork-classes.xml
>> any/all *.jsp
>> any/all java source for Action classes
>> version of all jars used (especially which version jasperpreports.jar)
>> DB connection and / or schema
>>
>> thx,
>> Martin Gainty
>> __
>> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>>
>> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene 
>> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte 
>> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht 
>> dient lediglich dem Austausch von Informationen und entfaltet keine 
>> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von 
>> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
>> destinataire prévu, nous te demandons avec bonté que pour satisfaire 
>> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie 
>> de ceci est interdite. Ce message sert à l'information seulement et n'aura 
>> pas n'importe quel effet légalement obligatoire. Étant donné que les email 
>> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter 
>> aucune responsabilité pour le contenu fourni.
>>
>>
>>
>>
>>> Date: Fri, 29 May 2009 11:29:35 -0400
>>> Subject: Re: Error in Jasper printReport
>>> From: w...@wantii.com
>>> To: user@struts.apache.org
>>>
>>> Or, just quit trying to specify true... Based on the information
>>> provided, I would suggest that you specify false from now on.
>>>
>>> :)
>>>
>>> -Wes
>>>
>>> On Fri, May 29, 2009 at 2:24 AM, Nils-Helge Garli Hegvik
>>>  wrote:
>>> > Maybe you should try a Jasper mailing list?
>>> >
>>> > Nils-H
>>> >
>>> > On Fri, May 29, 2009 at 8:19 AM, Ikya Technical  
>>> > wrote:
>>> >> Hi,
>>> >>
>>> >>     Whenever I am giving true in
>>> >>
>>> >>                        JasperPrintManager.printReport(jasperPrint, true)
>>> >>
>>> >>    it is throwing the error
>>> >>
>>> >>                net.sf.jasperreports.engine.JRException: Error printing 
>>> >> report.
>>> >>
>>> >>
>>> >>     But if I am giving it as JasperPrintManager.printReport(jasperPrint,
>>> >> false) it is working fine.
>>> >>
>>> >>     Am I missing any library for this?
>>> >>
>>> >> Regards,
>>> >> Sreekanth
>>> >>
>>> >
>>> > -
>>> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>> > For additional commands, e-mail: user-h...@struts.apache.org
>>> >
>>> >
>>>
>>>
>>>
>>> --
>>> Wes Wannemacher
>>> Author - Struts 2 In Practice
>>> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
>>> http://www.manning.com/wannemacher
>>>
>>> -
>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>
>>
>> _
>> Hotmail® goes with you.
>> http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009
>
>
>
> --
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



why doesnt iterator tag provide 'next'

2009-05-29 Thread Bhaarat Sharma
Iterator it = myList.iterator()
while (it.hasNext())
{
SomeClass ob1 = (SomeClass) it.next();
SomeClass ob2 = (SomeClass) it.next();
//do something
}

why can we not achieve the same with s:iterator tag.

What was the reasoning behind not providing a 'next' or something similar?


Re: Re: [s2] strange (for me) OGNL behavior

2009-05-29 Thread Musachy Barroso
You can configure the params interceptor to ignore those params.

musachy

On Fri, May 29, 2009 at 9:00 AM,   wrote:
> Thanks Jim,
>
> that is the explanation I needed. I can't get rid of the name attribute, but 
> I can live with the stack traces in my log file.
>
> Martin
>
>
> - Original Nachricht 
> Von:     Jim Kiley 
> An:      Struts Users Mailing List 
> Datum:   29.05.2009 14:45
> Betreff: Re: [s2] strange (for me) OGNL behavior
>
>> Whenever you click an HTML button with your mouse, the browser will submit
>> the X and Y coordinates of the area that you clicked.  This is to support
>> image maps.  By giving the submit button a name (I think), the browser
>> tries
>> to provide those X and Y coordinates with respect to the button's name
>> (thus
>> name.x and name.y).  Struts is trying to parse those input parameters but
>> because you probably don't have an object in your action class that has the
>> name that your submit button has, it is lost.
>> This error won't actually cause you any real problems, but if you want to
>> get rid of it I think you'll want to get rid of the 'name' attribute on
>> your
>> submit button.
>>
>> jk
>>
>> On Fri, May 29, 2009 at 5:46 AM,  wrote:
>>
>> > Hi,
>> >
>> > OGNL is a great mystery for me. It does magic and - well - strange
>> things.
>> > :-)
>> > Perhaps you can help me out.
>> >
>> > The situation:
>> > I have a S2 (2.16) site where I use on some pages a form like this:
>> > 
>> >  
>> >  > > name="plzs_submit" cssStyle="margin-left: 5px;" />
>> > 
>> >
>> > This works great.
>> >
>> > The problem:
>> > when pressing the Submit-button, Struts throws exceptions that it (OGNL)
>> > cannot set the properties x and y which do not exist.
>> > This does not stop my app from working, its just ugly.
>> >
>> > Looking a bit into the problem I found that the form tries to transfer
>> > plzs_submit.x and plzs_submit.y and this causes the problem.
>> >
>> > I am puzzled.
>> >
>> > Any explanation and hint for stopping this will be greatly appreciated.
>> >
>> > Martin
>> >
>> > +---
>> >  Dipl. inf. Martin Kindler
>> >  Julius-Leber-Str. 8
>> >  D-76448 Durmersheim
>> >
>> >  Tel. +49 (0)7245 80 48 774
>> >  GSM +49 (0)160 977 636 14
>> >
>> > -
>> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> > For additional commands, e-mail: user-h...@struts.apache.org
>> >
>> >
>>
>>
>> --
>> Jim Kiley
>> Senior Technical Consultant | Summa
>> [p] 412.258.3346
>> http://www.summa-tech.com
>>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: why doesnt iterator tag provide 'next'

2009-05-29 Thread Dave Newton

Bhaarat Sharma wrote:

Iterator it = myList.iterator()
while (it.hasNext()) {
SomeClass ob1 = (SomeClass) it.next();
SomeClass ob2 = (SomeClass) it.next();
//do something
}

why can we not achieve the same with s:iterator tag.
What was the reasoning behind not providing a 'next' or something similar?


Because it's a simple iterator, just like Java's for (Type var : 
collection) construct or JSTL's forEach tag.


Dave

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: why doesnt iterator tag provide 'next'

2009-05-29 Thread Bhaarat Sharma
so if there is a need to do something like this ...we are better off using
good ole scritplets? <% %>

On Sat, May 30, 2009 at 12:25 AM, Dave Newton  wrote:

> Bhaarat Sharma wrote:
>
>> Iterator it = myList.iterator()
>> while (it.hasNext()) {
>>SomeClass ob1 = (SomeClass) it.next();
>>SomeClass ob2 = (SomeClass) it.next();
>>//do something
>> }
>>
>> why can we not achieve the same with s:iterator tag.
>> What was the reasoning behind not providing a 'next' or something similar?
>>
>
> Because it's a simple iterator, just like Java's for (Type var :
> collection) construct or JSTL's forEach tag.
>
> Dave
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: How to make readonly textfield in Struts 2.0.11.2 datetimepicker

2009-05-29 Thread Girish Naik
There is no readonly attribute in s:datetimepicker tag. I am using the
following tag




PFA for the rendered UI for the above tag.


Regards,
-
Girish Naik
Mobile:-+91-09740091638
girish.n...@gmail.com
Frank Lloyd 
Wright
- "TV is chewing gum for the eyes."

On Fri, May 29, 2009 at 11:37 PM, Jim Collings  wrote:

> I just did this a while ago. All I had to do was set:
>
> readonly="true"
>
> on the struts textfield tag. Mine doesn't have an icon though.
>
> On Fri, May 29, 2009 at 2:00 PM, Girish Naik 
> wrote:
> > Hi,
> > I have used struts2-core-2.0.11.2 in My Application. And intend to use
> the
> > Struts date time picker, but the text field is coming as an editable
> field.
> > I want to make it as a readonly textbox. The funny thing  is that the
> dojo
> > is not ready to pass my id to the textbox. Only name is supplied to the
> text
> > box.
> >
> > Any suggesstions on how to make the textbox non editable and only the
> icon
> > clickable?
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Re: why doesnt iterator tag provide 'next'

2009-05-29 Thread Chris Pratt
I wouldn't put Java in my HTML any more than I would use println statements
in a Servlet to generate HTML.  Scriplets are dead and should be left to
rest in peace.

If you can't find a way to do what you need with either the JSTL or Struts
taglibs, I would suggest writing your own custom tag, it's fairly
straightforward and totally reusable (unlike a Scriplet).
  (*Chris*)

On Fri, May 29, 2009 at 10:33 PM, Bhaarat Sharma wrote:

> so if there is a need to do something like this ...we are better off using
> good ole scritplets? <% %>
>
> On Sat, May 30, 2009 at 12:25 AM, Dave Newton 
> wrote:
>
> > Bhaarat Sharma wrote:
> >
> >> Iterator it = myList.iterator()
> >> while (it.hasNext()) {
> >>SomeClass ob1 = (SomeClass) it.next();
> >>SomeClass ob2 = (SomeClass) it.next();
> >>//do something
> >> }
> >>
> >> why can we not achieve the same with s:iterator tag.
> >> What was the reasoning behind not providing a 'next' or something
> similar?
> >>
> >
> > Because it's a simple iterator, just like Java's for (Type var :
> > collection) construct or JSTL's forEach tag.
> >
> > Dave
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
>