Tiles and i18n

2003-12-19 Thread Patrick Cheng
Hi all, I know that Tiles support i18n by allowing multiple tiles definition files with standard java language file extension such as _en_US , _fr etc. My Master Layout file contains other pages such as the navbars, body etc. and the ONLY single piece of information it needs to show is the

Re: URGENT - Help defending Struts

2003-12-19 Thread James Mitchell
On Thu, 18 Dec 2003 [EMAIL PROTECTED] wrote: That's funny. I'm on a contract right now with Accenture and we are using it as part of GRNDS. All: Our CIO is currently fighting the use of Struts by saying that it is not widely used in B2C sites. Does anyone know of any sites, preferably

RE: [SPAM] Your Support Question

2003-12-19 Thread Andrew Hill
Hehe. That is truly sad. Im actually running a bayesian spam filter (http://www.upserve.com/spammunition/default.asp) which is pretty good if a little buggy. It seems to catch about 80% of the 100 or so spams I get daily. This 'Support Question' one probably makes it through as it mentions 'good

Re: OT: Examples of HTML-based user interfaces?

2003-12-19 Thread ajay brar
hi! A pity a student like me doesn't qualify for a beta version of Flex. I believe DHTML currently provides a really good way of managing those fancy HTML interfaces. cheers Ajay From: Brice Ruth [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing

RE: OT: Examples of HTML-based user interfaces?

2003-12-19 Thread Andrew Hill
snip I believe DHTML currently provides a really good way of managing those fancy HTML interfaces. /snip Until you try making it work across different browsers. :-( (And theres always that hypothetical beast - the evil user who disables javascript - to worry about) Still, if you are in a

retrieve value of Request

2003-12-19 Thread Raman
Hello, I have a query regarding use of struts to get the request variable value. I populate a variable in request in my Action as request.setAttribute(mode,1); now how can print the value of this variable using bean:write tag Help me in this... Thanks Raman Garg

RE: Enhancement Request or Possible Alternative?

2003-12-19 Thread shirishchandra.sakhare
Hi, If you download the workflow extension and see the etst app, you will get a better idea.. http://www.livinglogic.de/Struts/exampleApp.html But as you said, the workflow solution works exactly the way you said...If there is no workflow configured, then the actions will work the normal way.

AW: Examples of HTML-based user interfaces?

2003-12-19 Thread Samuel . Opoku-Boadu
Try the file attached. -Ursprungliche Nachricht- Von: Wendy Smoak [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 18. Dezember 2003 23:52 An: Struts Users Mailing List Betreff: OT: Examples of HTML-based user interfaces? Does anyone have examples of some fancy things to do with

Re: AW: Examples of HTML-based user interfaces?

2003-12-19 Thread Kwok Peng Tuck
I think the list ate your file. copy and paste in the message instead :) [EMAIL PROTECTED] wrote: Try the file attached. -Ursprungliche Nachricht- Von: Wendy Smoak [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 18. Dezember 2003 23:52 An: Struts Users Mailing List Betreff: OT:

AW: Examples of HTML-based user interfaces?

2003-12-19 Thread Samuel . Opoku-Boadu
Sorry. Forgot to attach file. Here we go again. -Ursprungliche Nachricht- Von: Wendy Smoak [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 18. Dezember 2003 23:52 An: Struts Users Mailing List Betreff: OT: Examples of HTML-based user interfaces? Does anyone have examples of some fancy

RE: retrieve value of Request

2003-12-19 Thread Yves Sy
U might mean... request.setAttribute(mode,new Integer(1)); ..in your action. Anyway, to use is in your jsp: bean:write name=mode scope=request/ ... although scope is not required. -Yves- -Original Message- From: Raman [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 4:24

RE: Examples of HTML-based user interfaces?

2003-12-19 Thread vasudevrao gupta
Can we enhance the script to transfer multiple values from one list box to other..(Currently it's a single value) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 19 December 2003 14:09 To: [EMAIL PROTECTED] Subject: AW: Examples of HTML-based user interfaces?

AW: Examples of HTML-based user interfaces?

2003-12-19 Thread Samuel . Opoku-Boadu
I guess it can be done although I have not tried it before. -Ursprungliche Nachricht- Von: vasudevrao gupta [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 19. Dezember 2003 09:48 An: 'Struts Users Mailing List' Betreff: RE: Examples of HTML-based user interfaces? Can we enhance the

logic:iterate question

2003-12-19 Thread struts
I have logic:iterate id=testers name=testerInfo . /logic:iterate I only have one item in the testerInfo collection. Why can't i do bean:define id=testers name=testerInfo/ Or how can i put it to the first item? Thanks !

Dynamic html:image

2003-12-19 Thread gentyjp
Hi Struts and tags newbie again !! I have a string vector of image name. I wish to view them using html:image. My question is how can I initialize my page attribute ? logic:iterate id=item name=imageList html:image page=put here the value of my iterator

Re: Dynamic html:image

2003-12-19 Thread Nicolas De Loof
Assuming imageList contains String taht are absolute (in application context) path to your images, this should work : logic:iterate id=item name=imageList html:image page=%= item % /logic:iterate Nico. - Original Message - From: gentyjp [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: URGENT - Help defending Struts

2003-12-19 Thread Mark Lowe
We've only got the 1st phase done, and there's still much to be done but http://www.murphyandnye.com This is a B2C site, but just displays the products and allows simple ordering at the moment. Next phase is the full ecommerce stuff. As it happens its done with struts. We've carved this out

Re: Dynamic html:image

2003-12-19 Thread Mark Lowe
Same as nico really but you might like the el option html-el:img page=${item} / i'd have the image as a bean with a path, name and desc properties html-el:img page=${item.path} imageName=${item.name} alt=${item.desc} / Cheers Mark On 19 Dec 2003, at 10:37, Nicolas De Loof

How to put an object into the application scope from a plugin interface

2003-12-19 Thread EL AKARI Mehdi
Hi, I'm writing a struts plugin, and i need to put an object into the application scope. How can i do this. Note that the plugin interface contains the following methods: public void init(ActionServlet servlet, ModuleConfig config) throws javax.servlet.ServletException ; public void

Re: How to put an object into the application scope from a plugin interface

2003-12-19 Thread Gurpreet Dhanoa
hi THink you are slightly wrong syntax for init method is ublic void init(ActionServlet servlet, ApplicationConfig applicationConfig) throws javax.servlet.ServletException { } So you can access Application object and can set the attribute intop it Regards Gary - Original Message

Re: Dynamic html:image

2003-12-19 Thread gentyjp
At 11:37 19/12/2003, you wrote: Assuming imageList contains String taht are absolute (in application context) path to your images, this should work : logic:iterate id=item name=imageList html:image page=%= item % /logic:iterate It works, except I had to do item.toString() Thanks a

Re: How to put an object into the application scope from a plugin interface

2003-12-19 Thread EL AKARI Mehdi
Which interface are you talking about, i'am using org.apache.struts.action.PlugIn isn't it the good one ? Actualy it is working for me ! Mehdi - Original Message - From: Gurpreet Dhanoa [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, December 19, 2003

Re: How to put an object into the application scope from a plugin interface

2003-12-19 Thread Gurpreet Dhanoa
Mehdi i am talking about the same interface which is working onto my end which versio you are using - Original Message - From: EL AKARI Mehdi [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, December 19, 2003 5:06 PM Subject: Re: How to put an object into

Re: How to put an object into the application scope from a plugin interface

2003-12-19 Thread EL AKARI Mehdi
I'm using struts 1.1 and in java doc it is said that ApplicationConfig is deprecated and we must use now ModuleConfig. If you take a look on the tiles pluggin you will find that it implements this interface. my question is how to put in the ModuleScope an object, and how to retrieve it again?

setting array of elements in Action class.

2003-12-19 Thread Amit Kumar Sharma
I have all the elements in the HTML form with same name, how can I set there value using the set() property I dont know the syntax..for a normal set it would be. set( FIELDNAME, VALUE ) can anybody help me with the syntax. Regards, Amit Kumar Sharma SysArris Software Pvt Ltd 120A,

Global-exceptions

2003-12-19 Thread Peter Sloots
Hi all I'm a bad coder so sometimes I get nullpointer exceptions thrown back from an action So I declared a global-exception in my struts-config. global-exceptions exception key=errors.nullpointer type=java.lang.NullPointerException path=page.error/ /global-exceptions

Re: setting array of elements in Action class.

2003-12-19 Thread Mark Lowe
If you've an array of array list as your form property form-property name=foo type=java.util.ArrayList / or example set(foo,int index,myvalue); and/or ArrayList list = new ArrayList(); theForm.set(foo,list); IMO this is less hassle using action forms not dynaaction forms. If you dont define

RE: Struts test cases

2003-12-19 Thread Tim Lucia
I am using it with Eclipse... I had to do some things in setUp() to make it work: /* * @see TestCase#setUp() */ public void setUp() throws Exception { super.setUp(); // STC2.0 requires the file context to be set, at least from // Eclipse. STC2.1.0 is

Access ResourceBundle

2003-12-19 Thread Manuel Lenz
Hi to all, it is simple to get Data from the strutsRessourceBundle with the jspTag. But I need to get ResourceData inside a java-Part of the jsp-page and inside an ActionClass. For example % if (loginForm.getUsername.equalsIgnoreCase( ResourceData ) {

simple question

2003-12-19 Thread dirk
I want to create a select box with the values 1 thru 100 how can i do that? What i have is: But that is not working. Any idea ? Thanks ! html:select property=selectBox styleClass=content % for(int i=0;i999;i++){ % html:option value=%=i%%=i%/html:option %}% /html:select

RE: simple question

2003-12-19 Thread Joshi, Naveen
html:option value='%=+i%'%=+i%/html:option Naveen -Original Message- From: dirk [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 7:51 AM To: Struts Users Mailing List Subject: simple question I want to create a select box with the values 1 thru 100 how can i do that? What i

RE: simple question

2003-12-19 Thread Joshi, Naveen
html:option value='%=+i%'%=+i%/html:option -Original Message- From: dirk [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 7:51 AM To: Struts Users Mailing List Subject: simple question I want to create a select box with the values 1 thru 100 how can i do that? What i have is:

Re: simple question

2003-12-19 Thread Mark Lowe
Nothing to add really just a few variations on a theme. c:forEach var=num begin=0 end=999 html-el:option value=${num} c:out value=${num} / /html-el:option /c:forEach i think c:forEach var=num begin=0 end=999 htmll:option value=%= num %%= num %

Re: Access ResourceBundle

2003-12-19 Thread Peter Sloots
Here you go? % org.apache.struts.util.MessageResources mr = org.apache.struts.validator.Resources.getMessageResources(request); if (loginForm.getUsername.equalsIgnoreCase( mr.getMessage(key.value) ) { } % *** REPLY SEPARATOR *** On

Re: simple question

2003-12-19 Thread Kris Schneider
I know the question is targeted at doing this in a JSP, but why wouldn't you just set up a String[100] in application scope, name it numbers (or whatever) and do something like: html:select property=selectBox styleClass=content html:options name=numbers/ /html:select Quoting Mark Lowe [EMAIL

Re: simple question

2003-12-19 Thread Mark Lowe
Agreed. On 19 Dec 2003, at 14:02, Kris Schneider wrote: I know the question is targeted at doing this in a JSP, but why wouldn't you just set up a String[100] in application scope, name it numbers (or whatever) and do something like: html:select property=selectBox styleClass=content

Re: URGENT - Help defending Struts [slightly off-topic]

2003-12-19 Thread Brice Ruth
This is entirely inappropriate for this list, please take comments such as these off-line with interested parties. Please keep posts to this list professional and above-board. ajay brar wrote: hi! i was going to take this opportunity to point out how CIO's are generally big duds, esp the CIO

RE: OT: Examples of HTML-based user interfaces?

2003-12-19 Thread Wendy Smoak
From: Andrew Hill [mailto:[EMAIL PROTECTED] Still, if you are in a position to limit your audience (such as with intranet apps) to just the more common modern browsers (IE5+, Mozilla) there is indeed a lot you can do with DHTML. I should have said that up front-- it is intranet and we can

struts, hibernate, datasources .... so lost

2003-12-19 Thread Rich Garabedian
After spending days on the net and the mailing lists I find something is just not getting through to me. I feel that what I'm doing is conceptually simple; yet I can't seem to actually implement any of it. I think I have a rudimentary understanding of how to integrate Hibernate into Struts, but

Re: DynaValidatorForm and setting initial value for the html-el:text tag

2003-12-19 Thread Jim Kennedy
Yes, this is on the right track, but how do I create a DynaValidatorForm before it is actually used inside a form? I don't think you can cast down like that. I understand how it is created after I submit the form, but not before I submit the form. Jim Kennedy IT Consultant

RE: OT: Examples of HTML-based user interfaces?

2003-12-19 Thread ian_d_stewart
If you're already certified w/ Netscape, testing on Mozilla or Konqueror is probably unnecessary, as they (along with Galeon, Gnome's web browser) all use the same rendering engine. Ian

Re: OT: Examples of HTML-based user interfaces?

2003-12-19 Thread Brice Ruth
Actually, I believe you're only partially correct. Galeon/Moz/Netscape all use Gecko for rendering, I believe - but Konq, by default, at least, uses KHTML, which is also the core of the renderer used by OS X's Safari browser. Testing in those, when it comes to JavaScript, though - is still

RE: action local forward to a tile

2003-12-19 Thread Ebersole, Steven
Removing the controller reference did not work. Any other thoughts? I am trying to convince my manager to move to struts for our dev. But its been really embarassing that I cannot get even this simple no-functionality version deployed correctly. It works as long as the forward is not a tile;

Re: logic:iterate question

2003-12-19 Thread hernux
if you know its only one item, why don't change the action... insteat of: request.setAttribute(testers,testerInfo); try request.setAttribute(testers,testerInfo[0]); hernux - Original Message - From: struts [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday,

Struts and Google

2003-12-19 Thread Brian Styles
Hi all, I've searched the archives on this topic, but would appreciate any up to date advice. I have my actions forwarding to my jsps in my WEB-INF folder. Thus my jsps are protected from direct access. However I obviously want my site to get as high a rating on google and other search engines

RE: DynaValidatorForm and setting initial value for the html-el:text tag

2003-12-19 Thread Wendy Smoak
From: Jim Kennedy [mailto:[EMAIL PROTECTED] Yes, this is on the right track, but how do I create a DynaValidatorForm before it is actually used inside a form? I don't think you can cast down like that. I understand how it is created after I submit the form, but not before I submit the

Re: Struts and Google

2003-12-19 Thread Joe Germuska
At 2:56 PM + 12/19/03, Brian Styles wrote: Hi all, I've searched the archives on this topic, but would appreciate any up to date advice. I have my actions forwarding to my jsps in my WEB-INF folder. Thus my jsps are protected from direct access. However I obviously want my site to get as

OT: nice holiday

2003-12-19 Thread Jan Dirksen
Hi to all! a year, full of hard work, moves. i wish everybody a nice xmas and a good start in 2004. we will see what the year will bring us. I thinks somethings wents on with a comming integration of Struts and JSF However , a nice holiday to all greetings Jan

RE: Struts and Google

2003-12-19 Thread Wendy Smoak
I've searched the archives on this topic, but would appreciate any up to date advice. I have my actions forwarding to my jsps in my WEB-INF folder. Thus my jsps are protected from direct access. However I obviously want my site to get as high a rating on google and other search engines

Re: action local forward to a tile

2003-12-19 Thread Brice Ruth
Hrmpf, crap ... send me your struts-config.xml, tiles-defs.xml, and web.xml in a ZIP, if you could. (Don't need to respond to the list, just write me directly). Ebersole, Steven wrote: Removing the controller reference did not work. Any other thoughts? I am trying to convince my manager to

Re: Struts and Google

2003-12-19 Thread Brice Ruth
Just an FYI, though - I'm not sure on Google, but many search engines don't support cookies, and get tripped up on the jsessionid parameter that commonly used application servers (like Tomcat) put in your URLs and image references when using things like html:link and html:img. Our local search

RE: Struts and Google

2003-12-19 Thread Wendy Smoak
From: Brice Ruth [mailto:[EMAIL PROTECTED] ^^^ scissors?? I implemented a filter that loads a list of common search engine user-agent strings, and if it detects access from one of those, it disables URL-rewriting on the HttpServletResponse that is

Re: Struts and Google

2003-12-19 Thread jbaker
I think the main search engine problems come up when there are lots of parameters in the URL, although Google seems to do pretty well. One solution is to turn what would have been parameter names into 'directory' names in the URL. For example, on my site, rather than have a url like:

Re: How to put an object into the application scope from a plugin interface

2003-12-19 Thread Nathan Rogers
EL AKARI Mehdi wrote: Hi, I'm writing a struts plugin, and i need to put an object into the application scope. How can i do this. Note that the plugin interface contains the following methods: public void init(ActionServlet servlet, ModuleConfig config) throws javax.servlet.ServletException

Re: Tiles and i18n

2003-12-19 Thread Marino A. Jonsson
Just use the title-value from the tiles definition as a key to access the real value in the resource bundle :) cheers, MarinĂ³ Patrick Cheng [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, I know that Tiles support i18n by allowing multiple tiles definition files with standard

Re: DynaValidatorForm and setting initial value for the html-el:text tag

2003-12-19 Thread Jim Kennedy
Your example: private void prepopulateForm( ... ) { // copy properties from the DTO to the form if ( form != null contact != null ) { DynaActionForm dvForm = (DynaActionForm) form; BeanUtils.copyProperties( dvForm, contact ); //manually

formatting messages

2003-12-19 Thread Menke, John
Can I format messages with html in my message resources file? I have a message that i would certain parts of displayed bold. Can I do this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: OT: Examples of HTML-based user interfaces?

2003-12-19 Thread Craig Tataryn
If you understand javascript, DHTML and DOM, then it won't appear as Ugly as Brice suggests . Take a look at those webfx widgets, very nice clean code. Craig W. Tataryn From: ajay brar [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject:

RE: DynaValidatorForm and setting initial value for the html-el:text tag

2003-12-19 Thread Wendy Smoak
From: Jim Kennedy [mailto:[EMAIL PROTECTED] I get this: ERROR[com.bay4.jsp] [org.apache.taglibs.log.LoggerTag] 2003-12-19 09:30:41,285 http80-Processor2 -- java.lang.IllegalArgumentException: No destination bean specified at

Re: Struts and Google

2003-12-19 Thread Brian Styles
Thanks Joe, very good to know. On a related topic, I'm interested in finding out who has been on my site and where they have gone. Do you know of a good utilitiy for this? thanks very much, Brian From: Joe Germuska [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To:

RE: formatting messages

2003-12-19 Thread Wendy Smoak
From: Menke, John [mailto:[EMAIL PROTECTED] Can I format messages with html in my message resources file? I have a message that i would certain parts of displayed bold. Can I do this? Sure, look at the struts-example webapp, specifically the error messages:

RE: formatting messages

2003-12-19 Thread Menke, John
it seems that when i do this custom.message=value I want bold b{0}/b i don't get the tags written correctly. I also tried entering the tags in url-encoded form... and it ends up outputting exactly what i write in message resources -jm -Original Message- From: Wendy Smoak

Re: Struts and Google

2003-12-19 Thread Brian Styles
Hey Joe, thanks for the help. I'm a little unsure of exactly how you do this with regards to the struts-config file and path parameters. Could you give me an example? Is it something like this? action path=/countries/china/ type=com.whatever.ChinaAction name=chinaForm

RE: formatting messages

2003-12-19 Thread Wendy Smoak
From: Menke, John [mailto:[EMAIL PROTECTED] it seems that when i do this custom.message=value I want bold b{0}/b i don't get the tags written correctly. I use this with no problems: error.record.locked=liUnfortunately, {0} record {1} is locked by another user, and the system was unable to

Antwort: Re: Tiles and i18n

2003-12-19 Thread Oliver Wulff
I do it like this: definition name=.inputOrgEinheit.body page=/layout/bodyTwoColumns.jsp put name=subtitle value=orgeinheit.title / tiles:importAttribute name=subtitle/ h2fmt:message key=${subtitle}//h2

Re: Struts and Google

2003-12-19 Thread Brice Ruth
Yes, scissors :) And sure, I'll send you what I have in just a bit - we're getting ready for a new release (buy now functionality), so I'm a bit swamped. Wendy Smoak wrote: From: Brice Ruth [mailto:[EMAIL PROTECTED] ^^^ scissors?? I implemented a

Re: Struts and Google

2003-12-19 Thread Brice Ruth
Well, query string parameters are one thing - and most search engines handle that fine, what I'm talking about, though, is what Tomcat and other Java containers insert between the URI's file path (http://blah.blah.com/someaction.do) and the begin of the query string parameters (?x=blahy=blah)

Re: OT: Examples of HTML-based user interfaces?

2003-12-19 Thread Brice Ruth
I don't think understanding it is the key here ... I think maintenance of it, specifically maintenance by other developers besides the original developer, becomes a bit of a nightmare, and that's my definition of 'ugly' ... :) Dynamically rewriting the HTML on a page does really get ugly ...

Re: action local forward to a tile

2003-12-19 Thread Christian D Hahn
Hi Steven, I am not sure if you found it yet, but it looks like you mis-spelled revenue in the action's forward element you have it as path=.home.reveune in the tile def its listed as name=.home.revenue I hope this helps, -Chris Ebersole, Steven wrote: hey all, i'm running into an issue I

RE: [SPAM] Your Support Question

2003-12-19 Thread Joe Hertz
Yeah, I get it too. Silly me, I just assumed that it was a legitimate company, and some (probably their only one, IMHO) employee sub'd to the struts list and this was some sort of auto-responder for him. I mainly thought this because it didn't look like Spam. Only in the last WEEK has started to

RE: formatting messages

2003-12-19 Thread Menke, John
this is my test custom.message=value I want bold b{0}/b and it outputs: value I want bold b7/b I am using the ActionMessages not ActionErrors does this make a difference? -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 11:25 AM To:

RE: action local forward to a tile

2003-12-19 Thread Ebersole, Steven
ouch... 4 days to figure that out. At least I can laugh about it now :) Thanks for catching that. -Original Message- From: Christian D Hahn [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 10:51 AM To: Struts Users Mailing List Subject: Re: action local forward to a tile

Re: action local forward to a tile

2003-12-19 Thread Brice Ruth
Oh, don't you worry ... I spent a couple hours yesterday debugging a custom taglib that ended up not having the right classpath defined in the .tld file!! Ebersole, Steven wrote: ouch... 4 days to figure that out. At least I can laugh about it now :) Thanks for catching that.

How multiple servlet-mappings affect computed action path?

2003-12-19 Thread Daniel Rabe
I started out with a simple struts webapp, so my web.xml maps *.do to myServlet. Then I recognized a need to have a set of requests dispatched to my servlet based on the first part of path_info, so I added a new mapping from /special/* to myServlet. (These requests will NOT have .do at the end.)

Best practice for handling Action Init Parameters

2003-12-19 Thread Gerald_Beattie
What is the best practice in Struts for handling application parameters. Do I put my parameter in the Action init parms and then pull the parameter in at every Action class I use? Basically I have a JSP page with Java mail tags that requires a host name and I do not want to hard code the smtp

RE: [SPAM] Your Support Question

2003-12-19 Thread Craig R. McClanahan
Quoting Joe Hertz [EMAIL PROTECTED]: Yeah, I get it too. Silly me, I just assumed that it was a legitimate company, and some (probably their only one, IMHO) employee sub'd to the struts list and this was some sort of auto-responder for him. I mainly thought this because it didn't look

Re: How multiple servlet-mappings affect computed action path?

2003-12-19 Thread Craig R. McClanahan
Quoting Daniel Rabe [EMAIL PROTECTED]: I started out with a simple struts webapp, so my web.xml maps *.do to myServlet. Then I recognized a need to have a set of requests dispatched to my servlet based on the first part of path_info, so I added a new mapping from /special/* to myServlet.

[OT] HTML Select box

2003-12-19 Thread Jerry Jalenak
Hi All, Can't seem to find a way to do this, even though I've seen it done (I think). What I need is a HTML select box where the size parameter=1 (so I get a true drop-down, not a scrolling box) AND the ability to select multiple options within the select box. Right now if I set the multiple

RE: Best practice for handling Action Init Parameters

2003-12-19 Thread Wendy Smoak
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] What is the best practice in Struts for handling application parameters. Do I put my parameter in the Action init parms and then pull the parameter in at every Action class I use? Basically I have a JSP page with Java mail tags that

Re: [OT] HTML Select box

2003-12-19 Thread Brice Ruth
From a GUI perspective, how would you select multiple things in a drop-down? I can't actually recall ever seeing this type of widget anywhere (irrespective of HTML). Could you send an example? Jerry Jalenak wrote: Hi All, Can't seem to find a way to do this, even though I've seen it done (I

Re: struts, hibernate, datasources .... so lost

2003-12-19 Thread David Erickson
Rich I know how you feel. I just dealt with nearly the same problems the other day. I for the life of me could not get Hibernate to bind to my JNDI datasource.. so I bailed on that and in my hibernate.cfg.xml I just had it setup the datasource and manage it from there: hibernate-configuration

Re: [OT] HTML Select box

2003-12-19 Thread Kris Schneider
From a usability perspective, that seems kinda goofy, doesn't it? The user can make multiple selections but can view at most one of them? If you don't have a lot of items to display, perhaps a set of checkboxes (multibox) would be better? If you end up with HTML like: select multiple=multiple

RE: Best practice for handling Action Init Parameters

2003-12-19 Thread Gerald_Beattie
Thanks I look at that method Wendy Smoak [EMAIL PROTECTED] 12/19/2003 12:47 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:RE: Best practice for handling Action Init Parameters From: [EMAIL

RE: [OT] HTML Select box

2003-12-19 Thread Daniel Lipofsky
I agree. I think it would be bizarre and confusing to the user to try and select many things from a dropdown. Nobody does this. Maybe you want to use a popup (DHTML or separate window) if you really need to save real estate. Otherwise use a multiselect with multiple lines. - Dan From a GUI

ClassLoader seems not working withing Appache tomcat 4.1.29

2003-12-19 Thread EL AKARI Mehdi
Hi, I'm trying to get a resource from the classpath. I use the method : myUrl = this.getClass().getClassLoader().getResource(oneResource). and i'm sure that OneResource is present in the classpath. This works fine in JDevelopper embeded OC4J. But when i deploy the application in TOMCAT it gives

RE: Error using tiles-el

2003-12-19 Thread Karr, David
Yup, you're correct. Could you please file a bug in Bugzilla for this? I may get to this this weekend. -Original Message- From: Narayanan, Sunitha [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 11:45 AM To: [EMAIL PROTECTED] Subject: Error using tiles-el Hello, I am

Drop down value - First Row to be Blank

2003-12-19 Thread Rama, Shreekanth (K.)
Hi, I am getting ???en_US.null??? in the drop down for blank option as mentioned below. My html select has this html:option value=/html:option How do I set this, to a blank row within the drop down ? Regards Shreekanth

Re: struts, hibernate, datasources .... so lost

2003-12-19 Thread David Erickson
Rich, Ya the binding thing with JNDI and tomcat is messed up.. for some reason I've read its Read Only.. but the strange thing is I WAS able to get it working when I bound to that resource from a static class, but as soon as I used a filter or a struts plugin it no longer worked.. really lame.

Re: nice holiday

2003-12-19 Thread Martin Gainty
Vielen Danke, -Martin - Original Message - From: Jan Dirksen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 19, 2003 10:20 AM Subject: OT: nice holiday Hi to all! a year, full of hard work, moves. i wish everybody a nice xmas and a good start in 2004. we will see

re: ClassCastException coming from DynaValidatorForm.validate()- bug or a feature?

2003-12-19 Thread Janice
I went to the source to try to find out what was causing this problem, and I started to suspect that: form-property name=page type=java.lang.String initial=home / was the problem... sure enough, when I changed the name to thePage,

Application url , why it does not change?

2003-12-19 Thread martin holmes
Hi I have developed a simple web application with struts and I am having trouble understanding why the url in the address bar changes to a path set by a link or a form submission, but does not change when forwarded from the mapping .findforward() in an action object. Ideally I would like the url

[OT] Debugging w/Eclipse Tomcat Sysdeo Plugin? Help!

2003-12-19 Thread David Erickson
So we are migrating our app from debugging with System.out.. (dont laugh.. even though I do).. to debugging it with Sysdeo's Eclipse plugin. However we have run into a showstopping snag unless we can get it resolved. Eclipse is set to compile everything from /web/WEB-INF/src into

Re: DynaValidatorForm and setting initial value for the html-el:text tag

2003-12-19 Thread Jim Kennedy
Here ya go Wendy: (and thanks) Here are my action tags in struts config: action path=/myprofile type=com.bay4.struts.action.UserDetailAction forward name=showdetail path=/main_layout.jsp?page=/user_detail.jspamp;page_title=User Profile Screen / /action action path=/saveuser

RE: Drop down value - First Row to be Blank

2003-12-19 Thread Andy Schmidgall
Shreekanth, I am using html:option value=/ successfully to create a blank option. Perhaps there is some kind of odd character encoding thing happening? -Andy -Original Message- From: Rama, Shreekanth (K.) [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 1:12 PM To: [EMAIL

Re: [OT] HTML Select box

2003-12-19 Thread Craig R. McClanahan
Quoting Brice Ruth [EMAIL PROTECTED]: From a GUI perspective, how would you select multiple things in a drop-down? I can't actually recall ever seeing this type of widget anywhere (irrespective of HTML). In HTML, this is triggered by the multiple attribute on the select element. If

Re: [OT] Debugging w/Eclipse Tomcat Sysdeo Plugin? Help!

2003-12-19 Thread Matt Bathje
David - there are 2 options for this that I can think of: 1. In your project settings in eclipse, in the java compiler category, go to the build path tab and uncheck the clean output folders on full build setting 2. Put your configuration/other files into the /src directory. When eclipse builds,

Re: OT: Examples of HTML-based user interfaces?

2003-12-19 Thread Craig Tataryn
Yeah, you are right. I had to create many a webapp that conformed to Netscape 4.7x and IE. Nightmare is one way of putting it :) Thank god for DHTMLLib from siteexperts.com and the Microsoft Script Debugger/Visual Interdev. And also, yeah, not everyone is strong in Javascript so the next

Re: [OT] Debugging w/Eclipse Tomcat Sysdeo Plugin? Help!

2003-12-19 Thread David Erickson
Matt, Thanks! #2 works great. Another quick question to fire off if anyone knows.. I want to keep that classes directory out of cvs, i have a .cvsignore file in the root of my project, by putting classes in there is that enough to accomplish this? Would that filter out any other potential

Re: [OT] HTML Select box

2003-12-19 Thread Brice Ruth
right, but that's in a multi-select box, not in a drop-down select. Craig R. McClanahan wrote: Quoting Brice Ruth [EMAIL PROTECTED]: From a GUI perspective, how would you select multiple things in a drop-down? I can't actually recall ever seeing this type of widget anywhere (irrespective

Re: [OT] Debugging w/Eclipse Tomcat Sysdeo Plugin? Help!

2003-12-19 Thread Sgarlata Matt
I think another possibility would be to 1) Delete the classes directory 2) Add your project to CVS Now you don't have the classes directory in CVS, but of course if someone pulls the code from CVS they can build the classes directory for themselves using Eclipse, Ant, or whatever. Matt -

  1   2   >