Re: Maven2 archetype or sample POM for Struts 1.x?

2007-01-24 Thread Wendy Smoak
On 1/23/07, Manos Batsis <[EMAIL PROTECTED]> wrote: Is there any M2 archetype or sample POM availabe for Struts 1.x webaps with webdoclet, nergefiles and all working? I'm trying to create a POM and extract an archetype from it, but sincde i got to various issues i finally wondered whether a nic

Re: [S2] Any hope to have ajax form submission working?

2007-01-24 Thread Musachy Barroso
After 3 hours debugging, now I see how easy it was :), when the "targets" attribute is set to a parent element of the form, and the link is hit, the content of the "targets" element is set to "Loading...", the problem is that doing this will "erase" the form in IE (duh). So when dojo iterates o

Re: how to go back to input page?

2007-01-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Heidy, Heidy Gutiérrez Guzmán wrote: > In the application, i have the option of change language from any page. What about using the "referer" header (yes, it is misspelled)? - -chris Here is the code for my entire SwitchLocaleAction.java: import j

Problems with Struts Test Case

2007-01-24 Thread Christopher Loschen
Hi all, Does anyone here use StrutsTestCase? I'm getting an NPE I haven't been able to figure out and haven't gotten any response from the associated forum at SourceForge. Just in case somebody here could help, here are the details: My class looks like this: public class CreateActionTest extend

Re: [S2] Any hope to have ajax form submission working?

2007-01-24 Thread Dariusz Wojtas
Hmmm, if this is so black-magic then who knows if you can still reproduce it tomorrow? What if IE dies in 'some other way'? Thanks for the info, the hope is back :) Best regards Dariusz Wojtas On 1/24/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: With your latest jsp file I was able to reprod

Re: how to go back to input page?

2007-01-24 Thread Heidy Gutiérrez Guzmán
In the application, i have the option of change languaje from any page. When that option is selected, go to an Action where i do the necesary for that, after that i need to go back to the input page where the user was. I would like the solution don't carry on changes on each action on the strut

Re: [S2] Any hope to have ajax form submission working?

2007-01-24 Thread Musachy Barroso
With your latest jsp file I was able to reproduce the problem. Here is were it gets Microsoft-black-magic-style. I did something, not sure what, and it then started to work. I killed the "explorer" process, and start it again, and was able to reproduce it again, looks like a though one :) reg

Re: how to go back to input page?

2007-01-24 Thread Dave Newton
--- Heidy Gutiérrez Guzmán <[EMAIL PROTECTED]> wrote: > I need to know how to go back to input page in > struts. Under what circumstances? mapping.getInputForward()? Dave It's here! Your new message! Get

using struts validator for a form-property of type="org.apache.struts.upload.FormFile"

2007-01-24 Thread Fleetwood, Brett \(DCS\)
G'day All, I'm trying to validate a form that contains a org.apache.struts.upload.FormFile as a form property on a JSP. From the struts HTML tag-lib I'm using in my JSP like this; and I've set up the form bean like this; whe

Re: [s2] Action classes and wildcards with special characters

2007-01-24 Thread Elie Ciment
Thanks, Don! Is this documented anywhere, because I couldn't find anything... Back to work! EC On 1/24/07, Don Brown <[EMAIL PROTECTED]> wrote: The wildcard character will optionally swallow the previous character so login_* will be matched by login and login_app. This change from Struts 1

Re: [s2] Action classes and wildcards with special characters

2007-01-24 Thread Don Brown
The wildcard character will optionally swallow the previous character so login_* will be matched by login and login_app. This change from Struts 1 was done in order to better align with the "action!method" notation of WebWork 2/Struts 2. Don On 1/24/07, Elie Ciment <[EMAIL PROTECTED]> wrote: H

[s2] Action classes and wildcards with special characters

2007-01-24 Thread Elie Ciment
Hi, I am following along the tutorials online getting started with Struts2. I am loving it, but I noticed something bazaar and was wondering what anyone has to say about it. When you have an action and you add an underscore or ! followed by an asterisk (*), to make it or then when you ref

how to go back to input page?

2007-01-24 Thread Heidy Gutiérrez Guzmán
Hi I need to know how to go back to input page in struts. Thanks

[s1] Cancel request parameters and attributes

2007-01-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I have two actions in my code that I want to be able to cancel out-of, but neither of them is exciting enough to warrant a form bean and a trip through the validator. I have found that Action.isCancelled does not work when this is the case. A si

Re: s2 velocity error

2007-01-24 Thread Ron Chan
my bad... this is solved by adding velocity-tools-view Ron Chan wrote: > > i'm unable to use velocity result, tried in 2.0.3-snapshot and > 2.0.4-snapshot > > No mapping found for dependency > [type=org.apache.struts2.views.velocity.VelocityManager, name='default'] > in public void > org.ap

[S1] No inheritance of validation properites?

2007-01-24 Thread uni
I have a hierarchy of DynaValidatorForm beans. There is a form "Something" and subtypes "SpecialSomething1" and "SpecialSomething2". If I use validation and refer to the bean "Something" (to specify which general purpose properties should be validated), the validation does not work. I have to copy

S2 - allowedTypes

2007-01-24 Thread Hartrich, James CTR USTRANSCOM J6
The allowedTypes param of FileUploadStack is working correctly however upon return "input" (S2 default) I'm losing request parameters. How can I configure S2 to return a specific "inputUpdate"? Or how can I retrieve my request params within my actions.input()?

R: R: [OT] Re: R: R: Reading generated html

2007-01-24 Thread Marcello Savino
I'm not developing the entire solution, i only need the html string to pass as a a parameter to a web service (see: http://sipt07.si.ehu.es/evalaccess2/index.html). Marcello Savino ALDEBRA S.p.A. tel. 0461302441 -Messaggio originale- Da: Dave Newton [mailto:[EMAIL PROTECTED] Inviat

s2 velocity error

2007-01-24 Thread Ron Chan
i'm unable to use velocity result, tried in 2.0.3-snapshot and 2.0.4-snapshot No mapping found for dependency [type=org.apache.struts2.views.velocity.VelocityManager, name='default'] in public void org.apache.struts2.dispatcher.VelocityResult.setVelocityManager(org.apache.struts2.views.velocity.V

Re: R: [OT] Re: R: R: Reading generated html

2007-01-24 Thread Dave Newton
--- Marcello Savino wrote: > To check accessibity conformance of the genarated > page Ah... Boy, I'd sure do that a different way, like using Watir (or my STILL unreleased HeavyWatir :( or Selenium; more client-side focused tests. Or HttpUnit (or whatever that Struts one is etc.) Dave __

R: [OT] Re: R: R: Reading generated html

2007-01-24 Thread Marcello Savino
To check accessibity conformance of the genarated page cheers Marcello Savino ALDEBRA S.p.A. tel. 0461302441 -Messaggio originale- Da: Dave Newton [mailto:[EMAIL PROTECTED] Inviato: mercoledì 24 gennaio 2007 15.06 A: Struts Users Mailing List Oggetto: [OT] Re: R: R: Reading generated

R: R: Reading generated html

2007-01-24 Thread Marcello Savino
Ok i've tryed the form submit too here the code: Jsp: Action.Java: public ActionForward readContent( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOExceptio

[OT] Re: R: R: Reading generated html

2007-01-24 Thread Dave Newton
--- Marcello Savino wrote: > Cause i need to submit the html content to a > servlet to analyze the html code Now I'm curious; why? Dave Bored stiff? Loosen up... Download and play hundreds of games for fre

Re: R: Reading generated html

2007-01-24 Thread Nagraj Rao
Hi Marcello i'm bit confused on whether you wanna submit the content or set it into an object. Please guide me on that. i guess if you're capturing an HTML content in your jsp, which you need to submit, a simple form submit should work. In case you wanna set i to myObj object then u can make i

R: R: Reading generated html

2007-01-24 Thread Marcello Savino
Cause i need to submit the html content to a servlet to analyze the html code Marcello Savino ALDEBRA S.p.A. tel. 0461302441 -Messaggio originale- Da: Dave Newton [mailto:[EMAIL PROTECTED] Inviato: mercoledì 24 gennaio 2007 14.24 A: Struts Users Mailing List Oggetto: Re: R: Reading g

Re: R: Reading generated html

2007-01-24 Thread Dave Newton
--- Marcello Savino wrote: > As you can see (value="<%=request%>") the data > setted is jsp is not of type string. > I'm pretty sure cause i use to pass the request > object to an other similar bean (with other purpose) > and it works fine ! I didn't know you could do that (or I forgot; don't know

RE: Reading generated html

2007-01-24 Thread Kandelwal Abhishek
Hi dear, I think u can try this code: just replace your code with following scriptlet: <% myObj.setHtml(request);%> I m sure this will surely help you. but I m still not sure if your value="<%=request%>" will work. Thanks & Regards Abhishek Khandelwal -Original Message- From: Nagra

Re: How to use

2007-01-24 Thread Dave Newton
--- red phoenix <[EMAIL PROTECTED]> wrote: > I want to make a dynamic tree,and I can add,modify > and delete any node of the dynamic tree, how to realize > it? Is there a source code for me? My impression has been that if you want to use some of the higher functionality of the tree then you migh

Re: Reading generated html

2007-01-24 Thread Nagraj Rao
Hi Marcello I guess Abhishek's right. You cant send a request object like that (atleast not in double quotes). Please check up that code. N - Original Message - From: "Marcello Savino" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, January 24, 2007 6:21 PM Subje

R: Reading generated html

2007-01-24 Thread Marcello Savino
As you can see (value="<%=request%>") the data setted is jsp is not of type string. I'm pretty sure cause i use to pass the request object to an other similar bean (with other purpose) and it works fine ! Anyway thanks for your attention Marcello Savino ALDEBRA S.p.A. tel. 0461302441 -M

Re: Type Conversion Messages i18n

2007-01-24 Thread Tom Schneider
I'm assuming this is for Struts 2. If not, please ignore me. :) This is one thing I wish they would improve in Struts 2--it's certainly not as obvious or trivial as I would expect it, but this little tidbit was buried deep in the book: 'Webwork in Action'. Here is an example of one of our me

RE: Reading generated html

2007-01-24 Thread Kandelwal Abhishek
Hi dear, I guess the method setHtml(HttpServletRequest request) is not called because the data u r setting from JSP is of type String but the bean method parameter takes HttpServletRequest. So change the parameter type to String instead of HttpServletRequest. Hope it will solve the problem. Tha

Reading generated html

2007-01-24 Thread Marcello Savino
Hi all. I need to read in a Bean the generated html (i mean the one interpreted by the browser). Let me explain further: In a jsp file i've this piece of code: [...] [...] [...] [...] This is the bean: package util; import javax.servlet.http.HttpServletRequest; import javax.servle

Type Conversion Messages i18n

2007-01-24 Thread André Faria
/How can I make the i18n of the message : /"Invalid field value for field {0}" ? Regards, André Faria - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Filter

2007-01-24 Thread Taras Puchko
Hi! Request parameters should not be confused with request attributes. In general you cannot set a parameter but you can make a wrapper for the request object overriding getParameter(String), getParameterNames() and getParameterValues(String). You can also forward to a URL that contains your para

Filter

2007-01-24 Thread Emmanuel KOJE
Hi Guys, I tried to configure a filter to get all my cookies from my request and set information some information in the request object. Unfortunetly it seems It didn't keep the value I've set as a parameter of the request. Every time my request pqremeter is empty. Even if I do a setAttribute.

Re: JSTL toUpperCase

2007-01-24 Thread Taras Puchko
If you application server supports Servlet 2.4 (e.g. Tomcat 5.x) you should use http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> See http

Re: JSTL toUpperCase

2007-01-24 Thread Bob Arnott
[EMAIL PROTECTED] wrote: So I have to change it to this: http://java.sun.com/dtd/web-app_2_4.dtd"; > Try http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/

RE: JSTL toUpperCase

2007-01-24 Thread bjorn.de.bakker
So I have to change it to this: http://java.sun.com/dtd/web-app_2_4.dtd"; > ? Can you also tell me what's wrong with this: Error: org.apache.jasper.JasperException: jsp.error.beans.property.conversion It worked with JSTL 1.0, it doesn't work anymore for JSTL 1.1. -Original Message-

Re: JSTL toUpperCase

2007-01-24 Thread Taras Puchko
Make sure you are using web.xml version 2.4. Taras. On 1/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: All of a sudden, my iteration doesn't work anymore. I want to iterate through an ArrayList of Person-objects, and before this change, I simply iterated through it with c:forEach items="

RE: JSTL toUpperCase

2007-01-24 Thread bjorn.de.bakker
All of a sudden, my iteration doesn't work anymore. I want to iterate through an ArrayList of Person-objects, and before this change, I simply iterated through it with c:forEach items="${list}" var="person" But when I run my webapp, now I can only see ${person.firstName}, ... instead of the actu

Re: JSTL toUpperCase

2007-01-24 Thread Taras Puchko
Ensure you have <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %> and NOT <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %> Taras On 1/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Then I get this: Validation error messages from TagLibraryValidator for c in

RE: JSTL toUpperCase

2007-01-24 Thread bjorn.de.bakker
Then I get this: Validation error messages from TagLibraryValidator for c in /dynamic/view/ViewPersonView.jsp43: tag = 'out' / attribute = 'value': An error occurred while parsing custom action attribute "value" with value "${fn:toUpperCase(person.lastName)}": org.apache.taglibs.standard.lang.

Re: JSTL toUpperCase

2007-01-24 Thread Taras Puchko
Hi, you should separate the namespace from the function name with a colon rather than with a dot: <%@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %> Taras. On 1/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Seems straight-through, but apparently it isn't. I have

JSTL toUpperCase

2007-01-24 Thread bjorn.de.bakker
Seems straight-through, but apparently it isn't. I have an object in the session scope, of which I need to show some attributes. Some of them need to be converted to upper case. You can use functions for that, but the problem is that I get a lot of errors :-/. My taglib-definition looks as fo

How to use

2007-01-24 Thread red phoenix
I want to use ,I read treeExampleDynamic.jsp of struts2 document,like follows: function treeNodeSelected(nodeId) { dojo.io.bind({ url: "?nodeId="+nodeId, load: function(type, data, evt) { var displayDiv = dojo.byId("displayId"