Re: How would you solve this problem?

2005-11-17 Thread Michael Jouravlev
On 11/17/05, Preston CRAWFORD <[EMAIL PROTECTED]> wrote: > the UI requirement is that the user perform the > search and then (as transparent as possible to them) have the page > refresh the portions of the display that say what medical provider is > currently selected. Ajax? > Basically we want a

Re: Posting from 1JSP to 2Actions and 2Forms

2005-11-17 Thread Michael Jouravlev
Umm, no. I remember I did some experiments with action chaining with different scopes. I either defined forms for both actions or as a second option I did not define one of the forms. I do not remember were these forms with the same name or not. I cannot find the results. You might try it yourself

Re: Is Shale the way forward?

2005-11-17 Thread Craig McClanahan
On 11/17/05, pc leung <[EMAIL PROTECTED]> wrote: > > As you memtion "JSF over Struts 1.x is definitely on the upswing", > why to use shale? why not just MyFaces? any additional value added by > shale? "MyFaces" means two different things -- the JSF implementation and the Tomahawk components. As

RE: Action.execute() only being invoked the first time a url is requested ??!!!

2005-11-17 Thread Vishal Dalal
Hi, sorry for intervening. Actually my query is realted to the Caching part... Actually i wanted to ask, do placing all these paramteres actually guarantee that the page will be cached, because i think not. I myself have tried writing all this code in the page. Then when you go forward from this

Re: Is Shale the way forward?

2005-11-17 Thread pc leung
As you memtion "JSF over Struts 1.x is definitely on the upswing", why to use shale? why not just MyFaces? any additional value added by shale? Thanks On 11/18/05, Craig McClanahan <[EMAIL PROTECTED]> wrote: > On 11/17/05, pc leung <[EMAIL PROTECTED]> wrote: > > > > I have the same question too.

Re: Action.execute() only being invoked the first time a url is requested ??!!!

2005-11-17 Thread atta-ur rehman
Hi, Most probably your page is gettnig cached by the browser. try or <% response.setHeader("pragma", "no-cache"); response.setHeader("Cache-Control", "no-cache"); response.setHeader("Cache-Control", "no-store"); response.setDateHeader("Expires", 0); %> to keep your browser from caching t

[shale] Heads up if building Shale from source

2005-11-17 Thread Craig McClanahan
Recent commits to the Shale build environment have updated two dependencies: * Commons Validator (1.1.4 --> 1.2.0) * Apache MyFaces (1.1.0 --> 1.1.1) If you are checking out the source yourself, and using the Ant build scripts, you will want to run "ant download-dependencies" to pick up the most r

Re: Is Shale the way forward?

2005-11-17 Thread Craig McClanahan
On 11/17/05, pc leung <[EMAIL PROTECTED]> wrote: > > I have the same question too. > Next month, Craig will deliver a speech at ApacheCon. > After that it will be more clear. ;-) > > In documentation web page, several features contains 'FIXME' only. > But there are several jsf demo out there. > If

Action.execute() only being invoked the first time a url is requested ??!!!

2005-11-17 Thread Mon Cab
For Example if I type in my browser address bar: http://127.0.0.1:8080/webapp/userSignup.do?action=whatever The first time, I type this in, this invokes the execute method of my Action class (I'm using System.out ("Action execute Invoked") in Action execute to test this). If I then enter the ex

Re: Is Shale the way forward?

2005-11-17 Thread pc leung
I have the same question too. Next month, Craig will deliver a speech at ApacheCon. After that it will be more clear. ;-) In documentation web page, several features contains 'FIXME' only. But there are several jsf demo out there. If there is a installation guide and a sample web app which shows h

How would you solve this problem?

2005-11-17 Thread Preston CRAWFORD
Okay, this is a little complex, so hopefully I can describe it well so as not to confuse anyone. We have a need for the following. We need a reusable set of actions, JSPs, etc. that operate in a popup to allow the user to search for a medical provider. That's easy enough. The catch is this. The r

Is Shale the way forward?

2005-11-17 Thread Preston CRAWFORD
It appears that way. I've been so heads-down doing Struts alone that I hadn't really noticed this change in direction. I applaud the Struts team for being nimble and picking a direction while keeping backwards compatability. My question, though, is how many of you out there are actually beginning t

Re: Posting from 1JSP to 2Actions and 2Forms

2005-11-17 Thread Oleg
Michael, I tried that, however it seems to work only if actions are using same ActionForm if lets say each action uses its own form, the second action gets the form with its original values (from session) without any changes taken from the JSP page. Any ideas? Thanks Oleg On 11/16/05, Oleg <[EMAI

Re: [Help] I18N does not work and I think I have tried all ....

2005-11-17 Thread Lixin Chu
1. I use this to set the locale: request.getSession().setAttribute(Globals.LOCALE_KEY, Lcoale.JAPANESE); 2. yes, properties file has some. 3. the whole page is in english - To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: ArrayList, Arrays and

2005-11-17 Thread Michael Jouravlev
On 11/17/05, Jon Wynacht <[EMAIL PROTECTED]> wrote: > Hi, > > I have a question that might have already been answered but I wasn't > sure how to search for the answer, etc. so I'll ask it and take the > abuse, if given ;-) > > I have a form which is set up to have N number of line items. > Initia

[ANN] Struts Dialogs 1.24 is released

2005-11-17 Thread Michael Jouravlev
[In brief] * event-to-handler mapping now can be defined in struts-config.xml file; * Action class does not need to extend SelectAction or DialogAction anymore to employ their dispatching features. Quick link: http://struts.sourceforge.net/strutsdialogs Download: https://sourcefor

Re: [Help] I18N does not work and I think I have tried all ....

2005-11-17 Thread Yujun Liang
or doesn't matter. Only button.add in English or everything is in English for the page? 1. How do you construct the . in the following statement? session.setAttribute("org.apache.struts.action.LOCALE", .) 2. Do you have button.add=加えなさい in your *_ja.properties? Regards On 11/18/05,

Re: [Help] I18N does not work and I think I have tried all ....

2005-11-17 Thread Lixin Chu
that's right, they are the same. now I follow Laurie's suggestion and found that request.getLocale() always return 'en' - regardless locale='true' or 'false' setting. how does this happen ? - To unsubscribe, e-mail: [EMAIL PROTE

Re: ArrayList, Arrays and

2005-11-17 Thread Laurie Harper
Jon Wynacht wrote: ... You see, when I iterate through the ArrayList, I do something like this: value=" .. For starters, the just gives me a lot of <> stuff. My taglibs are all good as I've tested the outside of the value="" and it works fine. ... Well, nesting tags that way

Re: [Help] I18N does not work and I think I have tried all ....

2005-11-17 Thread Laurie Harper
Globals.LOCALE_KEY is a String constant with the value "org.apache.struts.Globals.LOCALE_KEY" so yes, the hashcode would be the same in either case. That's not it... L. Yujun Liang wrote: > 1. > request.getSession().setAttribute(Globals.LOCALE_KEY, locale); > > I use org.apache.struts.Globals.LO

Re: Struts and SEO

2005-11-17 Thread netsql
You can have a nighly job that creates plain jsp's per content, that link/redirect to your dynamic content. You can have mutiple domains/boxes with this "static/artifical" content, thus increasing ranking. ( I write async. jobs in Groovy myself... you can use Python or .. grrr... Java) When rob

Re: [Help] I18N does not work and I think I have tried all ....

2005-11-17 Thread Yujun Liang
1. request.getSession().setAttribute(Globals.LOCALE_KEY, locale); I use org.apache.struts.Globals.LOCALE_KEY and it works, is the hashcode of org.apache.struts.action.LOCALE same as I use org.apache.struts.Globals.LOCALE_KEY? 2. Do you have button.add=加えなさい in your *_ja.properties? Regards On

Re: [Help] I18N does not work and I think I have tried all ....

2005-11-17 Thread Lixin Chu
I set to ja in the session; I removed locale="true" from JSP but the result is the same. Browser encoding is set to UTF-8. When I 'view source' in the browser, I saw if I set to Chinese. But I do not see this : is this ok ? ---

Ich bin im Urlaub

2005-11-17 Thread bednarz
Sehr geehrte Damen und Herren, in der zeit vom 7. November 2005 bis 18. November 2005 bin ich im Urlaub. Bitte wenden Sie sich bei allen Fragen entweder direkt an [EMAIL PROTECTED] oder telefonisch an: 0511 / 93 62 28 22 Mit freundlichen Grüßen Andreas Bednarz

ArrayList, Arrays and

2005-11-17 Thread Jon Wynacht
Hi, I have a question that might have already been answered but I wasn't sure how to search for the answer, etc. so I'll ask it and take the abuse, if given ;-) I have a form which is set up to have N number of line items. Initially, there is only one item in the form, which stores all

Struts and SEO

2005-11-17 Thread Tony Santinello
All, I'm currently working on a site that uses Struts. One of the priorities of the site was to make it highly flexible to the changing needs of our customer base. Search Engine Optimization was not a priority at the time of development. Now it is. Our rankings on search engines, like Google,

RE: Message Resources from DB

2005-11-17 Thread Brian Russell
Actually I saw that one and never was able to get it running. And you are certainly right that I wouldn't want to have any jndi or sql references in my struts config. -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Thursday, November 17, 2005 5:15 PM To: Struts Users

RE: Message Resources from DB

2005-11-17 Thread Mick Knutson
I got one of these solutions out and it talks about setting up the resource like this: 1. I do not want to put jndi information in my struts 2. I do not want to put any SQL or SQL-Like pieces into my struts. So, is there a way to configure this to call a Service Object instead of the "JN

RE: i18n Issue for Chinese Locale.

2005-11-17 Thread Balasubramaniam, Sezhiyan
I tried putting head:meta tag and still the issue is there. I attached the output html. 亲爱的 Thanks a lot Jason for the help. -Original Message- From: Jason Lea [mailto:[EMAIL PROTECTED] Sent: Thursday, November 17, 2005 12:41 PM To: Struts Users Mailing List Subject: Re: i18n

Updating ActionForm from indexed properties

2005-11-17 Thread Mulligan, Scott H
My actionForm has an ArrayList of objects that I display in my JSP for update using indexed properties (see below JSP code): My Action Form looks like this: public ArrayList getObjectCollection() {return

Re: No getter method servlet Exception. using DynaActionForm

2005-11-17 Thread fea jabi
yes, it was a typo for which I paid bigtime. Also, after correcting my jsp to use name="SetupForm" for all the textboxes and checkboxes in JSP. Everything worked just like that. Thanks you all for helping me working with dynaactionforms. Thanks again. From: Laurie Harper <[EMAIL PROTECTED]

Re: html:rewrite with params

2005-11-17 Thread Laurie Harper
Thomas Hamacher wrote: Laurie, thank you so for. This makes sense to me. But the problem is, that I don´t really have a source-url, as it is used in the examples. I´m using tiles and therefor I have to work with definitions. I guess, I cannot add any definition as a source, can I? Sure you c

Re: How to make a preview

2005-11-17 Thread Michael Jouravlev
On 11/17/05, Jesper Preuss <[EMAIL PROTECTED]> wrote: > Hi ! > > Hi have a web project using struts. > > My homepage have an administrator module. Where you can change pictures, > CSS/colors, page texts and more. > Now you can save Submit->"save" a form. Here you have saved all the new > CSS colors

Re: [Help] I18N does not work and I think I have tried all ....

2005-11-17 Thread Laurie Harper
Lixin Chu wrote: Hi All, appreciate any help here ...This is what I have done in trying to show strings in the selected language: - I have various /WEB-INF/classes/ApplicationResources.properties files, for example APplicationResoruces_ja.properties - in struts-config.xml, I have: - in w

Re: i18n Issue for Chinese Locale.

2005-11-17 Thread Jason Lea
Everything looks good. UTF-8 is fine for Chinese. You are getting 9 bytes as a result, which is what you should get for UTF-8 encoding, which is good. But it seems the browser isn't reading it as UTF-8 and just displaying the bytes instead under the default ISO encoding. Try adding this

Re: html:rewrite with params

2005-11-17 Thread Laurie Harper
Or perhaps for the new Cookbook? Frank W. Zammetti wrote: I just wanted to point out the 3rd question on this page: http://husted.com/struts/FAQ/view-i18n.htm Laurie, your a committer now... this seems to me like a good inclusions for the Actions package. Any thoughts from anyone? Frank L

Re: How to make a preview

2005-11-17 Thread Laurie Harper
Mark means, I expect, a request parameter. There is nothing Struts specific to this, you just need to arrange for pages loaded in the popup window to somehow determine they should render in 'preview' mode. The easiest way is to include a request parameter, and make sure that whereever you gener

Re: Custom tags referencing struts tags

2005-11-17 Thread Laurie Harper
Craig McClanahan wrote: On 11/17/05, David Whipple <[EMAIL PROTECTED]> wrote: I would like to be able to create a custom tag which is able to use the struts , or fields. I am not able to find a way to create a tag library that can produce/call/reference other tags. You didn't miss anything

Re: Form Bean population

2005-11-17 Thread Laurie Harper
Marcio Ghiraldelli wrote: I need to populate a a form-bean with a collection for an instance. Wich is the better place to do it: 1) Into the form-bean reset() method or 2) In an Action before the jsp call The recommended place to do it is in an action, though some do prefer

Re: i18n Issue for Chinese Locale.

2005-11-17 Thread Martin Gainty
UTF-8 doesnt support DBCS but UTF-16 does Good Luck, - Original Message - From: "Balasubramaniam, Sezhiyan" <[EMAIL PROTECTED]> To: Cc: <[EMAIL PROTECTED]> Sent: Thursday, November 17, 2005 2:52 PM Subject: i18n Issue for Chinese Locale. Hi, We use STRUTS 1.0.2 in one of our extr

Re: Using Dates in a ActionForm

2005-11-17 Thread Laurie Harper
The problem is the use of a Date type for the form property. The first thing Struts does is populate the form bean from the request; this has to happen before validation, so the validation has a form to work with. This is one of the many reasons it's recommended to make your form bean properti

Re: Getting MessageResource in ActionForm

2005-11-17 Thread Laurie Harper
Jadeler wrote: What is the recommended way of getting the default message resource bundle in the validate() of the ActionForm? Thanks. http://struts.apache.org/struts-doc-1.2.7/api/org/apache/struts/action/Action.html#getResources(javax.servlet.http.HttpServletRequest) L. -

i18n Issue for Chinese Locale.

2005-11-17 Thread Balasubramaniam, Sezhiyan
Hi, We use STRUTS 1.0.2 in one of our extranet application and we need to support CHINESE locale as part of the scope. I used the following steps as Laurie pointed out in the earlier mail, but somehow the character set is getting corrupted and we are not getting the right result. Can Lauri

Re: No getter method servlet Exception. using DynaActionForm

2005-11-17 Thread Laurie Harper
fea jabi wrote: By changing the form property boolean - Boolean to I am able to get the instance of the dynaactionform. is it necessary to use Boolean itself? Yep, as Dave points out, there's no such type as java.lang.boolean. It should be either just 'boolean' or 'java.lang.Boolean'. n

Re: [ot]Hashtable like fifo que?

2005-11-17 Thread erikweber
See if LinkedHashSet gives what you want. Erik -Original Message- From: Dave Newton <[EMAIL PROTECTED]> Sent: Nov 17, 2005 2:06 PM To: Struts Users Mailing List Subject: Re: [ot]Hashtable like fifo que? Hmm, weird formatting. Dave Newton wrote: > java.util.LinkedHashMap? Probably do

Re: [ot]Hashtable like fifo que?

2005-11-17 Thread Dave Newton
Hmm, weird formatting. Dave Newton wrote: java.util.LinkedHashMap? Probably doesn't do exactly what you want. Seems like it'd be easy to wrap a HashMap and LinkedList inside a composite class, though. Dave - To unsubsc

Re: [ot]Hashtable like fifo que?

2005-11-17 Thread Dave Newton
Mick Knutson wrote: I am trying to create a FIFO que that I can add items, then they fall off like a standard FIFO, but, I want to be able to get an item from the que like a Hashtable. I.E. Object obj = fifoQue.get("stringKey"); *java.util.LinkedHashMap? Dave *

[ot]Hashtable like fifo que?

2005-11-17 Thread Mick Knutson
I am trying to create a FIFO que that I can add items, then they fall off like a standard FIFO, but, I want to be able to get an item from the que like a Hashtable. I.E. Object obj = fifoQue.get("stringKey"); "MMS " made the following annotations. -

Re: 1.3 Struts Validator Plugin Bug

2005-11-17 Thread Dave Newton
Leahy, Kevin wrote: Is it also possible to set input to a tile definition? Yes. Although just trying it might have been quicker than posting to the list ;) Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: Has anybody experienced this weirdness with taglibs?

2005-11-17 Thread Aladin Alaily
Hi, Depending on the version of tomcat you've downloaded you may have servlet-api.jar & jsp-api.jar OR servlet.jar Look in: $TOMCAT_HOME/common/lib Aladin > I downloaded jboss which includes tomcat and I couldn't find these two > files: > > servlet-api.jar -> Tomcat's > jsp-api.jar -> Tom

RE: 1.3 Struts Validator Plugin Bug

2005-11-17 Thread Leahy, Kevin
Is it also possible to set input to a tile definition? -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Evans Sent: 17 November 2005 17:01 To: user@struts.apache.org Subject: Re: 1.3 Struts Validator Plugin Bug Joe Germuska Germuska.com> writes: > > By defaul

Re: [OT] RE: Can't build project because of unavailable dtd

2005-11-17 Thread Craig McClanahan
On 11/17/05, Garner, Shawn <[EMAIL PROTECTED]> wrote: > > > I'm curious of the answer you get back. > Can you post [OT] the answer back to this list. I don't know if Eclipse can do this, but you can avoid similar problems with NetBeans by registering your own copies of the DTDs into the "DTD and

Re: 1.3 Struts Validator Plugin Bug

2005-11-17 Thread Aaron Evans
Joe Germuska Germuska.com> writes: > > By default, Struts expects a path as the value to "input", not a > forward name. You must explicitly configure if you prefer to use the > forward name. > > See > http://struts.apache.org/struts-core/userGuide/configuration.html #controller_config, > s

Re: [struts faces] form-bean vs managed-bean

2005-11-17 Thread Craig McClanahan
On 11/17/05, Garner, Shawn <[EMAIL PROTECTED]> wrote: > > I was looking at the struts faces example app and was wondering what the > difference between the managed-bean and a form-bean was? > > I would think managed-beans would replace the need for form beans. In general JSF programming, this is

RE: Has anybody experienced this weirdness with taglibs?

2005-11-17 Thread Garner, Shawn
I downloaded jboss which includes tomcat and I couldn't find these two files: servlet-api.jar -> Tomcat's jsp-api.jar -> Tomcat's Can somebody help me? Are they different in jboss for some reason? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alad

[OT] RE: Can't build project because of unavailable dtd

2005-11-17 Thread Garner, Shawn
I'm curious of the answer you get back. Can you post [OT] the answer back to this list. Shawn -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Lionel Sent: Thursday, November 17, 2005 5:16 AM To: user@struts.apache.org Subject: Re: Can't build project because of unavai

Re: Custom tags referencing struts tags

2005-11-17 Thread Craig McClanahan
On 11/17/05, David Whipple <[EMAIL PROTECTED]> wrote: > > > I would like to be able to create a custom tag which is able to use the > struts , or fields. I am not able > to find a way to create a tag library that can produce/call/reference > other > tags. You didn't miss anything ... that strat

Re: Is Struts supports indexed property like itemForSale[1].lineDetail[4].selected ... I searched but haven't found how?

2005-11-17 Thread David Gagnon
Thanks for the info! I'll have a look ! Best regards /David Niall Pemberton wrote: As Rahul points out the "nested" taglib should do what you want. Validator doesn't support two levels like this - one option would be to use the "extends" validator I wrote: http://www.niallp.pwp.blueyonder.co

Re: No getter method servlet Exception. using DynaActionForm

2005-11-17 Thread Dave Newton
fea jabi wrote: By changing the form property boolean - Boolean to I am able to get the instance of the dynaactionform. is it necessary to use Boolean itself? Well, it's certainly better than java.lang.boolean, which doesn't exist. One of the fun non-orthagonality aspects of Java. Withou

Re: Newbie problem with "Nested" tag library

2005-11-17 Thread ALEX HYDE
I don't think you're referencing your beans properly. I've never seen that syntax before :O) but I'm pretty new to this. This version does just use tags: It uses as an 'iterator' tag to loop, and an 'out' tag to output your value. You nest the out tag inside of the iterate tag and it will ou

Re: Newbie problem with "Nested" tag library

2005-11-17 Thread Gaet
HI, I found the solution and it was just missing the element. Here is the complete stuff : - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: Newbie problem with "Nested" tag library

2005-11-17 Thread Gaet
With the code : And, this not : Syntax not accurate... :O| --- Gaet <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I currently want to display a value with struts's > tags instead w

Re: Newbie problem with "Nested" tag library

2005-11-17 Thread Gaet
Thanks Alex but i'd like to use only tags and if possible "Nested" tags Why, this works And, this not : Syntax not accurate... :O| --- Gaet <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I currently want to display a value with str

[struts faces] form-bean vs managed-bean

2005-11-17 Thread Garner, Shawn
I was looking at the struts faces example app and was wondering what the difference between the managed-bean and a form-bean was? I would think managed-beans would replace the need for form beans. They are both beans but I was wondering how they are different in this architecture? Shawn

Re: 1.3 Struts Validator Plugin Bug

2005-11-17 Thread Joe Germuska
By default, Struts expects a path as the value to "input", not a forward name. You must explicitly configure if you prefer to use the forward name. See http://struts.apache.org/struts-core/userGuide/configuration.html#controller_config, specifically the "inputForward" attribute. Joe At 2

Re: No getter method servlet Exception. using DynaActionForm

2005-11-17 Thread fea jabi
By changing the form property boolean - Boolean to I am able to get the instance of the dynaactionform. is it necessary to use Boolean itself? none of my form properties are initialized. all strings are "" and Boolean are by default from what I see thru System.out.println of form in my ac

Re: Newbie problem with "Nested" tag library

2005-11-17 Thread ALEX HYDE
You might try something along the lines of: Syntax not accurate... :O| --- Gaet <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I currently want to display a value with struts's > tags instead with "pure" > java. > Here is the code I want to translate : > > <%= > ((Employe)employesVector.

Re: Has anybody experienced this weirdness with taglibs?

2005-11-17 Thread Ed Griebel
Your web server is appending the SID to the images (and would to other links to the same webapp in the page) to track sessions, and is a common technique used by webservers to support sessions when browser clients don't support cookies. I'm a little fuzzy on how exactly this works because it "Just

Re: Has anybody experienced this weirdness with taglibs?

2005-11-17 Thread brenmcguire
I think this "problem" resides in the rewrite of the URL that Struts makes. Each time an URL is encountered (or an action path, or something similar) an URL rewrite happens. Now, if there is no session cookie activated (I mean in the HTTP-request), or cookies are disabled, then it appends the SID a

Re: Has anybody experienced this weirdness with taglibs?

2005-11-17 Thread ALEX HYDE
Aladin, I'm no expert so I can't tell exactly what's wrong from what you're saying. Have u ripped out those url's to the images (with and without SID) and just tried them in a browser direct? Make sure it can find them and see if it serves them up in both cases. If it can't find them with a SID at

1.3 Struts Validator Plugin Bug

2005-11-17 Thread Aaron Evans
Following the example validator application, I make a simple action config like so: I have the validator plugin turned on and validating the form. If I submit it with no form values filled in,

Re: Has anybody experienced this weirdness with taglibs?

2005-11-17 Thread Aladin Alaily
Hmmm... that's interesting. It looks as though I have no control on whether or not the SID is appended. The first time my page is loaded, the SID is appended and the images & links don't resolve. If I reload the page, the SID are removed and everything resolves. I am using Tomcat 5.5.12 and the

Re: Has anybody experienced this weirdness with taglibs?

2005-11-17 Thread ALEX HYDE
It works for me. I would guess that this is pretty standard HTTP to be honest. It should resolve the images by stripping off any unnecessary SID info' etc, if you don't use it for security checking for example. I thought that the requests for images are exactly the same as a request for any other

Re: Has anybody experienced this weirdness with taglibs?

2005-11-17 Thread Aladin Alaily
That's not normal... If you add the semi-colon and the jsessionid to an image src, then the image is not going to resolve properly. That's the behaviour that I'm noticing - with the jsessionid, the links & images don't resolve. Aladin > That's normal. What's wrong with that? > > --- Aladin Al

Re: How to make a preview

2005-11-17 Thread Martin Gainty
Jesper- when you construct your URL be sure to supply your Query parameter e.g. protected void set(String protocol, String host, int port, String authority, String userInfo, String path, Str

Newbie problem with "Nested" tag library

2005-11-17 Thread Gaet
Hi everybody, I currently want to display a value with struts's tags instead with "pure" java. Here is the code I want to translate : <%= ((Employe)employesVector.elementAt(i)).getEmploiservice().getEmploi().getLib ellelong() %> I have tried to translate with nested library as it seems to be

Re: Donwload files

2005-11-17 Thread Ext . Ilitia2
Thanks... it works Verdad. "Martin Gainty"

Re: Donwload files

2005-11-17 Thread Martin Gainty
you have to setContentType to application/x-download then set the Content Dispostion to attachment // Set the headers. res.setContentType("application/x-download"); res.setHeader("Content-Disposition", "attachment; filename=" + filename); // Send the file. OutputStream out = res.getOutputStream(

RE: How to make a preview

2005-11-17 Thread Jesper Preuss
Do you mean a parameter in the url. Or is this token a special Struts token. I have solved my preview problem using javascript. Where I put a ?preview=true in front of all links and in the forms actions. This is what I call a hack. So please tell me how to do it better. -Oprindelig meddelelse

Re: Has anybody experienced this weirdness with taglibs?

2005-11-17 Thread ALEX HYDE
That's normal. What's wrong with that? --- Aladin Alaily <[EMAIL PROTECTED]> wrote: > Hi, > > I am using and tags but when > they are evaluated a > jsessionid is appended: > > Image Example: > -- > /> > > GIVES > > src="/images/x.gif;jsessionid=1F69046A7709D30FD9AC36FC6E8A433

Re: [shale] why shale?

2005-11-17 Thread pc leung
I find these web pages. They compare JSF with Tapestry. and tells something about Struts http://www.theserverside.com/articles/article.tss?l=JSFTapestry http://www.theserverside.com/news/thread.tss?thread_id=35899 On 11/17/05, Thomas Hamacher <[EMAIL PROTECTED]> wrote: > On Thursday 17 November

Has anybody experienced this weirdness with taglibs?

2005-11-17 Thread Aladin Alaily
Hi, I am using and tags but when they are evaluated a jsessionid is appended: Image Example: -- GIVES height="10" width="1"> Link Example: - " rel="stylesheet" type="text/css"> GIVES rel="stylesheet" type="text/css"> Has anyone experienced this before? If

[Help] I18N does not work and I think I have tried all ....

2005-11-17 Thread Lixin Chu
Hi All, appreciate any help here ...This is what I have done in trying to show strings in the selected language: - I have various /WEB-INF/classes/ApplicationResources.properties files, for example APplicationResoruces_ja.properties - in struts-config.xml, I have: - in web.xml I have a filt

Custom tags referencing struts tags

2005-11-17 Thread David Whipple
I would like to be able to create a custom tag which is able to use the struts , or fields. I am not able to find a way to create a tag library that can produce/call/reference other tags. I am interested in making a custom tag for our application which will either show a text entry field, a dr

struts layout collection client side sorting

2005-11-17 Thread Raghu Kanchustambham
Hi, I have the following code: http://enquiry.id/>}" sortable="true"/> http://enquiry.id/>}">enroll http://enquiry.id/>}">View / http://enquiry.id/>}"> Update When I code this way, I see "sort" icons in the header of the table that is generated. When I click on them, sorting happe

Re: Can't build project because of unavailable dtd

2005-11-17 Thread Lionel
[EMAIL PROTECTED] wrote: > check you DOCTYPE in xml and DTD in struts.jar. you are right, I used jakarta.apache.org instead of struts.apache.org. Thanks ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

RE: How to make a preview

2005-11-17 Thread Mark Benussi
Pass a token to the new window indicating it's a preview. Then display the new styles for the new window, ensuring that the token gets passed to all the links and forms etc -Original Message- From: Jesper Preuss [mailto:[EMAIL PROTECTED] Sent: 17 November 2005 11:45 To: user@struts.apach

Re: Can't build project because of unavailable dtd

2005-11-17 Thread Sunil_Sahu
Lionel, probably DOCTYPE which u have given in your xml file is not matching with the DOCTYPE in your struts.jar that why its trying to connect it to internet. check you DOCTYPE in xml and DTD in struts.jar. "Lionel" <[EMAIL PROTECTED]> Sent by: news <[EMAIL PROTECTED]> 11/17/2005 04:46 P

Donwload files

2005-11-17 Thread Ext . Ilitia2
Hi, I have a appli lets download a file. My problem is what dialog box show as file name 'anything.do' instead real file name. I remenber to read something about this, but I don't now know where Anyboy can remenber it? - T

How to make a preview

2005-11-17 Thread Jesper Preuss
Hi ! Hi have a web project using struts. My homepage have an administrator module. Where you can change pictures, CSS/colors, page texts and more. Now you can save Submit->"save" a form. Here you have saved all the new CSS colors permanent. And it will show for all the users of the page. What

Re: Can't build project because of unavailable dtd

2005-11-17 Thread Lionel
Lionel wrote: > Hi ! > > Hi have a web project using struts. > This morning, I've had problems to build this project be built because > jakarta.apache.org has been unavailable for few minutes: eclipse > tries to access the online dtd and gets blocked. > The only way to be able to work is to disable

Form Bean population

2005-11-17 Thread Marcio Ghiraldelli
I need to populate a a form-bean with a collection for an instance. Wich is the better place to do it: 1) Into the form-bean reset() method or 2) In an Action before the jsp call ? - To unsubscribe, e-

Can't build project because of unavailable dtd

2005-11-17 Thread Lionel
Hi ! Hi have a web project using struts. This morning, I've had problems to build this project be built because jakarta.apache.org has been unavailable for few minutes: eclipse tries to access the online dtd and gets blocked. The only way to be able to work is to disable xml validation, kill eclip

Re: html:rewrite with params

2005-11-17 Thread Thomas Hamacher
Laurie, thank you so for. This makes sense to me. But the problem is, that I don´t really have a source-url, as it is used in the examples. I´m using tiles and therefor I have to work with definitions. I guess, I cannot add any definition as a source, can I? Actually I always want to return to

Re: [shale] why shale?

2005-11-17 Thread Thomas Hamacher
On Thursday 17 November 2005 04:24, Craig McClanahan wrote: > Does shale add jsf features Struts? > > > If I add MyFaces to Struts, can existing struts web app has jsf features? > > No, Shale does not do that ... it is completely independent of Struts > 1.xcode ... but there is an alternative libra