Re: Validwhen and array

2006-03-16 Thread coudot
any idea? -- View this message in context: http://www.nabble.com/Validwhen-and-array-t1291360.html#a3451426 Sent from the Struts - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: has struts reached the saturation

2006-03-16 Thread netsql
A similar question would be: What if one developed in Ajax, and the back end tech stack did not matter. What Ajax framework would you use would matter. .V Michael Jouravlev wrote: What if you developed components in good old JSP, and used whatever action framework you like, ---

Re: newbie guestion: JSTL Expression language

2006-03-16 Thread vijay venkataraman
The text as is from JSP 2.0 Spec Point 1. EL expression An element in a JSP page representing an expression to be parsed and evaluated via the JSP Expression Language. Syntactically it is delimited by the ${ and } characters. Point 2. JSP.2.3.5.5 Relational Operators The relational operators a

Re: Developing and running Struts on Tomcat without an Internet Connection

2006-03-16 Thread Joe Germuska
At 1:34 PM +1000 3/17/06, Hey Nony Moose wrote: Richard Yee wrote: I know this is supposed to work, but I'm getting an error starting up my Struts 1.2.8 application on Tomcat 5.5.15 when I unplug my computer from the Internet. The stack trace is: java.net.UnknownHostException: jakarta.apa

Re: Developing and running Struts on Tomcat without an Internet Connection

2006-03-16 Thread Paul Benedict
Try replacing your jar file. This is a long shot, but when I had these before I think the jar got corrupted. It's probably looking for the DTD on the internet because it can find them on your computer. You can always put the DTD's in the WEB-INF root, but you shouldn't since Tomcat 5 should find th

Re: Developing and running Struts on Tomcat without an Internet Connection

2006-03-16 Thread Hey Nony Moose
Richard Yee wrote: > I know this is supposed to work, but I'm getting an error starting up > my Struts 1.2.8 application on Tomcat 5.5.15 when I unplug my computer > from the Internet. > The stack trace is: > > java.net.UnknownHostException: jakarta.apache.org when i get these in this scenario i

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

2006-03-16 Thread Frank W. Zammetti
Are these slaves servers that you have some degree of control over? I ask because if so, can you just dictate that they have to run on some known port, and then you can still get the rest of the information dynamically. Or, almost as good... although my idea of scanning for the port was obvi

Developing and running Struts on Tomcat without an Internet Connection

2006-03-16 Thread Richard Yee
I know this is supposed to work, but I'm getting an error starting up my Struts 1.2.8 application on Tomcat 5.5.15 when I unplug my computer from the Internet. The stack trace is: java.net.UnknownHostException: jakarta.apache.org at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:1

Re: has struts reached the saturation

2006-03-16 Thread Dakota Jack
I think this is basically impossible. If this is possible, someone would have to explain how. You cannot have these two kinds of controllers actually working together as more than incompatible choices. This sort of thinking is what started the problem in Struts. If I were a WW2 buff, I would be

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

2006-03-16 Thread Wojciech Ciesielski
> even if it would work, how can you guarantee it resolves the proper > hostname? the default linux installation resolves > InetAdress.getLocalhost() to "localhost" until you remove the > 127.0.0.1 line from your etc/hosts. Right now the port was the problem. We are not using name-based virtual ho

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

2006-03-16 Thread Wojciech Ciesielski
I didn't expect to trigger such an elaborate discussion ;-) > Personally, I still think that parsing the server.xml and the > context.xml or whatever config files the webserver is using is the > second best option. There is another problem - how can you get path to tomcat root directory? It's no

Re: has struts reached the saturation

2006-03-16 Thread Michael Jouravlev
On 3/16/06, James Mitchell <[EMAIL PROTECTED]> wrote: > What if <--- dangerous I know! > > What if there existed a JSF 1.2 implementation built with WW2 at the > core? > > I'm definitely not an expert with either JSF or WW2, however, I've > looked at both just enough to be convinced that it is po

Re: has struts reached the saturation

2006-03-16 Thread Frank W. Zammetti
Interesting thought James... I don't know how it would turn out, but I certainly don't think it's a crazy idea... I've never thought the whole component vs. page argument made a whole lot of sense. I happen to think the two ideas are compatible, if done right. Maybe this would be the right f

RE: [OT] JSTL question

2006-03-16 Thread Ruben Cepeda
Daniel, I often can across this problem in my development and found that a possible solution is to use the runtime-based version of the JSTL. <%@ taglib prefix="c_rt" uri="http://java.sun.com/jstl/core_rt"; %> It does involve scriplet but which is it's main down fall. Hope it helps *

Re: has struts reached the saturation

2006-03-16 Thread James Mitchell
What if <--- dangerous I know! What if there existed a JSF 1.2 implementation built with WW2 at the core? I'm definitely not an expert with either JSF or WW2, however, I've looked at both just enough to be convinced that it is possible. WW2 has everything I already love about Struts an

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

2006-03-16 Thread Frank W. Zammetti
Leon Rosenberg wrote: 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 linu

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 no

[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 automati

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 you

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

[OT]FIELDSET and Screen Size

2006-03-16 Thread Caroline Jen
I put a FIELDSET (i.e., the ) 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 screen p

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 installat

[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 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 = config.getServl

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

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 mast

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 (Un

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. Z

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 > - Appli

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

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 ap

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: [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 Referencing

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: [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, M

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

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 error(javax.faces.c

[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 T

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

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

[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 n

[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

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

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 bit

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 >

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 alr

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 plug

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

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 > > > > test >

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, e-

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 as

Re: validator

2006-03-16 Thread Dave Newton
fea jabi wrote: >( ((*this* == "") or (*this* != null)) > and (*this* >= 0) ) 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 and the valu

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"; table.style.bor

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: errorStyleClass

2006-03-16 Thread fea jabi
thankyou, for detail explanation. From: "Frank W. Zammetti" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" CC: user@struts.apache.org Subject: Re: errorStyleClass Date: Thu, 16 Mar 2006 11:03:51 -0500 (EST) elements are a bit notorious in not allowi

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

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 MS

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" To "Struts Users Mailing List" cc Subject Re: [OT ]Re: obtaining server URL (or ip and port) from

validator

2006-03-16 Thread fea jabi
test ( ((*this* == "") or (*this* != null)) and (*this* >= 0) ) want the value to be greater than 0, but can be empty or null. Also no chars are allowed. trying using above. but the error gets shown when is a null or empty value. how to fix

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: fzammett

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: 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 expli

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: [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

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 of

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 g

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 AI

Re: errorStyleClass

2006-03-16 Thread Frank W. Zammetti
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 is treated essentially as a separate window. For instance, note that if you have a and you position it over a , regardless of how you try and set the z-index,

[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 r

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

[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 ne

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

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 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 on

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 from the link that leads to the page or via JS on load (the first way is better). hth, Manos ---

[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 n

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.

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. T

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 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 you

Re: help logic:equals

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

Re: Validwhen and array

2006-03-16 Thread coudot
sorry for the mistake. my code is : test ((*this*!=null) or (adr[1] !=null )) -- View this message in context: http://www.nabble.com/Validwhen-and-array-t1291360.html#a3437728 Sent from the Struts - User forum at Nabble.com. -

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 confi

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) the

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 , although it seems to b

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: > > > Prints out the r

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: Prints out the role fine While the following statements are

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: Prints out the role fine While the following statements are newer true:

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 advan

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: Re

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 twea

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. Str

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 (). 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 unsu

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 , although it seems to be allowed in the struts documentation. -- View this mes

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 w

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: 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" > Betreff: Re: ActionForm Stringvariables > Datum: Thu, 16 Mar 2006 14:19:41 +0100 > > well, two re

[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 will

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 exp

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 tag. So if you have something like this in your struts-config,xml: Then to use your "'GeneralMessages" in your jsp you specify bundle="common":

  1   2   >