How to get original query string after more than two forwards

2007-04-19 Thread Deep Blue Li
Hi, I'm currently using an app. server that is using servlet 2.4. I cannot get the original query string after doing more than two request forward. Here is the scenario: 1. Enter the URL in the browser : http://xxx/xxx.do?search=abc 2. Go to validator, validation failed 3. Validator forwards

Need help in client side validation in Struts 2.0

2007-04-19 Thread arunabh
hi, If somebody have some information about client side validation in Stutrs2. 0 then send me .I am in a desperate need of the same . thanks Arunabh -- View this message in context: http://www.nabble.com/Need-help-in-client-side-validation-in-Struts-2.0-tf3605223.html#a10072395 Sent from

tiles2 with struts1

2007-04-19 Thread André Henke
hi, is there a way to get struts1 work with tiles2? I'm migrating my application to struts2/tiles2 but there is still struts1 code using tiles forwards which must be supported. So i have to share the tiles.xml with struts1 TilesPlugin and struts2 StrutsTilesListener. web.xml code listener

Re: RE [S2] How to have validation message using localization ?

2007-04-19 Thread MLENEVEUT
Yes the good properties would be login.login.required= The field ${getText(login.login)} is required ! But I would like to do it automatically with a generic error message : errors.required= The field ${getText(???)} is required ! and the ??? is replaced with the label of the input, to get the

Re: tiles2 with struts1

2007-04-19 Thread Antonio Petrelli
2007/4/19, André Henke [EMAIL PROTECTED]: hi, is there a way to get struts1 work with tiles2? I'm migrating my application to struts2/tiles2 but there is still struts1 code using tiles forwards which must be supported. The Struts 1 - Tiles 2 integration code is in the trunk of the

Re: How to get original query string after more than two forwards

2007-04-19 Thread piloupy GOTTAPIL
One trick that can help you, is to create a variable (a bean) in an action Struts, so that it can be used in the jsp file. In step 4/5 (in the action struts), you can set : request.setAttribute(myQuery, request.getQueryString()); And in your jsp file, you can use it, for example, like this :

Re: How to get original query string after more than two forwards

2007-04-19 Thread Deep Blue Li
Hi, I'm using the way now, but just wonder if is there anyway I can do it using serlvet API. Thanks! Regards, Deep Blue On 4/19/07, piloupy GOTTAPIL [EMAIL PROTECTED] wrote: One trick that can help you, is to create a variable (a bean) in an action Struts, so that it can be used in the jsp

Re: Using jsps from another context

2007-04-19 Thread Rajesh Gupta
Laurie Harper laurie at holoweb.net writes: Rajesh Gupta wrote: Hi All, I have several common jsp's in a common webapp, which will be shared by all other web applications. I use c:import tag to include jsp's from this common webapp. I can include jsp's , if they do not contain any

RE: Load an .xml file when server start up

2007-04-19 Thread nagesh.kumar
Write a servlet LoadMyServlet and write code to read xml and initiale a Object put in chache r session wht ever u want Add servlet definition in web.xml servlet ... ... load-on-startup 2 /load-on-startup /servlet This will work ...:) when server starts Use this will work for u

RE: Maven Jetty plugin error

2007-04-19 Thread LAMY Olivier
Nobody can help ? Thanks, -- Olivier -Message d'origine- De : LAMY Olivier [mailto:[EMAIL PROTECTED] Envoyé : mercredi 18 avril 2007 19:05 À : user@struts.apache.org Objet : Maven Jetty plugin error Hi, I have a strange error when using the maven-jetty-plugin. At the of the stack :

Re: How to get original query string after more than two forwards

2007-04-19 Thread Lance
You could implement a javax.servlet.Filter that is mapped to *.do that pushes and pops to a session based stack. Deep Blue Li wrote: Hi, I'm using the way now, but just wonder if is there anyway I can do it using serlvet API. Thanks! Regards, Deep Blue On 4/19/07, piloupy GOTTAPIL [EMAIL

Re: How to get original query string after more than two forwards

2007-04-19 Thread Lance
Oh, and another thing, it looks like your action is redirecting to your jsp instead of forwarding. In struts config, remove the redirect=true from your forward. With redirect = true, any request attributes you set in your action will not make it to your jsp, also request scoped forms won't

RE: Load an .xml file when server start up

2007-04-19 Thread zhangfan
On 4/18/07, Zhang, Larry (L.) [EMAIL PROTECTED] wrote: I need to load an .xml file when Websphere server starts up. I am using Struts ActionServlet as the only servlet in the app and I do have a CustomProcessor extending TilesRequestProcessor. I am trying to load the .xml file when the

Re: Load an .xml file when server start up

2007-04-19 Thread Lance
You could implement a javax.servlet.ServletContextListener that is notified when your webapp loads / reloads. Needs to be attached to your webapp in web.xml. zhangfan wrote: On 4/18/07, Zhang, Larry (L.) [EMAIL PROTECTED] wrote: I need to load an .xml file when Websphere server starts

Re: tiles2 with struts1

2007-04-19 Thread André Henke
hi antonio, thanks for this info, but maven build fails after: svn checkout http://svn.apache.org/repos/asf/struts/struts1/trunk mvn install Output: D:\Projects\src\20070419-struts1\trunk\tiles2d:\ProgramFiles\maven-2.0.6\bin\mv n install [INFO] Scanning for projects... [INFO

Re: tiles2 with struts1

2007-04-19 Thread Antonio Petrelli
2007/4/19, André Henke [EMAIL PROTECTED]: hi antonio, thanks for this info, but maven build fails after: svn checkout http://svn.apache.org/repos/asf/struts/struts1/trunk mvn install You're right, it is a known issue (see the comments): http://issues.apache.org/struts/browse/STR-3017 I hope

Re: RE [S2] How to have validation message using localization ?

2007-04-19 Thread MK Tan
do u have a property named loginInput in package.properties? IIRC, if struts / webwork can't find the appropriate property, it will display the key as output HTH Best regards, MK Tan On 4/19/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Anyone ? :( Michaël Hi all, With Struts

s:select with list from attributes hash map gives list key error

2007-04-19 Thread Darryl Culverwell
Does anyone know how to access a nested list in an a map. I have a list of UserStatus beans in my attributes map with key=user.status. The select looks like this : s:selectlist=attributes['user.status.options'] label=User Status /s:select And

Re: s:select with list from attributes hash map gives list key error

2007-04-19 Thread Dave Newton
-- Darryl Culverwell [EMAIL PROTECTED] wrote: I have a list of UserStatus beans in my attributes map with key=user.status. The select looks like this : s:select list=attributes['user.status.options'] label=User Status /s:select tag

Re: s:select with list from attributes hash map gives list key error

2007-04-19 Thread Darryl Culverwell
Thanx for your response, attributes['user.status.options'] produces a list of beans that I'm after. ie. Im doing something like this in my action : List userStatusOptions = getUserStatusOptions(); attributes.put(user.status.options, userStatusOptions); On Thu, 2007-04-19 at 05:54 -0700,

Re: s:select with list from attributes hash map gives list key error

2007-04-19 Thread Dave Newton
--- Darryl Culverwell [EMAIL PROTECTED] wrote: attributes['user.status.options'] produces a list of beans that I'm after. Im doing something like this in my action : List userStatusOptions = getUserStatusOptions(); attributes.put(user.status.options, userStatusOptions); Oh, I thought

Re: s:select with list from attributes hash map gives list key error

2007-04-19 Thread Darryl Culverwell
Cool! thanx. I am using a generic action, so there is no actual list in the action. All the attributes of the bean are inspected and put into the attributes map. BTW it does work if there I expose the list in the action directly. On Thu, 2007-04-19 at 06:12 -0700, Dave Newton wrote: ---

Re: s:select with list from attributes hash map gives list key error

2007-04-19 Thread Harring Figueiredo
Try using the session notation. i.e s:selectlist=#session.attributes[' user.status.options'] On 4/19/07, Darryl Culverwell [EMAIL PROTECTED] wrote: Cool! thanx. I am using a generic action, so there is no actual list in the action. All the attributes of the bean are

RE: Load an .xml file when server start up

2007-04-19 Thread Zhang, Larry \(L.\)
Can you make it more detail? Do you have sample code on this? FYI, I have already configured in web.xml to load the ActionServlet when server starts up. -Original Message- From: zhangfan [mailto:[EMAIL PROTECTED] Sent: Thursday, April 19, 2007 6:11 AM To: user@struts.apache.org

Re: s:select with list from attributes hash map gives list key error

2007-04-19 Thread Darryl Culverwell
Got it !! Defined a method public Object getAttribute(String key){ return attributes.get(key); } s:select list=%{getAttribute('user.status.options')} ... Strange that I couldn't access the map values directly... Thanx guys. On Thu, 2007-04-19 at 09:33 -0400, Harring Figueiredo

datetimepicker additional useful feature

2007-04-19 Thread David Harland
Hi, Is it possible you could add an attribute such as endDateTodayPlusDays. So that the end date is dynamically set to today plus whatever in days etc. I cant see any way of dynamically setting this otherwise. Thanks __ Ufi

html:text autocomplete=off possible?

2007-04-19 Thread john lee
for regular html, input type=text autocomplete=off but, how to set it in struts html:text ? i checked the reference of html:text, it does not have autocomplete this attribute, what is the equivalent of that? tks in advance john

Re: s:select with list from attributes hash map gives list key error

2007-04-19 Thread Harring Figueiredo
This way works too, but you do not have to add it to the attributes. I believe if you add it to the session, you can retrieve it from the JSP with the #session notation. I am glad you got it working. Hf. On 4/19/07, Darryl Culverwell [EMAIL PROTECTED] wrote: Got it !! Defined a method

Re: datetimepicker additional useful feature

2007-04-19 Thread Musachy Barroso
You can use the endDate attribute to set the last date available in the calendar. regards musachy On 4/19/07, David Harland [EMAIL PROTECTED] wrote: Hi, Is it possible you could add an attribute such as endDateTodayPlusDays. So that the end date is dynamically set to today plus whatever in

RE: datetimepicker additional useful feature

2007-04-19 Thread David Harland
You can set it to a static date in the future but what about the scenario where you want dynamically set the end date to today plus some amount of time and have it automatically update with each changing day? -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: 19

Re: datetimepicker additional useful feature

2007-04-19 Thread Musachy Barroso
Well, the 'endDate' will be evaluated as an OGNL expression, so it can be dynamic. If you have a getFutureDate() method in your action, you could set it to %{futureDate}. Now, what is really a problem is that the returned value is expected to be an String, which is wrong, it should take any

Re: datetimepicker additional useful feature

2007-04-19 Thread Musachy Barroso
https://issues.apache.org/struts/browse/WW-1889 On 4/19/07, Musachy Barroso [EMAIL PROTECTED] wrote: Well, the 'endDate' will be evaluated as an OGNL expression, so it can be dynamic. If you have a getFutureDate() method in your action, you could set it to %{futureDate}. Now, what is really a

RE: datetimepicker additional useful feature

2007-04-19 Thread David Harland
Thanks. -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: 19 April 2007 16:15 To: Struts Users Mailing List Subject: Re: datetimepicker additional useful feature https://issues.apache.org/struts/browse/WW-1889 On 4/19/07, Musachy Barroso [EMAIL PROTECTED] wrote:

Migrating to Struts 2

2007-04-19 Thread Geffrey Caruso
Ok I'm looking for some advice on migrating and existing web application to struts 2. I've seen a lot of stuff online on migrating from struts 1 or from Web Works but not much on migrating an app that isn't in any existing framework. What we currently have is a web app that uses a custom Ajax

[s2] checkboxlist tag problem

2007-04-19 Thread Zoran Avtarovski
I'm having trouble getting my checkbox list to populate correctly. I have a User object which has a List of Role objects (roleId-Integer, roleName-String) with setter/getter as follows: private ListRole roles; /** * Returns the roles * * @return the roles */

[S2] Problem getting CRUD example to work from Struts2 Showcase Application

2007-04-19 Thread Nicolas
Hi List, I started a new project, where I wanted to get only the CRUD example from the Struts2 Showcase to work (That's the one with Employees and Skills). So I copied all necessary files over to my new project. Deployment of the CRUD application works well (I used Maven to package the war)

[S2] JSON Plugin and No Result Defined

2007-04-19 Thread Kyle Adams
I suspect my problem is something obvious, the type that makes committers fire off please read the list! e-mails... But I've been searching through the list and haven't had any luck. Apologies in advance. I'm using the JSON plugin. As a sanity check, I tried to get the JSONExample listed at

[S2]Accessing a Bean within a Bean in my jsp

2007-04-19 Thread Skip Hollowell
I am not sure if this is possible, but can I access a bean within a bean, and grab fields from it within my jsp? The AccountBean named account has a Customer Bean named customer, and I want the first name of that Customer. s:property value=account.customer.firstName/ returns null every time.

Re: Migrating to Struts 2

2007-04-19 Thread Shahak Nagiel
First question: Why are you looking to migrate? My general opinion on foundational upgrades like this is, don't fix it if it ain't broke. I wouldn't necessarily agree that Struts (1 or 2) is geared towards form-heavy apps. I'd say it's a powerful and flexible manifestation of the MVC design

Re: [S2] JSON Plugin and No Result Defined

2007-04-19 Thread Musachy Barroso
Is there any other error in the logs, while the app is loading? Everything looks fine to me. I've found that the Config Browser plugin helps me a lot to debug this kind of problems. regards musachy On 4/19/07, Kyle Adams [EMAIL PROTECTED] wrote: I suspect my problem is something obvious, the

Re: [S2] JSON Plugin and No Result Defined

2007-04-19 Thread Kyle Adams
Kyle Adams wrote: I had to make a few modifcations that should probably be corrected in the Confluence page, but more on that later. Just realized that I forgot to mention those modifications: * Added a package example; at the beginning of JSONExample.java * Added an import

Re: [S2] JSON Plugin and No Result Defined

2007-04-19 Thread Kyle Adams
I've fixed the original problem, but I'm not sure why the fix works... I had to change my action name to title case: action name=Item class=com.gfs.item.webapp.action.ItemAction Is the requirement for a title cased action name specific to the JSON plugin? Other Struts 2 examples have their

Re: [S2] JSON Plugin and No Result Defined

2007-04-19 Thread Musachy Barroso
The JSON plugin doesn't really know about that :) musachy On 4/19/07, Kyle Adams [EMAIL PROTECTED] wrote: I've fixed the original problem, but I'm not sure why the fix works... I had to change my action name to title case: action name=Item class=com.gfs.item.webapp.action.ItemAction Is

Redirecting response in Interceptor beforeResult

2007-04-19 Thread Shahak Nagiel
I'm trying to put together an SSL interceptor that does essentially two things: (1) In intercept(), check the method and scheme; if it's an http (non-ssl) GET, then redirect to the SSL version of the page. (2) In beforeResult(), check the scheme and result: if it's an https (ssl) and success,

Re: S2: Autocompleter and focus

2007-04-19 Thread Scott Nesbitt
I do use the visible, nameless one to hold the value. However, though I can set the value on it, it ignores my request for focus(). So are you are saying I should ask this in the Dojo area? Thanks, Scott --- Musachy Barroso [EMAIL PROTECTED] wrote: One has the ${name} you entered in the

RE: [s2] checkboxlist tag problem

2007-04-19 Thread Hartrich, James CTR USTRANSCOM J6
Looks like you need s:checkboxlist name=user.roles instead of name=user.roles.roleId. Be sure roles is set on the user object from the action. I'm doing two collections. #1 for the full list of checkboxes and #2 for the boxes I want pre-checked. What are you doing with the attribute id=roles?

Re: [S2] JSON Plugin and No Result Defined

2007-04-19 Thread Kyle Adams
Musachy Barroso wrote: I've found that the Config Browser plugin helps me a lot to debug this kind of problems. I'll have to look into that plugin. In the meantime, I think I've got it figured out. I had Struts' zero config feature enabled in my web.xml: init-param

Re: S2: Autocompleter and focus

2007-04-19 Thread Musachy Barroso
IMO you might get better help on the Dojo forum. You should also check Dojo's code for ComboBox as I know they are hooking listeners to the focus events. Another suggestion is to try what you are doing on a simple page using Dojo's widget, without Struts, that way you will know if it is a Dojo

Please help me get started

2007-04-19 Thread Session A Mwamufiya
Hello, I tried following the Struts 2 bootstrap tutorial, but even the first piece looks like Martian to me. Could someone please give me a step by step approach to setup struts 2 (like 1. move this file to here, 2. do this, ...), because the tutorial itself requires a tutorial to understand

Re: Please help me get started

2007-04-19 Thread Musachy Barroso
You might want to start by creating a project using the maven archetype: http://struts.apache.org/2.0.6/docs/struts-maven-archetypes.html regards musachy On 4/19/07, Session A Mwamufiya [EMAIL PROTECTED] wrote: Hello, I tried following the Struts 2 bootstrap tutorial, but even the first

Initializing Struts

2007-04-19 Thread Lavezzo Joseph F
I just upgraded to the Struts 1.3.8 and I am having problems with initializing the struts servlet. Below is the error message, web.xml and struts-config.xml *Error Message 07/04/19 14:28:53 Started 07/04/19 14:28:57 rtr: jsp: init 07/04/19 14:28:58 rtr: action:

Re: Please help me get started

2007-04-19 Thread Dave Newton
--- Musachy Barroso [EMAIL PROTECTED] wrote: On 4/19/07, Session A Mwamufiya Could someone please give me a step by step approach to setup struts 2 (like 1. move this [...] You might want to start by creating a project using the maven archetype: Bootstrap includes creating an app via Maven.

Re: Please help me get started

2007-04-19 Thread Shahak Nagiel
Are you comfortable (at least to some degree) with all the technologies discussed in the Primer (http://struts.apache.org/primer.html)? If not, that's probably a good place to start. If you want/need a lot of hand-holding, your best bet is probably a good book (which tend to go into a lot

Re: Please help me get started

2007-04-19 Thread Musachy Barroso
Seems like someone hasn't been looking at the bootstrap (me) :) musachy On 4/19/07, Dave Newton [EMAIL PROTECTED] wrote: --- Musachy Barroso [EMAIL PROTECTED] wrote: On 4/19/07, Session A Mwamufiya Could someone please give me a step by step approach to setup struts 2 (like 1. move this

Re: Please help me get started

2007-04-19 Thread Dave Newton
--- Shahak Nagiel [EMAIL PROTECTED] wrote: Problem is, Struts 2 is still too new and I don't think any books cover it. However, there are books out there for Struts 1 (e.g.

Re: Please help me get started

2007-04-19 Thread Shahak Nagiel
You're right, but I recommend it simply for the sake of learning a similar technology (I'm coming from several years in an S1 environment and having to essentially re-learn everything). WebWork is clearly far closer to what S2 is. - Original Message From: Dave Newton [EMAIL

Re: html:text autocomplete=off possible?

2007-04-19 Thread Skip Hollowell
john lee-15 wrote: for regular html, input type=text autocomplete=off but, how to set it in struts html:text ? i checked the reference of html:text, it does not have autocomplete this attribute, what is the equivalent of that? tks in advance john John, since I

RE: Initializing Struts

2007-04-19 Thread Lavezzo Joseph F
Updated Error Message: 2007-04-19 15:38:49 ERROR [ActionServlet - initServlet] - The /WEB-INF/web.xml was not found. java.net.UnknownHostException: java.sun.com at org.apache.commons.digester.Digester.createSAXException(Digester.java:31 81) at

Re: Initializing Struts

2007-04-19 Thread Harring Figueiredo
Hi Joseph, Check the expanded directory of you web application (in Tomcat, it is under $CATALINA_HOME/webapps). See if the war file was indeed fully expanded (unzipped). This could be the cause of the problem. If you are using Windows, Tomcat has trouble re-deplying due to file locking. This

RE: html:text autocomplete=off possible?

2007-04-19 Thread Rod Bollinger
Hi John, The autocomplete attribute of the input tag is not standard - it is not specified by the W3C and is supported only on IE5.0+ and Safari 1.0+. This is most likely why you will not find support for it in the Struts tags. I would caution against using non-standard attributes if you want

Re: Need help in client side validation in Struts 2.0

2007-04-19 Thread Laurie Harper
arunabh wrote: hi, If somebody have some information about client side validation in Stutrs2. 0 then send me .I am in a desperate need of the same . thanks Arunabh Well, you could start with the documentation: http://struts.apache.org/2.x/docs/validation.html

Re: html:text autocomplete=off possible?

2007-04-19 Thread john lee
skip, tks u so much, it works john Skip Hollowell [EMAIL PROTECTED] wrote: john lee-15 wrote: for regular html, input type=text autocomplete=off but, how to set it in struts html:text ? i checked the reference of html:text, it does not have autocomplete this attribute,

Re: Migrating to Struts 2

2007-04-19 Thread Laurie Harper
I definitely agree. I would add that, if you're unsure how much benefit you will derive from a move to Struts, the best answer might be to select a vertical slice of your existing application and try migrating just that. It should be possible to get Struts running side-by-side in your existing

RE: Migrating to Struts 2

2007-04-19 Thread Geffrey Caruso
Right that is my worry. That migrating will be basically starting from scratch which we definitely do not want to do. We are going to be adding a lot of new feature in the near future but I don't want to expend a huge effort to get into Struts just to say we are in struts. I'm looking for

Re: Using jsps from another context

2007-04-19 Thread Laurie Harper
Rajesh Gupta wrote: Laurie Harper laurie at holoweb.net writes: Rajesh Gupta wrote: Hi All, I have several common jsp's in a common webapp, which will be shared by all other web applications. I use c:import tag to include jsp's from this common webapp. I can include jsp's , if they do

Re: Migrating to Struts 2

2007-04-19 Thread Shahak Nagiel
I don't think there's some magic threshold, before which Struts is overkill and beyond which Struts is a no-brainer. For a very small application (couple of servlets, a handful of JSP's, etc.), Struts is most likely overkill, especially for someone who's never used it before and has at least

[S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Crawford, Preston
So I'm helping my company clean up some JSP files, things like that and I'm seeing declarations like this. %@ taglib uri=/bean prefix=bean % %@ taglib uri=/html prefix=html % Now I know there is a way to do these same declarations (we're on struts 1.2.9) without actually having to install the

Re: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Paul Benedict
On 4/19/07, Crawford, Preston [EMAIL PROTECTED] wrote: So I'm helping my company clean up some JSP files, things like that and I'm seeing declarations like this. %@ taglib uri=/bean prefix=bean % %@ taglib uri=/html prefix=html % The ability to automatically find TLD files is a feature of

Re: Struts2, Tiles2 and Container Managed Security

2007-04-19 Thread Torsten Römer
I still haven't got this to work and I am starting to wonder: Am I too dumb or is it at all possible to refer to an action or a Tiles definition in form-login-config? In Struts1 apps I can put a .do action in there - what is the difference to Struts2? Is it the S1 ActionServlet vs. the S2 filter?

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Crawford, Preston
Yeah, actually I was the guy (way back when) who helped define those TLDs in the web.xml. Now I'm back on contract and want to clean up my work. I would like to just refer to the dtd in the URI and forgo having the TLDs located in the build process. We use WebSphere 6.1, so this should be fine.

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Crawford, Preston
Oh, I just remembered something. There might be overhead/risk to jsps hitting the dtd on the Internet vs. the local tld, no? Preston -Original Message- From: Crawford, Preston [mailto:[EMAIL PROTECTED] Sent: Thursday, April 19, 2007 3:27 PM To: 'Struts Users Mailing List' Subject: RE:

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Dave Newton
--- Crawford, Preston wrote: Yeah, actually I was the guy (way back when) who helped define those TLDs in the web.xml. Now I'm back on contract and want to clean up my work. That'll teach ya' ;) I would like to just refer to the dtd in the URI and forgo having the TLDs located in the

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Dave Newton
--- Crawford, Preston wrote: Oh, I just remembered something. There might be overhead/risk to jsps hitting the dtd on the Internet vs. the local tld, no? I'm not sure that that's what the URI really does; they *look* like URLs but I think they're just look-up values to find the corresponding

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Crawford, Preston
That's my impression, the part about not being able to find it locally. Part of what I was thinking of doing is not having the tld's locally available. But it occurs to me that then it might spin out to the Interwebs whenever it compiles a JSP page. Trying to find a reference on this to get a

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Crawford, Preston
One last question. Do I use strut-el.jar or struts.jar? Preston CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Crawford, Preston
Nevermind, I think the answer is both if I remember correctly. Preston CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Crawford, Preston
Although I can't remember if I need struts-el if all I want is jstl + the new version of Struts. Dang, I've had my head in Struts 2, Spring, JSF for too long. Preston -Original Message- From: Crawford, Preston [mailto:[EMAIL PROTECTED] Sent: Thursday, April 19, 2007 4:26 PM To: 'Struts

Re: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Niall Pemberton
Dave is correct since Servlet 2.3/JSP 1.2 TLD files no longer have to be specified in the web.xml - they can be auto-discovered if they're in the web applications resource path which includes the META-INF section of jar files - Struts ships the TLDs in its jars so you don't have to specify this.

Re: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Niall Pemberton
Struts EL is for Servlet 2.3 containers only (provided to give people the opportunity to start using EL before it was included in the standard for containers) - you can't use it in Servlet 2.2 and you don't need it in Servlet 2.4 (its part of Servlet 2.4/JSP 2.0 Spec). Niall On 4/20/07,

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Crawford, Preston
Ah, thank you very much. I have never had to use those. I went straight from Struts 1.1 to other frameworks, now I'm back on Struts, so I must have missed that phase or else wasn't doing configuration at the time. I suppose that means I don't need anything in the struts-el directory, then.

Re: Please help me get started

2007-04-19 Thread Ted Husted
To sum up, * http://struts.apache.org/index.html#Newbies -T. On 4/19/07, Session A Mwamufiya [EMAIL PROTECTED] wrote: Hello, I tried following the Struts 2 bootstrap tutorial, but even the first piece looks like Martian to me. Could someone please give me a step by step approach to setup

http://cwiki.apache.org/WW/crud-demo-i.html source code / war

2007-04-19 Thread akmore
I want to look at the Struts 2 CRUD example code referred to on the page http://cwiki.apache.org/WW/crud-demo-i.html Can somebody please point me to the link to the .zip file for the war? Thank you. -- View this message in context:

[S1] Problem with nested objects?

2007-04-19 Thread David Conrad
Hello. I'm a bit of a newbie with Struts, and I'm running into some problems with a form that has a nested java bean, which in turn has a list of java beans. I had a version of this working when there wasn't so much nesting, but something has gone awry, I think. The form, PriceQuoteForm, has two

Struts2 Tabbedpanels in mozilla

2007-04-19 Thread Jason Wyatt
Hi, I'm attempting to use the experimental Struts 2 tabbedpanel tag... It looks like just what's needed for our current project, which is designed to use nested tabs throughout. The tabbedpanel works fine for IE, however the other of our customer's standard browsers, mozilla, is only almost

Re: Struts2 Tabbedpanels in mozilla

2007-04-19 Thread Musachy Barroso
I could try to fix it, if you give me more details. What version of mozilla are you using? On what OS? Can you post an small section of your JSP page to reproduce the problem? When you try the examples in the Showcase application, do they render properly in mozilla? regards musachy On 4/19/07,

[S2] RestfulActionMappers and Namespace

2007-04-19 Thread Kyle Adams
Do either of the RestfulActionMappers support namespaces? Either they don't, or I'm mucking something up. Kyle -- View this message in context: http://www.nabble.com/-S2--RestfulActionMappers-and-Namespace-tf3610682.html#a10090004 Sent from the Struts - User mailing list archive at

[S1] Is JSTL 1.1 compatible with Struts 1.2.9?

2007-04-19 Thread Crawford, Preston
Anyone know? I know Struts 1.2 comes with JSTL 1.0. I read somewhere that you have to use JSTL 1.1 with a 2.4 container, which is what we have. I just need to figure out what version of JSTL we can/should run. Preston CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for

RE: Struts2 Tabbedpanels in mozilla

2007-04-19 Thread Jason Wyatt
Hi Musachy, I'm using Mozilla 1.6 on Windows XP (2002 version). Good idea about the showcase... http://localhost:8080/web/ajax/tabbedpanel/example1.jsp - shows the problem, where in the first pane the text This is the first pane is stuck to the right of the tabs, almost like another tab.

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Crawford, Preston
Wow. Except this URI can't be found. Umm Hmmm.. Preston -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, April 19, 2007 3:42 PM To: Struts Users Mailing List Subject: RE: [S1] The proper way to define taglibs in a jsp file --- Crawford, Preston wrote:

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Dave Newton
--- Crawford, Preston wrote: Wow. Except this URI can't be found. Umm Hmmm.. You can check what URI it's expecting by looking in the TLD file(s). d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Crawford, Preston
I did. It's expecting the one you listed. I just get a Not Found error if I go there. I tried declaring it inside the web.xml instead (newly converted to 2.4) and that doesn't work either. Preston CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of

Re: Struts2 Tabbedpanels in mozilla

2007-04-19 Thread Musachy Barroso
Are you, or your clients stuck on Mozilla 1.6? I just tried on Mozilla 1.7.13 and its working ok. I'd suggest downloading Dojo 0.4.1 and taking a look at their tabs example (under test/widget), if you see the same problem then it is a Dojo bug on that version of Mozilla, and there isn't much we

Re: [s2] checkboxlist tag problem

2007-04-19 Thread Zoran Avtarovski
The id attribute is for some JavaScript that will run once I get over this little hurdle. Do you mind sending me a copy of your domain object, action code and jsp file. I'm getting nowhere here and it's becoming quite frustrating. The issue I'm having now is that if I have no checkboxes selected

How to set filter in Struts2?

2007-04-19 Thread red phoenix
I want to set a filter,then I set different character code by this filter,such when a request from a1.action,I will set this character code is UTF-8,a request from a2.action,I will set this character code is ISO88591,and so on.I don't know how to realize above function in filter? Anybody could

Re: How to set filter in Struts2?

2007-04-19 Thread Drew Kutcharian
Can you use different filters/filter mappings for different URL patterns? Drew Kutcharian Venarc Inc. www.venarc.com - Original Message From: red phoenix [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, April 19, 2007 7:58:47 PM Subject: How to

RE: Struts2 Tabbedpanels in mozilla

2007-04-19 Thread Jason Wyatt
Ok, thanks Musachy. One thing I noticed when looking at the tabbedpanel examples in the showcase... The ones that render correctly in Mozilla all had the cssStyle and doLayout tag parameters set, eg: s:tabbedPanel id=test2 theme=simple cssStyle=width: 500px; height: 300px; doLayout=true Whereas

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Karr, David
You can search through all your documentation, but there's a more direct (some might say indirect, but whatever) way. Open up the jar file that the taglib refers to, using winzip, the Eclipse Zip Editor, or whatever. Select the TLD file. Open it into a plain text editor. Find the uri element.

Re: How to set filter in Struts2?

2007-04-19 Thread red phoenix
Would you give me a simple code for it? On 4/20/07, Drew Kutcharian [EMAIL PROTECTED] wrote: Can you use different filters/filter mappings for different URL patterns? Drew Kutcharian Venarc Inc. www.venarc.com - Original Message From: red phoenix [EMAIL PROTECTED] To: Struts

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Karr, David
As Dave Newton said, these are URIs, not URLs. A URI is just an identifier, nothing more. In any case, all it does is match that URI to the URI in a TLD in one of the jar files in the classpath. It doesn't need to go to the internet for any of this. -Original Message- From: Crawford,

Re: How to set filter in Struts2?

2007-04-19 Thread Drew Kutcharian
UTF-8 Filter: public class UTF8Filter implements Filter { public void init(FilterConfig config) throws ServletException { } public void destroy() { } public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException,

  1   2   >