Re: has struts reached the saturation

2006-03-16 Thread Leon Rosenberg
Sorry, I didn't ment portals in sense of JSR-168, but portals in the common sense of what is a portal, like yahoo.com, match.com, amazon.com and such... Leon On 3/16/06, Michael Jouravlev [EMAIL PROTECTED] wrote: URLs are universal, while JSR-168 manages portlets through central controller

[Transfer data from Form to business bean]

2006-03-16 Thread Deva Pitchai(NatureSoft)
hi all can anybody tell me which is the best way to transfer data from a form bean to business object? A formbean can be used as business object? If no, what is the other way to transfer the data easily from a form to business object THanks -- Regards, Deva.

Re: query about application resource and charset

2006-03-16 Thread Antonio Petrelli
Roy, Ansuman ha scritto: Thanks Antonio, that solved the problem. I used java.util.Properties so now the special characters are not coming by the way, what if I try to put russian characters or use non ascii characters in my keys?? You'll find a lot of \u, not very readable ;-) What I

Re: [Transfer data from Form to business bean]

2006-03-16 Thread Thomas Darimont
Hi, you could use the BeanUtils.copyProperties(...) http://jakarta.apache.org/commons/beanutils/ Methods to copy values from FormBean attributes into BOs attributes. (In order to do this, the attribute names have to correspond of course) Kind regards, Thomas -Ursprüngliche Nachricht-

ActionForm Stringvariables

2006-03-16 Thread purplefly
Hi there, I'm a newbie to struts and I have a question concerning ActionForms. What's more clever: to initialize the String-parameters with null or with (empty strings)? thx ciao 4 now Julian -- Feel free mit GMX FreeMail! Monat für Monat 10 FreeSMS inklusive! http://www.gmx.net

Re: ActionForm Stringvariables

2006-03-16 Thread Leon Rosenberg
1. The general rule is: never use null. 2. The specific rule for your application must be given by your application, but in doubt the general rule applies. regards leon On 3/16/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi there, I'm a newbie to struts and I have a question concerning

RE: query about application resource and charset

2006-03-16 Thread Roy, Ansuman
yes... £ symbol -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Thursday, March 16, 2006 2:49 PM To: Struts Users Mailing List Subject: Re: query about application resource and charset Roy, Ansuman ha scritto: Thanks Antonio, that solved the problem. I used

struts validator | validwhen rule not working

2006-03-16 Thread Partha Pratim Dutta
I am using struts validator framework for client side server side validations. I am facing issue with validwhen rule. Validator rules like 'required', 'minlength', 'maxlength' are working fine. The form has 2 fields 1. Radio button - 'currentMember'. This has values yes no. 2.

Re: struts validator | validwhen rule not working

2006-03-16 Thread Niall Pemberton
validwhen is server side only. Niall On 3/16/06, Partha Pratim Dutta [EMAIL PROTECTED] wrote: I am using struts validator framework for client side server side validations. I am facing issue with validwhen rule. Validator rules like 'required', 'minlength', 'maxlength' are working fine.

Re: [Transfer data from Form to business bean]

2006-03-16 Thread Oshima Tlholoe
Based on my rudimentary knowledge, you can do the folling, BeanUtils.copy(form,urBusinessObject); in that way you'll be copying data from your ActionForm right into the business Object in a very convenient manner. I am also a junior developer still learning. On 3/16/06, Deva Pitchai(NatureSoft)

Set focus on a table on page load.

2006-03-16 Thread Anjishnu Bandyopadhyay
Hi all, I have a JSP page, which has a table (table). On load of the page, I need to set focus on this table. I gave an id to the table, and tried something like this: var tblObj = document.getElementById(...); docTblObj.focus(); But this does not work. So, I declared an anchor tag

Re: ActionForm Stringvariables

2006-03-16 Thread manny Calaverra
hi Leon, is this rule because of the NullPointerException you get when, for example you check the Strings .length() or is there (also) another reason for this practice? thanks in advance Julian --- Ursprüngliche Nachricht --- Von: Leon Rosenberg [EMAIL PROTECTED] An: Struts Users Mailing

[OT] Commons Logging 1.1 Release Candidate 6

2006-03-16 Thread Niall Pemberton
Jakarta Commons Logging 1.1 release candidate 6 is now available for testing (please note this is not yet an official Apache release) from: http://people.apache.org/~rdonkin/commons-logging/ Details of announcements here:

Re: [Transfer data from Form to business bean]

2006-03-16 Thread Oshima Tlholoe
Based on my rudimentary knowledge, you can do the folling, BeanUtils.copyProperties(urBusinessObject,form); in that way you'll be copying data from your ActionForm right into the business Object in a very convenient manner. I am also a junior developer still learning. On 3/16/06, Oshima Tlholoe

Re: has struts reached the saturation

2006-03-16 Thread Ted Husted
On 3/16/06, Leon Rosenberg [EMAIL PROTECTED] wrote: same here, jobpilot (germans monster.com): java 1538 java struts 120 java jsf 18 And at Dice: Java 14,891 JSF or JavaServer Faces 311 Struts 1719 WebWork 31 As for books since 2003: JSF 12 Struts Action 20 (or 32 since 2001) WebWork 4

Common Resource bundles across web projects, ActionMessage and html:messages

2006-03-16 Thread gudny.hauknes
Title: Common Resource bundles across web projects, ActionMessage and html:messages Hi all, We are using the ActionMessage-s with replacement values. We want to divide the resource bundles so that we have a 'common-layout-jar' which contains common messages in

Re: Common Resource bundles across web projects, ActionMessage and html:messages

2006-03-16 Thread Niall Pemberton
When you use messages from an alternate (i.e. non default) message resources you need to specify the bundle attribute in the html:messages tag. So if you have something like this in your struts-config,xml: message-resources parameter=ApplicationResources/ message-resources

Re: ActionForm Stringvariables

2006-03-16 Thread Leon Rosenberg
well, two reasons, the practical one: checks for null are annoying, and people tend to lazily forget them. the more theoretical reason, is that null is not a truly OO concept (at least according to some authors), and you should use a NullObject concept (being of same type as your normal Object

[ANN] JAVAWUG BOF XVI / Friday 3rd March 2006 @ 19:00 / Oracle Ci ty of London

2006-03-16 Thread Pilgrim, Peter
Dear All I would like to formally announce that JAVAWUG (Java Web User Group) is holding the sixteenth Birds-of-Feather (Meet up XVI) at the Oracle City of London offices on Friday, 17th March 2006. The meeting will take place in a room with Audio/Visual facilities between 7-9:30 pm. There

Re: ActionForm Stringvariables

2006-03-16 Thread Julian Tillmann
ah, ok, well thanks, that was rather illuminating :) thanks a thousand Julian --- Ursprüngliche Nachricht --- Von: Leon Rosenberg [EMAIL PROTECTED] An: Struts Users Mailing List user@struts.apache.org Betreff: Re: ActionForm Stringvariables Datum: Thu, 16 Mar 2006 14:19:41 +0100

Validwhen and array

2006-03-16 Thread coudot
Hi, I have an array of two adress lines in my form. I want to check if AT LEAST one line is not empty. I want to use the validwhen to check the first line. The first line is valid only it's not null or the second line is not null. But I have an error on my page when the instruction is called in

Re: Validwhen and array

2006-03-16 Thread Niall Pemberton
Take a look at the struts-examples webapp, theres a validwhen example in the validator module - since 1.2.7 or 1.2.8 I think Niall On 3/16/06, coudot [EMAIL PROTECTED] wrote: Hi, I have an array of two adress lines in my form. I want to check if AT LEAST one line is not empty. I want to

Re: Validwhen and array

2006-03-16 Thread coudot
Thanks but I have already looked at this example. There is not control validwhen on an element of an array. All the other controls(intRange,required...) works fine on my field adr[0]. the problem is the adr[1] in the var-value, although it seems to be allowed in the struts documentation. --

Re: Set focus on a table on page load.

2006-03-16 Thread Dave Newton
Anjishnu Bandyopadhyay wrote: I have a JSP page, which has a table (table). On load of the page, I need to set focus on this table. Why would you want to set focus on something that can't receive user input? Dave - To

Re: Map backed actionForm and pushing multiselect value in the map - No response :-(

2006-03-16 Thread vijay venkataraman
Struts Group, Is it such a dumb question that i am not getting any response? or is it a bug. If someone can let me know, that it is ok to tweak the bean util code i will. I am not sure whether it has other side effects. I just want to make sure that it does not cause obvious side effects.

Re: has struts reached the saturation

2006-03-16 Thread Dave Newton
Dakota Jack wrote: I cannot see how Struts is going to be able to be viable in the long run. Personally, I think the trick is in the tooling. JSF is obviously designed for tooling and works well, similarly to the .NET/Visual Studio 'experience'. Struts irritates me because I have to tweak

RE: Set focus on a table on page load.

2006-03-16 Thread Anjishnu Bandyopadhyay
Actually, it is a table where rows can be added/deleted. So, after, addition/deletion of a row, (on page load) focus is to be set to the table. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, March 16, 2006 7:37 PM To: Struts Users Mailing List Subject:

obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Wojciech Ciesielski
Hi there, I need to find URL to my application (http://myhost:8080/myAppContext) from within init() method of struts plugin (implementing PlugIn interface). Any ideas how can I do this programatically without specifying it explicitly in one of application configuration files? Thanks in

newbie guestion: JSTL Expression language

2006-03-16 Thread Morten Andersen
I want to use JSTL to check the role of the user (it can be one of many) I'm new to JSTL so even the simplest things gives me problems: I've set the role using request.setAttribute(role , role); This tag: c:out value=${role}/ Prints out the role fine While the following statements are newer

Re: newbie guestion: JSTL Expression language

2006-03-16 Thread Wojciech Ciesielski
Morten Andersen wrote: I want to use JSTL to check the role of the user (it can be one of many) I'm new to JSTL so even the simplest things gives me problems: I've set the role using request.setAttribute(role , role); This tag: c:out value=${role}/ Prints out the role fine While the

Re: newbie guestion: JSTL Expression language

2006-03-16 Thread Rahul Akolkar
On 3/16/06, Morten Andersen [EMAIL PROTECTED] wrote: I want to use JSTL to check the role of the user (it can be one of many) I'm new to JSTL so even the simplest things gives me problems: I've set the role using request.setAttribute(role , role); This tag: c:out value=${role}/ Prints

Re: Validwhen and array

2006-03-16 Thread Niall Pemberton
On 3/16/06, coudot [EMAIL PROTECTED] wrote: Thanks but I have already looked at this example. There is not control validwhen on an element of an array. All the other controls(intRange,required...) works fine on my field adr[0]. the problem is the adr[1] in the var-value, although it seems to

errorStyleClass

2006-03-16 Thread fea jabi
This might not be Struts related issue. More of CSS stuff I guess. I am using this errorStyleClass and works great for text fields, where I am highlighting the border with different color when there is an error. If it is a dropdown when there is an error(when the user did not select any)

Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Antonio Petrelli
Wojciech Ciesielski ha scritto: Hi there, I need to find URL to my application (http://myhost:8080/myAppContext) from within init() method of struts plugin (implementing PlugIn interface). Any ideas how can I do this programatically without specifying it explicitly in one of application

Re: Validwhen and array

2006-03-16 Thread coudot
sorry for the mistake. my code is : field property=adr[0] depends =validwhen var var-nametest/var-name var-value((*this*!=null) or (adr[1] !=null ))/var-value /var /field -- View this message in context:

Re: help logic:equals

2006-03-16 Thread Antonio Petrelli
Alberto Marquÿe9s ha scritto: logic:equal name=lista property=tema value=id_tema PRINT MENSAJE /logic:equal You cannot use logic:equal this way, value must be a constant. You can use JSTL c:if http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html Ciao

Re: has struts reached the saturation

2006-03-16 Thread Frank W. Zammetti
I'm not sure *anything* is off-topic for this thread :) LOL -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so

Re: url after validation

2006-03-16 Thread Antonio Petrelli
Karel Honzl ha scritto: Hi, I'm using validation on action form. I have action for displayng input form named /insert and other action for form submission named /insertsubmit . But when form don't pass validation url in browser is changed to /insertsubmit.do, but I want to have there /insert.do.

Re: has struts reached the saturation

2006-03-16 Thread bradyh
I just thought I'd chime in here even though I haven't been following the arguments all along. As background - I'm working a contract where we use JSF with ADF controls mixed in. I have had a very pleasant experience using JSF with Eclipse though most of my previous experience was with Struts.

Re: has struts reached the saturation

2006-03-16 Thread Frank W. Zammetti
On Thu, March 16, 2006 9:21 am, Dave Newton said: Struts irritates me because I have to tweak or create at least 4 files for every action: JSP, resources, tiles, struts-config (although I've started playing with the Spring/Struts stuff) in multiple places. Add validation if there's a form.

[OT] Re: Set focus on a table on page load.

2006-03-16 Thread Dave Newton
Anjishnu Bandyopadhyay wrote: Actually, it is a table where rows can be added/deleted. So, after, addition/deletion of a row, (on page load) focus is to be set to the table. I'm not convinced you can set focus on a non-input item; that really wouldn't make any sense. I believe you'll need

Re: [OT] Re: Set focus on a table on page load.

2006-03-16 Thread Emmanouil Batsis
Dave Newton wrote: I'm not convinced you can set focus on a non-input item; that really wouldn't make any sense. +1 I'd try using a fragment identifier (pointing to a name) either from the link that leads to the page or via JS on load (the first way is better). hth, Manos

Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Dave Newton
Antonio Petrelli wrote: Wojciech Ciesielski ha scritto: I need to find URL to my application (http://myhost:8080/myAppContext) from within init() method of struts plugin (implementing PlugIn interface). Any ideas how can I do this programatically without specifying it explicitly in one of

Re: has struts reached the saturation

2006-03-16 Thread Dave Newton
Frank W. Zammetti wrote: http://easystruts.sourceforge.net/ http://www.myeclipseide.com/ContentExpress-display-ceid-55.html http://weblog.cemper.com/a/200311/02-struts-studio-eclipse-plugin-for-struts-modelling.php You may be right that none of them does ALL the steps you mentioned... I

Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Wojciech Ciesielski
I need to find URL to my application (http://myhost:8080/myAppContext) from within init() method of struts plugin (implementing PlugIn interface). Any ideas how can I do this programatically without specifying it explicitly in one of application configuration files? You can't do it, in any

[OT] inheritance and equals

2006-03-16 Thread Tamas Szabo
Hi, It's almost Friday here so I thought I could throw in an OT, hope you don't mind ... I'm sure that most of you already read the Effective Java of Joshua Bloch. In the item discussing the equals method he talks about the imposibility to write a valid equals method for a subclass that adds a

Re: [OT] Re: Set focus on a table on page load.

2006-03-16 Thread Frank W. Zammetti
On Thu, March 16, 2006 10:39 am, Dave Newton said: Anjishnu Bandyopadhyay wrote: Actually, it is a table where rows can be added/deleted. So, after, addition/deletion of a row, (on page load) focus is to be set to the table. I'm not convinced you can set focus on a non-input item; that

[OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread DGraham
Assuming all of the slaves know the id of the master, then maybe you have a RegisterServlet that's called by a slave processing servers during their init? http://javaalmanac.com/egs/javax.servlet/GetReqUrl.html -Dennis Wojciech Ciesielski [EMAIL PROTECTED] 03/16/2006 10:52 AM Please

Re: errorStyleClass

2006-03-16 Thread Frank W. Zammetti
select elements are a bit notorious in not allowing you all the CSS flexibility the other controls do. This is, as I understand it, because a select is treated essentially as a separate window. For instance, note that if you have a div and you position it over a select, regardless of how you try

Re: has struts reached the saturation

2006-03-16 Thread Frank W. Zammetti
Your scripts sound like just the kind of thing that would be well-received as a struts.sourceforge.net project (hint-hint!) Maybe slap a Swing front-end on it and execute the scripts via BSF? -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com

Re: [OT] Re: Set focus on a table on page load.

2006-03-16 Thread Dave Newton
Frank W. Zammetti wrote: On Thu, March 16, 2006 10:39 am, Dave Newton said: I'm not convinced you can set focus on a non-input item; that really wouldn't make any sense. I think you actually can, at least in IE (I was a bit surprised by this). Ooo, that's spooky... I guess it's

Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Antonio Petrelli
Wojciech Ciesielski ha scritto: We are trying to create distributed computing environment based on web-apps with one master server where multiple processing servers register themselves. Communication is done by calling action via HTTP. And therefore I have to let master server know about URL

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Wojciech Ciesielski
[EMAIL PROTECTED] wrote: Assuming all of the slaves know the id of the master, then maybe you have a RegisterServlet that's called by a slave processing servers during their init? http://javaalmanac.com/egs/javax.servlet/GetReqUrl.html -Dennis The problem is that slaves know master's URL

Re: [OT] Re: Set focus on a table on page load.

2006-03-16 Thread Mark Lowe
If i've understood the problem, rather than trying to focus on the table you could create the illusion.. You'd need to get a where the table is on the page and perhaps apply some styles to the table. If you cant get the position of the table then an anchor will do.. Just scroll the window to that.

Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Frank W. Zammetti
On Thu, March 16, 2006 10:52 am, Wojciech Ciesielski said: I need to find URL to my application (http://myhost:8080/myAppContext) from within init() method of struts plugin (implementing PlugIn interface). Any ideas how can I do this programatically without specifying it explicitly in one of

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread DGraham
Did you even _LOOK_ at the url that I sent the first time? Your slave starts and fires init() and makes a call to the master, the master will take the request and reconstruct the URL from the slave. Posted again JUST IN CASE: http://javaalmanac.com/egs/javax.servlet/GetReqUrl.html -Dennis

Re: [OT] Re: Set focus on a table on page load.

2006-03-16 Thread Frank W. Zammetti
Should work on IE too... OP, what was the underying goal? Do you just want to make sure the added row is on the screen? If so, I think Mark is on the right track. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo:

validator

2006-03-16 Thread fea jabi
field property=amt depends=validwhen msg name=validwhen key=lbl.notvalidnumber/ var var-nametest/var-name var-value( ((*this* == ) or (*this* != null)) and (*this* = 0) )/var-value /var /field want the value to be greater than 0, but can be empty or

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread DGraham
DuhI misunderstood and I apologize. You need a callback URL...lemme think on that a second. -Dennis [EMAIL PROTECTED] 03/16/2006 11:21 AM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject Re: [OT ]Re:

Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Leon Rosenberg
2cents try { InetAddress addr = InetAddress.getLocalHost(); String hostname = addr.getHostName(); } catch (UnknownHostException e) { } This could easily return localhost (and the ip of 127.0.0.1) or something as useless as this depending on your /etc/hosts. There is no valid way to find

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Frank W. Zammetti
Hehe, don't feel bad... I was *this* close to replying with pretty much the same thing you did, I realized I would have been wrong just before I clicked Send :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti

Re: errorStyleClass

2006-03-16 Thread fea jabi
thankyou, for detail explanation. From: Frank W. Zammetti [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org CC: user@struts.apache.org Subject: Re: errorStyleClass Date: Thu, 16 Mar 2006 11:03:51 -0500 (EST) select

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Dave Newton
[EMAIL PROTECTED] wrote: Did you even _LOOK_ at the url that I sent the first time? Your slave starts and fires init() and makes a call to the master, the master will take the request and reconstruct the URL from the slave. How does this help? This is the URL that the slave requested;

Re: [OT] Re: Set focus on a table on page load.

2006-03-16 Thread Mark Lowe
will this sort of thing do? window.onload = function() { if(rowAdded) { var table = document.getElementById(mytable); tableFocus(table); } } function tableFocus(table) { window.scroll(0,table.offsetTop); table.style.borderColor = #f00;

Re: validator

2006-03-16 Thread Dave Newton
fea jabi wrote: var-value( ((*this* == ) or (*this* != null)) and (*this* = 0) )/var-value Never used validwhen, but wouldn't the boolean equation be something more like: this == or this == null or this = 0? You have something more like it's valid when the value is empty

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Wojciech Ciesielski
Hehe, don't feel bad... I was *this* close to replying with pretty much the same thing you did, I realized I would have been wrong just before I clicked Send :) So may be I should apologize for lack of precision in initial post :-) Absolutely no offense taken anyway and thanks for will to

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Wojciech Ciesielski
OK, thank you all. I thought that it's possible in some easy way through J2EE/Struts API. If not we will try to work around it somehow... Reagards, Wojtek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: validator

2006-03-16 Thread Niall Pemberton
I wouldn't use validwhen to do this - use intRange or I think theres a minvalue - from memory added in 1.2.8, but I could be wrong. Niall - Original Message - From: fea jabi [EMAIL PROTECTED] Sent: Thursday, March 16, 2006 4:22 PM field property=amt depends=validwhen msg

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Leon Rosenberg
a bit crazy suggestion. Why don't you just parse the server.xml at startup to determine the port? regards Leon On 3/16/06, Wojciech Ciesielski [EMAIL PROTECTED] wrote: OK, thank you all. I thought that it's possible in some easy way through J2EE/Struts API. If not we will try to work around it

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Frank W. Zammetti
On Thu, March 16, 2006 1:07 pm, Leon Rosenberg said: a bit crazy suggestion. Why don't you just parse the server.xml at startup to determine the port? I'll one-up your crazyness Leon... How about having a servlet as part of your webapp that starts up before Struts does... then, from your

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Dave Newton
Frank W. Zammetti wrote: How about having a servlet as part of your webapp that starts up before Struts does... then, from your plugin, you scan the local machine by sending a request to every port from 1 to 1, and whichever you get the appropriate reply from is your port. Since we

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Frank W. Zammetti
On Thu, March 16, 2006 1:33 pm, Dave Newton said: Frank W. Zammetti wrote: How about having a servlet as part of your webapp that starts up before Struts does... then, from your plugin, you scan the local machine by sending a request to every port from 1 to 1, and whichever you get the

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Mark Lowe
Why cant the master server provide the information, as i assume that some form of request is being made via a socket or otherwise to register the client? Even if no you can still do what you need by creating a socket or url connection to the master, and have the master send the details back. A

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Leon Rosenberg
On 3/16/06, Mark Lowe [EMAIL PROTECTED] wrote: Why cant the master server provide the information, as i assume that some form of request is being made via a socket or otherwise to register the client? Even if no you can still do what you need by creating a socket or url connection to the

[OT] PropertyEditor

2006-03-16 Thread Mujahid Ali
I have a custom tag in which I am evaluating an attribute as follow: (Locale)ExpressionEvaluatorManager.evaluate(locale, expr, Locale.class, this, pageContext) But I get an error: javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute locale with value

[Shale]/jsf Referencing a component

2006-03-16 Thread James Reynolds
I'm enjoying the helper methods extended from the AbstractViewController and I'd like to send a message to a particular component. For example, here's the slick error() method. protected void error(javax.faces.component.UIComponent component, java.lang.String summary) I'm

Re: [OT] PropertyEditor

2006-03-16 Thread Frank W. Zammetti
I'm not sure about the convertor, but could you instead just do: String localCode = (String)ExpressionEvaluatorManager.evaluate(locale, expr, String.class, this, pageContext); Locale locale = new Locale(localCode); At least that way your only asking the ExpressionEvaluatorManager to deal with a

Re: [OT] PropertyEditor

2006-03-16 Thread Mujahid Ali
Yep thats what I ended up doing. The code (Locale)ExpressionEvaluatorManager.evaluate(locale, expr,Locale.class, this, pageContext) was working against standard.jar (1.0).So just not sure why this is breaking all of a sudden. Thanks, Mujahid Frank W. Zammetti wrote: I'm not sure

[Shale] shale-mailreader could not be started

2006-03-16 Thread Mark Shifman
Hi : Today I got the shale-mailreader-20060316.war, dropped it into my webapps dir, went to the tomcat manager and it wasn't running. I tried to start it and was told Message: FAIL - Application at context path /shale-mailreader-20060316 could not be started I am using Apache Tomcat

Re: [Shale]/jsf Referencing a component

2006-03-16 Thread Craig McClanahan
On 3/16/06, James Reynolds [EMAIL PROTECTED] wrote: I'm enjoying the helper methods extended from the AbstractViewController and I'd like to send a message to a particular component. Good idea :-). For example, here's the slick error() method. protected void

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Mark Lowe
On 3/16/06, Leon Rosenberg [EMAIL PROTECTED] wrote: On 3/16/06, Mark Lowe [EMAIL PROTECTED] wrote: Why cant the master server provide the information, as i assume that some form of request is being made via a socket or otherwise to register the client? Even if no you can still do what you

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Leon Rosenberg
hmm, I suppose the poster wants to run a n workers for m applications scenario with own load balancing, and wants to add new applications and servers dynamically. right? Leon On 3/16/06, Mark Lowe [EMAIL PROTECTED] wrote: On 3/16/06, Leon Rosenberg [EMAIL PROTECTED] wrote: On 3/16/06, Mark

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Frank W. Zammetti
Ok, here's another possibility... From the plug-in, launch a daemon thread (daemon just in case the server has to go down before the thread is done, in which case it won't block the shutdown). Have the thread sleep for some amount of time, 30 seconds maybe, however long on average it takes your

RE: [Shale]/jsf Referencing a component

2006-03-16 Thread James Reynolds
Works like a charm! I used the binding method and now I'm off and running. Thanks! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Thursday, March 16, 2006 1:42 PM To: Struts Users Mailing List Subject: Re: [Shale]/jsf

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Dave Newton
Leon Rosenberg wrote: hmm, I suppose the poster wants to run a n workers for m applications scenario with own load balancing, and wants to add new applications and servers dynamically. That was my assumption; random slaves should be able to volunteer automagically on startup. Really I

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Dave Newton
Frank W. Zammetti wrote: From the plug-in, launch a daemon thread (daemon just in case the server has to go down before the thread is done, in which case it won't block the shutdown). Have the thread sleep for some amount of time, 30 seconds maybe, however long on average it takes your app to

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Leon Rosenberg
On 3/16/06, Frank W. Zammetti [EMAIL PROTECTED] wrote: Ok, here's another possibility... From the plug-in, launch a daemon thread (daemon just in case the server has to go down before the thread is done, in which case it won't block the shutdown). Have the thread sleep for some amount of

Re: [Shale] shale-mailreader could not be started

2006-03-16 Thread Craig McClanahan
On 3/16/06, Mark Shifman [EMAIL PROTECTED] wrote: Hi : Today I got the shale-mailreader-20060316.war, dropped it into my webapps dir, went to the tomcat manager and it wasn't running. I tried to start it and was told Message: FAIL - Application at context path /shale-mailreader

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Frank W. Zammetti
Hmm... yeah, I guess your right :) D'oh! I made the onconscious assumption that the slave would know about itself, but if that were true there wouldn't be any reason to do any of this, it could just send that information to the master straight away. Sorry, I missed the obvious :) -- Frank W.

Re: [Shale] shale-mailreader could not be started

2006-03-16 Thread Wendy Smoak
On 3/16/06, Mark Shifman [EMAIL PROTECTED] wrote: I also get this error: 2006-03-16 15:29:03 StandardContext[/shale-mailreader-20060316]Exception starting filter shale java.lang.UnsupportedClassVersionError: org/apache/shale/tiger/faces/LifecycleListener (Unsupported major.minor version

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Leon Rosenberg
On 3/16/06, Frank W. Zammetti [EMAIL PROTECTED] wrote: Hmm... yeah, I guess your right :) D'oh! I made the onconscious assumption that the slave would know about itself, but if that were true there wouldn't be any reason to do any of this, it could just send that information to the master

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Frank W. Zammetti
On Thu, March 16, 2006 4:29 pm, Leon Rosenberg said: On 3/16/06, Frank W. Zammetti [EMAIL PROTECTED] wrote: Hmm... yeah, I guess your right :) D'oh! I made the onconscious assumption that the slave would know about itself, but if that were true there wouldn't be any reason to do any of this,

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Dave Newton
Frank W. Zammetti wrote: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.util.*; import java.net.*; public class TestServlet extends HttpServlet { public void init(ServletConfig config) { try { ServletContext context =

[OT] JSTL question

2006-03-16 Thread Kalcevich, Daniel
I am trying to access a session object where the key is the field ACCOUNT_PROFILE_SESSION_ATTRIBUTE in a Constants JAVA file called GlobalConstants. I created a wrapper around it that extends Map (JSTLConstants) to contain all the constants so I could access it via JSTL. I am trying to do the

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Leon Rosenberg
On 3/16/06, Dave Newton [EMAIL PROTECTED] wrote: Frank W. Zammetti wrote: Unfortunately, it has one minor drawback: it doesn't work :) Minor quibble. Dave Frank, Dave... even if it would work, how can you guarantee it resolves the proper hostname? the default linux installation

[OT]FIELDSET and Screen Size

2006-03-16 Thread Caroline Jen
I put a FIELDSET (i.e., the fieldset ) around a 'table'. I (as a developer) am viewing a 1280*1024 screen. Everything looks fine. The FIELDSET (a thin line box) is drawn along the right and left edges of the screen. Because most of the users have a screen size of 1024*768. When I adjust the

Re: [OT]FIELDSET and Screen Size

2006-03-16 Thread Dave Newton
Caroline Jen wrote: Instead a horizontal scrollbar is automatically created because the FIELDSET is still 1280 in width. Why? I'm not aware that fieldsets take a width argument. Is it inside another element that defines an absolute width? Maybe an HTML newsgroup would be better. Dave

Re: has struts reached the saturation

2006-03-16 Thread Paul Benedict
I believe Dakota is correct in this area. The problem is not with JSF itself, but the way the Struts team has divided itself into competing camps. JSF and Struts are competing because their approaches are orthogonal; it doesn't make any sense to do both unless you are on a migration path. When

[Problem Solved]Re: [OT]FIELDSET and Screen Size

2006-03-16 Thread Caroline Jen
I am very sorry, Dave, for taking up your time. I have found the problem. The problem is not the FIELDSET. The problem is caused by something else in that web page. My apology. --- Dave Newton [EMAIL PROTECTED] wrote: Caroline Jen wrote: Instead a horizontal scrollbar is automatically

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Frank W. Zammetti
Dave Newton wrote: Two things jump out at me: 1) It looks like it's container-dependent: The servlet container must implement the URL handlers and |URLConnection| objects that are necessary to access the resource. 2) It's not making a real request so the container might short-circuit the

  1   2   >