Re: [OT] invoking another app w/o include or forward

2005-02-03 Thread Erik Weber
Great idea. Thanks. Erik Leon Rosenberg wrote: Why don't you make it via URLConnection to the another application? URL myURL = new URL("administrative_application_url); URLConnection con = myURL.openConnection(); ? Regards Leon -Ursprüngliche Nachricht- Von: Erik Weber [mailto:[E

Want to know abt patterns in Struts.

2005-02-03 Thread Akshay Pandit
Hi to all, I would like to know how many j2ee patterns does struts framework make use of. And also one more thing, I want to insert UNICODE data in Database, I've created the database with unicode support, what changes are needed on struts end to make the application in UNICODE . Thanks before

Re: [OT] invoking another app w/o include or forward

2005-02-03 Thread Leon Rosenberg
Why don't you make it via URLConnection to the another application? URL myURL = new URL("administrative_application_url); URLConnection con = myURL.openConnection(); ? Regards Leon > -Ursprüngliche Nachricht- > Von: Erik Weber [mailto:[EMAIL

Re: [OT] invoking another app w/o include or forward

2005-02-03 Thread Leon Rosenberg
Why don't you make it via URLConnection to the another application? URL myURL = new URL("administrative_application_url); URLConnection con = myURL.openConnection(); ? Regards Leon > -Ursprüngliche Nachricht- > Von: Erik Weber [mailto:[EMAIL

Re: [OT] invoking another app w/o include or forward

2005-02-03 Thread Erik Weber
Hmm should I have the administrative Servlet set a "command" object in the naming server and then let my Struts action look it up with JNDI? Erik Weber wrote: I have a Struts Action that needs to invoke another Servlet application running in the same container (but in a different Web app) to pe

[OT] invoking another app w/o include or forward

2005-02-03 Thread Erik Weber
I have a Struts Action that needs to invoke another Servlet application running in the same container (but in a different Web app) to perform an administrative task. The Action does not need to include the response from this other Servlet in its response to the user. I just want to invoke it an

Customizing application resources per user

2005-02-03 Thread Ara Vartanian
Hello, I had a design question about customizing message resources per user. The obvious route for such a thing would be to create a custom MessageResource object to implement the services I need. This is easy enough if the the message resources were only going to be used at the Action level, as

Re: wizard form and checkboxes that won't turn off

2005-02-03 Thread James Mitchell
The problem is that the browser submits a value of "on", when you check a checkbox and submit the form. However, if you uncheck the checkbox and submit the form, the browser does _not_ submit "off" or "false" or anything. So, with your form sitting in session, how will it know that you want it

Re: ActionError / ActionMessage

2005-02-03 Thread Corey Probst
> If so does anyone know why locale is now deprecated? A locale attribute of true stores a Locale object in the session and creates that session if it doesn't exist. This is not a good thing for apps that don't support them. Use the lang attribute to correctly accomplish this. http://struts.apa

Re: ActionError / ActionMessage

2005-02-03 Thread Tim Christopher
Am I right in thinking that HtmlTag relates to the element? >> http://struts.apache.org/api/org/apache/struts/taglib/html/HtmlTag.html If so does anyone know why locale is now deprecated? On Fri, 04 Feb 2005 02:10:31 +0100, Laurent <[EMAIL PROTECTED]> wrote: > Tim Christopher wrote: > > Hi, > >

Re: ActionError / ActionMessage

2005-02-03 Thread Corey Probst
> > Does this mean I should always use the ActionMessage, or does the > ActionError come in useful for certain situations? > ActionError was deprecated in version 1.2.0. Even if you are using a version prior to this you should still use ActionMessage for future considerations. ActionErrors wou

Re: ActionError / ActionMessage

2005-02-03 Thread Laurent
Tim Christopher wrote: Hi, Can anyone let me know when an ActionError should be used in place of an ActionMessage, or visa versa. It seems like the ActionMessage is preferred as it does not encourage markup to be placed within the resources file. Does this mean I should always use the ActionMessag

Re: I have a jsp. that has two included jsp's that are actually struts actions but the response only ret

2005-02-03 Thread Kris Schneider
Sort of. Remember, the "normal" result of a Struts action is the equivalent of RequestDispatcher.forward(). So, I imagine you're also seeing an IllegalStateException as well. You've got the equivalent of the following: includer.jsp: - <@% page contentType="text/plain" %> Before forwa

RE: [ANN] Free JSP Editor for Eclipse

2005-02-03 Thread Carlos Chang
Cedric, After the installation, when you run NitroX, if you previously installed a trial some time ago, it should have prompted you and provided a link to activate. I'm not sure why it didn't. I'll check with QA. In the meantime, you can go here: https://devclub.m7.com/startLogin.do and clic

RE: Help with logic tags, and commas please.

2005-02-03 Thread Mick.Knutson
Can someone please help me to get the print to work. I keep trying to use the fmt, or the c:out tags, but nothing is actually printing the value of ${product} as converted from the ApplicationResources value. Mick Knutson Wells Fargo Business Direct (415) 222-1020 "This mes

RE: [ANN] Free JSP Editor for Eclipse

2005-02-03 Thread Carlos Chang
Erik, This is due to the previous installation. The licensing scheme detects a deactivation and thinks it's expired. You should be getting a prompt to activate or purchase. Click "activate" and it will take you to a registration page where you can provide an email where the activation key will

Re: wizard form and checkboxes that won't turn off

2005-02-03 Thread jelything
Thanks Eric, I wasn't sure exactly where you meant me to put that, so I tried it here: <..snip..> public ActionForward nextForm(ActionMapping mapping, ActionForm form, HttpServletRequest request,

Re: Validate Array in Struts

2005-02-03 Thread Manisha Sathe
Few days back i also posted the query much similar to yrs, i am attaching the reply i got from Matt below for yr reference. Hope this helps u regards Manisha Manisha Sathe wrote: > I have a form whose fields are from an dynamic customer array. I display Customer name and giving i/p field f

ActionError / ActionMessage

2005-02-03 Thread Tim Christopher
Hi, Can anyone let me know when an ActionError should be used in place of an ActionMessage, or visa versa. It seems like the ActionMessage is preferred as it does not encourage markup to be placed within the resources file. Does this mean I should always use the ActionMessage, or does the Action

Conditionaly setting an element attribute

2005-02-03 Thread Laurent
Hi, I need to do something like this: ${colspan} loads more JSTL tags i.e. set the colspan attribute of the element only if colspan is not 1. This doesn't work as must be a direct subelement of (here there is in between). How should I do this? Thanks. ---

Re: wizard form and checkboxes that won't turn off

2005-02-03 Thread Eric Lemle
this might help, in your action not sure if this is in 1.1 either. ActionForward cleanDisplay= new ActionForward("add your code here"); cleanDisplay.setRedirect(true); return cleanDisplay; Eric D. Lemle Senior Programmer / Analyst Intermountain Health Care 36 South State Street, Suite 110

wizard form and checkboxes that won't turn off

2005-02-03 Thread Janice
Could somebody please refer me to a solution to this? I have a form bean (session-scoped) that is displayed over 3 pages. There are "back" and "next" buttons. Once a checkbox is selected and the user has moved to another page, it can't be cleared again. I have read that this is because the c

Re: logic TagLib and getRemoteUser()

2005-02-03 Thread Niall Pemberton
Jakarta Taglibs appears to have such a thing: http://jakarta.apache.org/taglibs/doc/request-doc/intro.html http://jakarta.apache.org/taglibs/doc/request-doc/request-1.0/index.html#request So you should be able to do what you want, i.e Niall - Original Message - Fr

I have a jsp. that has two included jsp's that are actually struts actions but the response only ret

2005-02-03 Thread Eric Lemle
I have a jsp. that has two included jsp's that are actually struts actions but the response only returns the first one. I have tried flush="false" (Doesn't matter) I have tried the Eric D. Lemle Senior Programmer / Analyst Intermountain Health Care 36 South State Street, Suite 1100 Salt La

Re: logic TagLib and getRemoteUser()

2005-02-03 Thread Jeff Beal
Look at the documentation for the and tags. Each tag has an attribute 'role' where you can specify a comma-separated list of roles. What I think you want is: with the role attribute in each case having the list of all roles you define in your application descriptor. -- Jeff Frank S

Re: logic TagLib and getRemoteUser()

2005-02-03 Thread Frank Schaare
Hi, Do you mean that you want to display one image if the user is logged in and a different image if the user is not logged in? Exactly. <%=request.getRemoteUser()%> is null when the user ist not loged in. If so <%=request.getRemoteUser()%> gives me the string of the username. IÂm looking for

Re: Links and Targets

2005-02-03 Thread Susan Bradeen
On Thu, 3 Feb 2005 09:14:07 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > I'm very very discouraged with not being able to resolve this problem. > > I do know that this is a WebSphere Studio Application Developer (WSAD) > related problem but I have being searching the web for half

Re: Help with logic tags, and commas please.

2005-02-03 Thread Kishore Senji
>value="${creditApplicationListDto.displayProducts[${key}]}"/>, I would return a collection from teh DTO for only true values. The reason is JSTL cannot invoke the keySet() method on the Map (Since the method doesn't confine to JavaBean spec

Re: logic TagLib and getRemoteUser()

2005-02-03 Thread Jeff Beal
Frank Schaare wrote: Hi, iÂd like to diplay an image whether the user is loged in or not (CMS). Do you mean that you want to display one image if the user is logged in and a different image if the user is not logged in? -- Jeff -

logic TagLib and getRemoteUser()

2005-02-03 Thread Frank Schaare
Hi, iÂd like to diplay an image whether the user is loged in or not (CMS). Therefore iÂd like to use the logig taglib, but i canÂt access the request object. Any jsp fragment like <%=request.getRemoteUser()%> works fine, but how do i translate this into suitable arguments for the logic tags ? t

Validate Array in Struts

2005-02-03 Thread Paulo César M. Jeveaux
Hi I have html form which containes product name and product no. these product name and product number can be in 'N' Numbers. For this i have taken Array of Product Names and Product Number. But i am unable to validate these arrays . Can You please tell me how we can validate array. T+ -- /**

RE: Help with logic tags, and commas please.

2005-02-03 Thread Mick.Knutson
I seem to be getting an error getting a map, from a method in my DTO, then printing the KEY from the Map via the c: tags. DTO method: = public Map getDisplayProducts() { Map map = new HashMap(); if(this.getBusinessLine() != n

Re: JSTL & HTML Options

2005-02-03 Thread Jeff Beal
<%= Constants.MY_CONSTANT %> -- Jeff CRANFORD, CHRIS wrote: I have defined a test class with constants as follows: public class Constants { public final static String MY_CONSTANT = "OK"; } What I want to do is in my html:option tag, I want to set the value associated with that tag to the constan

RE: Help with logic tags, and commas please.

2005-02-03 Thread Mick.Knutson
How do I check to make sure there are any elements in the Map? There is a possibility that the map will be empty. Mick Knutson Wells Fargo Business Direct (415) 222-1020 "This message may contain confidential and/or privileged information. If you are not the addressee or aut

RE: JSTL & HTML Options

2005-02-03 Thread Slattery, Tim - BLS
> So you're not able to reference static public final > properties in the same fashion as scriplets? > <%=Constants.MY_CONSTANT%> Tags are fundamentally different from scriptlets. Scriptlets are simply Java code, and you can address a member variable of a class from a scriptlet just as you could

trouble referencing struts taglibs: TldLocationsCache?

2005-02-03 Thread John McGrath
Hi All, I'm migrating an application from WebLogic 6.1 to Tomcat 5.0, and having a problem getting Tomcat to process taglibs correctly. The *.tld files are in WEB-INF, and web.xml is set up the same as in struts-examples, and the same as we've been using successfully in WebLogic: /tags/struts-

Re: Avoid resubmit

2005-02-03 Thread Brandon Mercer
Hello Hong, I'm not sure how to handle this Read up on it, I know that it worked fine for me the way I explained to you. It doesn't seem that the client would make a difference in how this works either. Even if it did queue it up, the first submit in queue would hit the server, respond bac

RE: JSTL & HTML Options

2005-02-03 Thread CRANFORD, CHRIS
So you're not able to reference static public final properties in the same fashion as scriplets? <%=Constants.MY_CONSTANT%> -Original Message- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 11:28 AM To: 'Struts Users Mailing List' Subject: RE: JSTL &

Re: struts 1.2.4 + tomcat 5.5.7 difficulties

2005-02-03 Thread Vincent
Thanks for the info, I am not running Forrest but it could very well be a problem with the parser. I'll continue pursuing the issue with the tomcat developers. Thanks [EMAIL PROTECTED] wrote: The tlds are not in struts.jar, check the Struts distribution, it is there, but I don't remember where it i

Re: Avoid resubmit

2005-02-03 Thread Cedric Levieux
You can have in your own page a js code that active a boolean after your first submit and disable your submit button. Just my 2 cents, Cedric - Original Message - From: "Anthony Hong" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, February 03, 2005 3:28 PM Subject:

OT: X-Forms (HTML replacment) starts

2005-02-03 Thread Vic
http://www.mozilla.org/press/mozilla-2005-02-02.html .V -- Forums, Boards, Blogs and News in RiA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tiles and Facades

2005-02-03 Thread Shey Rab Pawo
On Thu, 3 Feb 2005 10:36:50 -0500, Benedict, Paul C <[EMAIL PROTECTED]> wrote: > 1. Placing definitions in XML. This solution works well with Struts because > I can hide all my JSP in WEB-INF, define how each page is decorated, and > invoke the tile definition name in a Struts forward. > > 2. Plac

RE: JSTL & HTML Options

2005-02-03 Thread Slattery, Tim - BLS
> I have defined a test class with constants as follows: > public class Constants > { > public final static String MY_CONSTANT = "OK"; > } > What I want to do is in my html:option tag, I want to set the > value associated with that tag to the constant MY_CONSTANT. > How would one do this?

Re: Where is the documentation on how to get old source?

2005-02-03 Thread Joe Germuska
At 9:57 AM -0600 2/3/05, [EMAIL PROTECTED] wrote: Well, someone here may have a better answer; I would probably advise checking out http://svn.apache.org/repos/asf/struts/core/tags/STRUTS_1_1 from SVN. Joe But in the past when looking for back-level source on some of the commons components, I us

JSTL & HTML Options

2005-02-03 Thread CRANFORD, CHRIS
I have defined a test class with constants as follows: public class Constants { public final static String MY_CONSTANT = "OK"; } What I want to do is in my html:option tag, I want to set the value associated with that tag to the constant MY_CONSTANT. How would one do this? -=cc=- ---

Re: Where is the documentation on how to get old source?

2005-02-03 Thread Paul Roubekas
That got me what I needed. I looked at the dates and concluded I needed b3. Thank you very much Hubert Rabago <[EMAIL PROTECTED]> 02/03/2005 10:54 AM Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject Re: Where is the documentation on how to get old s

Re: Where is the documentation on how to get old source?

2005-02-03 Thread Jeff_Caswell
Well, someone here may have a better answer; But in the past when looking for back-level source on some of the commons components, I used the jar file dates. Then located the source archive directory entry with a matching date. Hope this helps. JC

Re: Where is the documentation on how to get old source?

2005-02-03 Thread Hubert Rabago
Try this: http://archive.apache.org/dist/jakarta/struts/source/ which has this link: http://archive.apache.org/dist/jakarta/struts/source/jakarta-struts-1.1-src.zip On Thu, 3 Feb 2005 08:35:38 -0700, Paul Roubekas <[EMAIL PROTECTED]> wrote: > http://archive.apache.org/dist/jakarta/struts/struts-l

RE: Tiles and Facades

2005-02-03 Thread Benedict, Paul C
Jack and Joe, I believe there are 2 ways of using Tiles: 1. Placing definitions in XML. This solution works well with Struts because I can hide all my JSP in WEB-INF, define how each page is decorated, and invoke the tile definition name in a Struts forward. 2. Placing Tiles tags in JSP. This s

Re: Where is the documentation on how to get old source?

2005-02-03 Thread Paul Roubekas
http://archive.apache.org/dist/jakarta/struts/struts-legacy/ only has version 1.0 http://archive.apache.org/dist/jakarta/struts/old/release/ Has three minor version of version 1.1. An 'b1', 'b2', and 'b3' version. My manafest file does not tell which minor version I have What am I missing?

Re: Tiles and Facades

2005-02-03 Thread Joe Germuska
At 10:12 AM -0500 2/3/05, Benedict, Paul C wrote: I read a rumor that said Tiles will become its own top-level subproject in Jakarta. Is that true? There was considerable discussion about this on the dev list about a month ago. The intention first is to refactor Tiles to demonstrate that it is i

Re: Tiles and Facades

2005-02-03 Thread James Mitchell
Not Jakarta, but Apache. Jakarta is a subproject. And it's no rumor http://wiki.apache.org/struts/TilesTopLevel You should only need to "litter" the layout file(s) that you need. I usually get away with 1 or 2. In the projects that I have any control over, linking directly to a JSP is unac

Re: Tiles and Facades

2005-02-03 Thread Shey Rab Pawo
Hello, Paul, I am not sure exactly what you are getting at here, although the topic is clear. I guess that one thing that makes reading this difficult is that I have not investigated SiteMesh. I do use Tiles definitions in XML exclusively, and you seem to be talking about situations where that i

Tiles and Facades

2005-02-03 Thread Benedict, Paul C
I read a rumor that said Tiles will become its own top-level subproject in Jakarta. Is that true? Also, I think Tiles is great, but I find it very annoying to litter every JSP page with tags to decorate my pages. While it makes sense to put the tile definitions in XML when I do Struts development

Re: Where is the documentation on how to get old source?

2005-02-03 Thread Jeff_Caswell
You can find it all here: http://archive.apache.org/dist/jakarta/ JC "Paul Roubekas"

Re: Avoid resubmit

2005-02-03 Thread Anthony Hong
I count a problem when use Struts Token. When I submit a form, Action class will check token, get data and response to customer. But If I click more than one time during Action processing request, It will send request one by one after each response. That seams, IE put my click even in a queue and s

Links and Targets

2005-02-03 Thread gdeschen
Hi, I'm very very discouraged with not being able to resolve this problem. I do know that this is a WebSphere Studio Application Developer (WSAD) related problem but I have being searching the web for half a day now without any success. So I'm turning to you for help. I have imported a project

Where is the documentation on how to get old source?

2005-02-03 Thread Paul Roubekas
I need to get the source for version 1.1 of struts. Could you tell me where the documentation is that tell how to get source from prior versions. Paul H. Roubekas IT Specialist IBM Global Services [EMAIL PROTECTED] 1-877-437-7288 t/l 273-3425

Input Array

2005-02-03 Thread Paulo César M. Jeveaux
Hi to All How I must precede to validate an input Array? I am using DynaActionForms, but I do not know what to place much less in struts-config in validation :( -- /** * @author Paulo César M. Jeveaux * Java Consultant * @version 21.0 * http://www.portaljava.com * @deprecated */ -

Re: Avoid resubmit

2005-02-03 Thread Brandon Mercer
Kalluru Uma. Maheswar wrote: What is this "Token System"? How to use it? Two lines of code really! When you create the form you'll do public ActionForward yourForm( final ActionMapping mapping, final ActionForm form, final HttpServletRequest request, final HttpServletResponse respon

RE: Avoid resubmit

2005-02-03 Thread Kalluru Uma. Maheswar
What is this "Token System"? How to use it? -Original Message- From: Cedric Levieux [mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 5:23 PM To: Struts Users Mailing List Subject: Re: Avoid resubmit By using the Token system - Original Message - From: "Kalluru Uma.

Re: Avoid resubmit

2005-02-03 Thread Cedric Levieux
By using the Token system - Original Message - From: "Kalluru Uma. Maheswar" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, February 03, 2005 12:42 PM Subject: Avoid resubmit Hi, I have a form with a simple text box and a text area. The user enters some informatio

Avoid resubmit

2005-02-03 Thread Kalluru Uma. Maheswar
Hi, I have a form with a simple text box and a text area. The user enters some information in the boxes and presses submit button. The information is inserted into the database and I show a confirmation page to the user. Now when the user refreshes the page, the information is resubmitted into t

Re: [ANN] Free JSP Editor for Eclipse

2005-02-03 Thread Cedric Levieux
I download the JSP editor free license, the html server doesn't ask me for an email so how can i receive a lice / serial ID ? ^^ I use Eclipse 3.0 RC1 Hope it will help, Cedric - Original Message - From: "Carlos Chang" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday