HELP: about to get datasource of struts and pass to logic beans...

2003-12-05 Thread Ricky
hi, there, with my project i had several queries about get datasource in struts. i know how to get datasource in struts, just as in myAction, use getDataSource method and return DataSource object, and go on to get connection i also know the logic beans between the Controller and

Very Troubled in Finding Ways to Pass a Variable to a Class

2003-12-05 Thread Caroline Jen
I have a class FindEditorData.java. I want to pass a vairable 'username' to this class for some processing. This class is invoked from a JSP: View Articles and the value of the 'username' is obtained this way: String username = request.getRemoteUser(); Due to my limited knowledge in Struts,

access dynamic records

2003-12-05 Thread ajay brar
hi! I have a situation where a user is allowed to create tables in a database and then specify what fields there will be. He should then be able to access the database from the web interface and add/edit/delete entries. so far i have been using ActionForms to represent a single record and knew

Re: messages tag not displaying messages

2003-12-05 Thread Richard Yee
Frank, Please disregard the last message. I wasn't paying attention and was looking at the Struts 1.0 docs instead of Struts 1.1. If you are using ActionMessages, then in your action, you'd have something like this: ActionMessages messages = new ActionMessages(); ActionMessage msg = new ActionM

Re: messages tag not displaying messages

2003-12-05 Thread Richard Yee
Frank, I believe you want to use the tag. There isn't an tag. -Richard At 06:18 PM 12/5/2003, you wrote: The messages tag supposed to display all the messages automatically ? When I place this on the JSP, the messages do not display: <[EMAIL PROTECTED] prefix="html" uri="/struts-html"%

messages tag not displaying messages

2003-12-05 Thread Frank Calfo
The messages tag supposed to display all the messages automatically ? When I place this on the JSP, the messages do not display: <[EMAIL PROTECTED] prefix="html" uri="/struts-html"%> I know that the message key is correct, the message resource file can be found, and the messages colle

RE: Tomcat 4.1.29 & Struts

2003-12-05 Thread David Friedman
Psst. I think you have the wrong DTD: http://jakarta.apache.org/struts/dtds/struts-config_1.0.dtd Won't resolve for me (I use 1.1 anyway) but this does: http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd Regards, David -Original Message- From: Yee, Richard K,,DMDCWEST [mailto

RE: Tomcat 4.1.29 & Struts

2003-12-05 Thread Yee, Richard K,,DMDCWEST
Mukund, Are there any messages in the log file? Are you using log4j and did you set the logging level to debug? It shouldn't be a Classpath issue if the file is located in your webapp's WEB-INF/classes directory. That is automatically put in your apps classpath. -Richard -Original Message---

RE: Tomcat 4.1.29 & Struts

2003-12-05 Thread Mukund Ramadoss
Hi Richard, Thanks for your mail. Actually I am running on windows and there is not .txt extenstion. The filename is ApplicationResources.properties. (not ApplicationProperties.properties). Could this be a classpath issue? How do I check. Thanks again. Mukund -Original Message- From: R

RE: Tomcat 4.1.29 & Struts

2003-12-05 Thread Richard Yee
Mukund, If you are running on Windows, have you ever edited the ApplicationProperties.properties file with notepad? Could it possibly have a .txt extension after the .properties extension? If you are running on Unix, is the case correct on the file name? -Richard --- Mukund Ramadoss <[EMAIL PROTE

Re: Using A DynaActionForm To Populate A Collection In The Object It Represents

2003-12-05 Thread Richard Yee
Toby, Yes, you can have Struts populate a DynaActionForm with a complex datatype. You need to use indexed properties and put the form in Session scope. Check out these articles by James Turner: http://www.developer.com/java/other/article.php/2214681 http://www.developer.com/java/other/article.php/

RE: Tomcat 4.1.29 & Struts

2003-12-05 Thread Mukund Ramadoss
I removed the key in the struts_config. But still the result is the same. My struts-config looks like this: -- http://jakarta.apache.org/struts/dtds/struts-config_1.0.dtd";> -- My ApplicationResources.properties is in WEB-

Using A DynaActionForm To Populate A Collection In The Object It Represents

2003-12-05 Thread Jame Lathren
Is it possible to use the DynaActionForm to populate a collection (an ArrayList of other objects, for example) in the object it represents? For example: An object (That is represented on a form by the DynaActionForm) that holds an arrayList of other objects; Values from each arrayList are ava

RE: RT expr value in custom tag

2003-12-05 Thread Eric SCHULTZ
Good evening... Thanks for the reponse, I realised this shortly after I posted my question and figured asbestos underpants would soon be required. Shame on me not carrying my research just a little further. Although your final note on RT expression evaluation is something I had not yet realised.

RE: using ApplicationResources in jsp...

2003-12-05 Thread Daniel Lipofsky
Struts has a class called RequestUtils and you can call RequestUtils.message(pageContext, bundle, locale, key); But maybe you should be creating your array in the Action and passing storing it in the Form for the JSP to grab. Then you can get messages in an action like this: // default bundle

RE: from sathish

2003-12-05 Thread David Friedman
Sathish, So, you're using Struts (version 1.0?) and your method signature wasn't working. When you changed it to the one I pulled off the struts web site's api, did it work? Regards, David -Original Message- From: Sathish Babu K R [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 200

RE: .do's come back as 404 file not found

2003-12-05 Thread Dhaliwal, Pritpal (HQP)
Hello Joe, Its maps to *.do Remember that same conf worked like a charm two days ago :) Same conf is also working in another setting. TIA, Paul -Original Message- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2003 11:46 AM To: 'Struts Users Mailing List' Subjec

RE: RT expr value in custom tag

2003-12-05 Thread Van Riper, Mike
Eric, What you are trying to do doesn't really require the JSTL expression language. All you need to do is specify that runtime expressions are to be evaluated for the "parameter" attribute of your custom tag in your TLD file. If you were to look at any of the TLD files that come with Struts, you

Re: Stupid Bean tricks

2003-12-05 Thread Martin Cooper
Assuming your User object is stored in the request under the key "user", the language you want is "en" (English), and the UserData property you want is "message", you would do: -- Martin Cooper "Joe Hertz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I considered that, but (

RE: Log4j with Struts

2003-12-05 Thread Daniel Lipofsky
> > String str = new String(LogonAction.class.getName()); > This is completely off-topic, but using new String(String) is almost always wasteful. Strings are immutable, so there is no need to copy them. - Dan - T

RE: [OT] IE problem. stumped

2003-12-05 Thread Mahesh Joshi
This could be a display driver problem related to IE. I have the same issue sporadically on my machine (WinNT 4.0, IE 5.5 sp2) Our IT folks said its a driver problem and an upgrade could fix it. I am supposed to upgrade to Win2K one of these days. Mahesh >>-Original Message- >>From: Pr

RE: [OT] IE problem. stumped

2003-12-05 Thread Prabhat Kumar (IT)
I just ran the validator as was suggested by Jarnot... The HTML validates fine. What happens is sometimes, a heading from the middle of the page for some reason shifts to the top. And it is very random. Text beside a check-box doesn't show... and then when that region is highlighted it magically

Re: [OT] Log4J raw vs. commons-logging/Log4J (was Re: Log4j with Struts)

2003-12-05 Thread Joe Germuska
Are you talking about the code-level interface (i.e. Log versus Logger) or in terms of the configuration? Because in our applications, we've taken the commons-logging approach, though we initialize the commons-logging package with a complex Log4J configuration, so that we have in essence the be

RE: [OT] IE problem. stumped

2003-12-05 Thread Joe Hertz
IE 5.X and 6.0 are very different beasts. 6.0 in some ways is *less* compliant with the specs then 5.2. > -Original Message- > From: Jarnot Voytek Contr AU HQ/SC > [mailto:[EMAIL PROTECTED] > Sent: Friday, December 05, 2003 1:59 PM > To: 'Struts Users Mailing List' > Subject: RE: [OT] IE

RE: .do's come back as 404 file not found

2003-12-05 Thread Joe Hertz
What's the url pattern for your action servlet defined in web.xml? > -Original Message- > From: Dhaliwal, Pritpal (HQP) [mailto:[EMAIL PROTECTED] > Sent: Friday, December 05, 2003 1:48 PM > To: Struts Users Mailing List > Subject: .do's come back as 404 file not found > > > Hello Everyo

Re: [OT] RE: Is it required to restart weblogic everytime after compiling ?? ? Need help Desperately .. :-(

2003-12-05 Thread Vic Cekvenich
Wendy Smoak wrote: and restarting this weblogic again and again each time i debug .. :-( ... stil waiting for a solution ... Trim your posts! Not only was it off topic, it was 400 lines long. How about doing your development work on Tomcat, then deploying to Weblogic? This has the added adva

RE: [OT] IE problem. stumped

2003-12-05 Thread Jarnot Voytek Contr AU HQ/SC
> -Original Message- > From: Prabhat Kumar (IT) [mailto:[EMAIL PROTECTED] > Sent: Friday, December 05, 2003 12:57 PM > To: [EMAIL PROTECTED] > Subject: [OT] IE problem. stumped > > I'm wondering if anyone has come across this. > > We have this struts application that is about to be deploy

[OT] IE problem. stumped

2003-12-05 Thread Prabhat Kumar (IT)
I'm wondering if anyone has come across this. We have this struts application that is about to be deployed and it works fine, shows all the HTML pages as expected in IE 6.0. As part of our final tests, we began testing the application on IE 5.01 SP1. This is where the application gets all messe

.do's come back as 404 file not found

2003-12-05 Thread Dhaliwal, Pritpal (HQP)
Hello Everyone, I am using: Struts and Resin 2.1.11 All of sudden my index.do, or any other .do is not being recognized by resin anymore. It was working fine two days ago, all of sudden I am getting 404s In the logs I see that its picking up the correct struts-config.xml and it is that Action

Re: dynamic generation of select fields problem

2003-12-05 Thread [EMAIL PROTECTED]
Ruben, I guess that you can't access a property using a sintax of function in: Maybe you need to use the sintax of array: Certo? Paulo Marcio - Original Message - From: "Ruben Pardo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 05,

RE: Stupid Bean tricks

2003-12-05 Thread Joe Hertz
I considered that, but (and I'm an utter newbie so I apologize here) How would I refer to an element of UserData in a tag? > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Martin Cooper > Sent: Friday, December 05, 2003 12:32 PM > To: [EMAIL PROTECTED] > Subject:

dynamic generation of select fields problem

2003-12-05 Thread Ruben Pardo
Hi everybody! This is my problem, i've to generate a variable quantity of select fields. The solution i thougth was a map backed form, that dynamically generate the names of this fields with JSTL, something like this: . .. .. but qhen i try to

RE: Is it required to restart weblogic everytime after compiling ?? ? Need help Desperately .. :-(

2003-12-05 Thread Richard Yee
Shakti, Have you consulted BEA support with this problem? It seems to me that they or their website should provide a direct response to your question. Regards, Richard --- Shakti Simanta <[EMAIL PROTECTED]> wrote: > > Hi Swati, > I have already checked it .. yaar . its in > developmen

[OT] RE: Is it required to restart weblogic everytime after compiling ?? ? Need help Desperately .. :-(

2003-12-05 Thread Wendy Smoak
> and restarting this weblogic again and again > each time i debug .. :-( ... > stil waiting for a solution ... Trim your posts! Not only was it off topic, it was 400 lines long. How about doing your development work on Tomcat, then deploying to Weblogic? This has the added advantage of forcing

RE: Is it required to restart weblogic everytime after compiling ?? ? Need help Desperately .. :-(

2003-12-05 Thread Shakti Simanta
Hi Swati, I have already checked it .. yaar . its in development mode .. can anyone help me out of this damn trouble .. i am getting pissed up working .. day and night .. and restarting this weblogic again and again each time i debug .. :-( ... stil waiting for a solution ... chao .. Sh

Validators

2003-12-05 Thread McRobb, John
Has anyone used validators with anything other than JavaBeans. I am lookig to use it to validate paramaters on fn calls to remote systems. Ta John Tesco Personal Finance Limited is a joint venture between The Royal Bank of Scotland plc and Tesco PLC. Tesco Personal Finance Limited is registe

[OT] Log4J raw vs. commons-logging/Log4J (was Re: Log4j with Struts)

2003-12-05 Thread Kirk Wylie
Joe Germuska wrote: At the risk of quibbling, I would dispute this as a general rule; commons-logging is great for library packages which may be used in a variety of contexts, but unless you're writing a Struts application for general distribution and re-use, there's less justification for using

Re: Stupid Bean tricks

2003-12-05 Thread Martin Cooper
Why not convert your Set into a Map keyed by language / locale? Then get(locale) is effectively provided for you. -- Martin Cooper "Joe Hertz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Probably a very basic question, and infinitely dealableI hope. > > I have a User object

Re: White Space

2003-12-05 Thread Martin Cooper
The catch with this is that you have to take account of things like tags and JavaScript string literals. A naive whitespace collapsing filter is likely to be a buggy one. ;-) -- Martin Cooper "Wendy Smoak" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Derek Clarkson wrote: > Is th

RE: Is it required to restart weblogic everytime after compiling ?? ? Need help Desperately .. :-(

2003-12-05 Thread Dalmia, Swati
check in weblogic.cmd file if the weblogic is set in production environment ? I am using weblogic 8.1 and I never restart my server after compiling a single class file or jsp change if changes in struts config file or web.xml then u might need to bounce your server -Original Message- Fro

Re: dynamic number of lines - Indexed properties ?

2003-12-05 Thread Shantanu Deo
One way to deal with this is to break it up into two parts, in the first step ask the user to specify the number of family members and then create the record and appropriately display the correct number of family members. Another would be to put a Add Member button on the page and essentially in th

Re: Log4j with Struts

2003-12-05 Thread Joe Germuska
On Dec 5, 2003, at 9:03 AM, James Mitchell wrote: Not sure if this was mentioned, but you should configure your app to use commons-logging and then specify in its configuration to use Log4j. That way you can swap out logging implementations by simple configuration and library addtions/removal

Re: iterate over one collection two times in a jsp

2003-12-05 Thread Lynn Guy
I've done this and I just repeat exactly the same iterate with different output and it works fine. Gurpreet Dhanoa <[EMAIL PROTECTED]> wrote:hi Ralf I am facing the same trouble. If u come to know the answer Please let me know as well Thanks in Advance Gary - Original Message - From: "Ra

Re: Is it required to restart weblogic everytime after compiling ?? ? Need help Desperately .. :-(

2003-12-05 Thread Shakti
RE: Is it required to restart weblogic everytime after compiling ?? ? Need help Desperately .. :-(Hi Nick, Sorry buddy i was busy with other stuff so cudn't reply to ur mails ... boss i am still facing the same problem .. i checked the logs even its showing that my new application is

[OT] iPlanet and Tibco question

2003-12-05 Thread Nail, Evan Burke
Sorry for the very off topic post, just got dumped onto another project and am not familiar very iPlanet or Tibco. I have a managed web server on iPlanet 4.1 that is using tibco. I get different behavior when I start the server from the command line verses the console. the command line work

Re: using ApplicationResources in jsp...

2003-12-05 Thread EL AKARI Mehdi
try this: <% String var2 = var %> There is certainly a way of doing it with jstl, nut i don't know it now. Mehdi - Original Message - From: "AMIR-TAHMASSEB Marc" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, December 05, 2003 2:15 PM S

RE: Server and Client side Validation at only once

2003-12-05 Thread Andy Schmidgall
You would have to submit the form when you change tabs. You can do this with the form.submit() method. You might need to set a field in the form to tell the submission result page where to redirect the user once the submission is finished (i.e. send them to B.jsp if everything is ok) -Andy -O

RE: Advantages of Struts?

2003-12-05 Thread McClung, Brian
The property file usage works well if you have an application that is deployed once and doesn't change that often. Also if there aren't several apps running off the same domain. In my case it doesn't work well because there is so much information that changes, potentially from day to day, that th

RT expr value in custom tag

2003-12-05 Thread Eric SCHULTZ
Good morning... I'm trying to write my own custom tag library for Struts. I've had some initial success, but now I'm having some trouble. I want to set an attribute value from the value of a bean get. But what I end up with in my tag is JSP code, not the value in the bean. I.e.: is not tran

Re: Problems with modules

2003-12-05 Thread Henrique VIECILI
Hi, I have the same situation, and it only changes the default configuration to module specific one if the request is to an action wich is declared inside the struts-module-config.xml. So, i think you must have an index.jsp page in the default module that calls some action in the admin module (/ad

Re: session taglib

2003-12-05 Thread James Mitchell
On Fri, 5 Dec 2003, Oron Gill Haus wrote: > James, > > Isn't there a drive to move to JSTL vs. the Struts tag library? I'm > curious as we've been pushing JSTL for this reason (though it rather > flexible). Yes, you are absolutely correct. Use c:set if you can (given the min spec requ). Have a

Re: using ApplicationResources in jsp...

2003-12-05 Thread James Mitchell
On Fri, 5 Dec 2003, Ralf Rapude wrote: > Hi Gary, > >I am facing the same trouble. If u come to know the answer Please let me > >know as well > >Thanks in Advance > I havn't been able to find a solution yet though asking in several ngs > and forums. > I will post to the list if the problem is solv

Re: session taglib

2003-12-05 Thread Oron Gill Haus
James, Isn't there a drive to move to JSTL vs. the Struts tag library? I'm curious as we've been pushing JSTL for this reason (though it rather flexible). Thank you. --- James Mitchell <[EMAIL PROTECTED]> wrote: > On Fri, 5 Dec 2003, struts wrote: > > > In the Jsp i have: > > > > > > > > witc

Re: session taglib

2003-12-05 Thread James Mitchell
On Fri, 5 Dec 2003, struts wrote: > In the Jsp i have: > > > > witch prints the username. Now i want something like: > > <% > > String username= ; > > %> > > but that doesn't work. How can i assign the session variable to the String username ? A scriptlet-free way to do this: > > Thanks !

RE: Problems with modules

2003-12-05 Thread James Mitchell
On Fri, 5 Dec 2003, Lawrence Williams wrote: > Aman, > > Thanks for your reply, > > However I cant see what you are suggesting here? Can you describe what you are > meaning? - > > btw I don’t use the param because as far as im aware it is deprecated > in favour of the element. > > The crux of

Re: ibm ws portal V5 Struts Integration

2003-12-05 Thread ian_d_stewart
According to our contacts, WebSphere 5.1 (scheduled to be released 12/19) will offer full server-side support for J2EE 1.4. Not sure if 5.0.2 supports J2EE 1.3 or not. HTH, Ian

Re: session taglib

2003-12-05 Thread Scott Reisdorf
You are using a Tag Lib within a Scriptlet. You can assign the variable using the scriplet by the following: <% String username = (String) session.getAttribute("userName"); %> hope that helps. -scott At 02:40 PM 12/5/2003 +0100, you wrote: In the Jsp i have: witch prints the username. Now i want

Re: Log4j with Struts

2003-12-05 Thread James Mitchell
On Fri, 5 Dec 2003, Pedro Salgado wrote: > > Do you have the log4j jar on the WEB-INF/lib? > Do you have the log4j.properties on the WEB-INF/classes? > > You have: > String str = new String(LogonAction.class.getName()); > Logger logger = Logger.getLogger(str); > > Shouldn't it be: > Logger logger

using Dyna Beans outside Struts, to process "generic" DTO-s in AP P layer

2003-12-05 Thread Voinea, Marina
Hi everybody, here is a question for the more experienced, and thank you for the fact that you are there to advice the rest of us : In our APP layer we have to support calls from different client types (HTTP requests, XML Rpc etc) and we decided to have our internal data object (DTO) (used t

Re: iterate over one collection two times in a jsp

2003-12-05 Thread James Mitchell
On Fri, 5 Dec 2003, Gurpreet Dhanoa wrote: > hi Ralf > > I am facing the same trouble. If u come to know the answer Please let me > know as well Not sure if this helps, but I do this in several places on my app. However, I use JSTL tag. > Thanks in Advance > Gary > - Original Message

RE: tags for Map creation for the html:link tag

2003-12-05 Thread Appel, Jeremy D
I for one have had to do this as well and this is quite a beneficial feature. I would maybe suggest using JSTL instead of the STRUTS taglibs(logic, bean) since current opinion is to move to JSTL. Jeremy -Original Message- From: Jesse Alexander (KADA 11) [mailto:[EMAIL PROTECTED] Sent:

Re: using ApplicationResources in jsp...

2003-12-05 Thread Ralf Rapude
Hi Gary, >I am facing the same trouble. If u come to know the answer Please let me >know as well >Thanks in Advance I havn't been able to find a solution yet though asking in several ngs and forums. I will post to the list if the problem is solved (but I still hope, that someone of the listmembers

RE: using ApplicationResources in jsp...

2003-12-05 Thread AMIR-TAHMASSEB Marc
I want to do something like this in my jsp : <% XXX.getRessources().getMessage("title.from.ressources"); %> but i don't know what to put instead of XXX. > -Message d'origine- > De : Hunziker Dennis [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 5 décembre 2003 15:03 > À : 'Struts

ibm ws portal V5 Struts Integration

2003-12-05 Thread Olaf Kittelmann
Hi, has anyone tried the struts integration with portal V5? the strutsportal folder under dev contains a StrutsBlank.war that is a J2EE 1.2 webApp. If I want to use the StrutsPortlet with 1.3-features like ejb2.0, what do I have to do? regards, Olaf --

Help Migrating from WebTier to Struts

2003-12-05 Thread Jonathan . Crain
I am trying to migrate a 3ed party application from Macromedia's Jrun platform to Tomcat. The developers used a WebTier framework to create the app. I cannot reach the developers and was wondering if anyone has had experience in switching form WebTier to Struts. I am a complete newbie to Tomcat

RE: Advantages of Struts?

2003-12-05 Thread John . Pitchko
BDY.RTF Description: RTF file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: using ApplicationResources in jsp...

2003-12-05 Thread AMIR-TAHMASSEB Marc
because i have to put it on an array of String and then i use this array in the code by a generic code. > -Message d'origine- > De : Jimmy Emmanual [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 5 décembre 2003 15:10 > À : 'Struts Users Mailing List' > Objet : RE: using ApplicationResource

RE: using ApplicationResources in jsp...

2003-12-05 Thread Jimmy Emmanual
why do you need to? why not just: -Original Message- From: AMIR-TAHMASSEB Marc [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2003 9:07 AM To: Struts Users Mailing List Subject: RE: using ApplicationResources in jsp... because i need to get the value of my property inside a

RE: using ApplicationResources in jsp...

2003-12-05 Thread AMIR-TAHMASSEB Marc
because i need to get the value of my property inside a <% ... %> > -Message d'origine- > De : Hunziker Dennis [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 5 décembre 2003 15:03 > À : 'Struts Users Mailing List' > Objet : RE: using ApplicationResources in jsp... > > > why not try the fo

RE: using ApplicationResources in jsp...

2003-12-05 Thread Hunziker Dennis
why not try the following: -Original Message- From: AMIR-TAHMASSEB Marc [mailto:[EMAIL PROTECTED] Sent: Freitag, 5. Dezember 2003 15:01 To: [EMAIL PROTECTED] Subject: using ApplicationResources in jsp... Hi, i wonder to know if it's possible to use a property in ApplciationResources in

using ApplicationResources in jsp...

2003-12-05 Thread AMIR-TAHMASSEB Marc
Hi, i wonder to know if it's possible to use a property in ApplciationResources in  the jsp code.   I want to do something like this :   <%@ page language="java" %><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %><%@

Re: session taglib

2003-12-05 Thread Gurpreet Dhanoa
hi Try String username=(String)session.getAttribute("username"); You have explicitly cast it into String as it is Serialized. Regards Gary - Original Message - From: "John Ferguson Smart" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, December 05

Re: session taglib

2003-12-05 Thread Oron Gill Haus
You can use JSTL to accomplish this using the: You can also specify the scope within the value expression. This is if you wish to use JSTL. Only a suggestion. Hope it helps you out! --- struts <[EMAIL PROTECTED]> wrote: > In the Jsp i have: > > > > witch prints the username. Now i want so

Re: session taglib

2003-12-05 Thread John Ferguson Smart
Try something like String username = session.getAttribute("username"); or String username = request.getSession(à.getAttribute("username"); struts wrote: In the Jsp i have: witch prints the username. Now i want something like: <% String username= ; %> but that doesn't work. How can i a

session taglib

2003-12-05 Thread struts
In the Jsp i have: witch prints the username. Now i want something like: <% String username= ; %> but that doesn't work. How can i assign the session variable to the String username ? Thanks !

Re: [OT] Athentication filter doesn't filter actions

2003-12-05 Thread Ralf Rapude
Hello Arne, AB> AB> authenticationFilter AB> /* AB> AB> AB> authenticationFilter AB> action AB> I've checked it out before I post the solution and it works fine here. (Tomcat 4.1.27). AB> ideas. BTW, I'm using Tomcat 5 and 2.4 servlets.. So maybe it is a probl

RES: RES: Subclassing ActionServlet

2003-12-05 Thread Felipe Nascimento
Ok. Nice to know about filters. I have found this SecurityFilter Projetct at sourceforge. http://securityfilter.sourceforge.net/ Has anyone used it? Tks Felipe -Mensagem original- De: Guido García Bernardo [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 5 de dezembro de 2003 08:42 P

Re: [OT] Athentication filter doesn't filter actions

2003-12-05 Thread Arne Brutschy
Ralf Rapude wrote: So you should better try this: > [..] > I tried this: authenticationFilter /* authenticationFilter action But I still can access my actions without authenticating. I'm out of ideas. BTW, I'm using Tomcat 5 and 2.4 servlets.. Regards, Arne --

RE: [OT] Athentication filter doesn't filter actions

2003-12-05 Thread Ralf Rapude
>Why is this necessary? >Isn't /*.do a subset of /* ??? Oops. I'm sorry because it is the same (it might be better to think before writing). So you should better try this: CheckUser Authentication Filter /jsps/closed/* CheckUser Authentication Filter action

dynamic number of lines - Indexed properties ?

2003-12-05 Thread Caroline Lauferon
Hello! up to now I had used quite "simple" forms... and now I need some more complicated fields, and don't know where to start from Here is what I want to do, with a simple example: I want to describe a family, with all its members: - to describe the family common properties: Last name:

Re: iterate over one collection two times in a jsp

2003-12-05 Thread Gurpreet Dhanoa
hi Ralf I am facing the same trouble. If u come to know the answer Please let me know as well Thanks in Advance Gary - Original Message - From: "Ralf Rapude" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 05, 2003 4:49 PM Subject: iterate over one collection two times i

RE: Problems with modules

2003-12-05 Thread Lawrence Williams
Aman, Thanks for your reply, However I cant see what you are suggesting here? Can you describe what you are meaning? - btw I don’t use the param because as far as im aware it is deprecated in favour of the element. The crux of my problem is that my index.jsp (Welcome file) cant seem to res

Logic:iterateTag

2003-12-05 Thread Tommy Holm - TELMORE
Hi. I have created a html tag which can used neted inside the struts iterate tag. The idea is that the tag will generate the surrounding TR and TD tags, so that the data exposed from the iterate tag can be properly displayed in several columns for each row. Now the problem is that my tag requires

Re: [OT] Athentication filter doesn't filter actions

2003-12-05 Thread Arne Brutschy
Ralf Rapude wrote: /* > I already tried that, but this doesn't work, it's not even a valid filter mapping (Tomcat gets an Parse Error exception on this mapping). Any ideas? Arne - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: RES: Subclassing ActionServlet

2003-12-05 Thread Guido García Bernardo
This way you can't extend other 'struts core actions' (Dispatch, Lookup...). I think a better way may be: - Using a filter (servlet 2.3) in order to pre and post process the request - Extending RequestDispatcher Regards, Guido. PD. I am not sure, but i think you can find a discussion about that in

Re: Positional problem?

2003-12-05 Thread Bjørn T Johansen
Well, it kind of works... The focus is being set on the correct field, but the browser doesn't scroll the page down to that field. Is it something I am missing? BTJ On Thu, 2003-12-04 at 08:01, John Ferguson Smart wrote: > When we submit the form, we call a Javascript function to set a hidden >

RES: Subclassing ActionServlet

2003-12-05 Thread Felipe Nascimento
A simple way that I use do go: Super Action class, like: UserMustBeLoggedAction{ execute(attribs){ verify session stuff if ok -> myExecute(attribs); else return ActionForward; } abstract myExecute(attribs); } NewAction extends UserMustBeLoggedAction{ m

RE: [OT] Athentication filter doesn't filter actions

2003-12-05 Thread Joe Hertz
Why is this necessary? Isn't /*.do a subset of /* ??? > -Original Message- > From: Ralf Rapude [mailto:[EMAIL PROTECTED] > Sent: Friday, December 05, 2003 6:28 AM > To: Struts Users Mailing List > Subject: Re: [OT] Athentication filter doesn't filter actions > > > Hi, > just repeat the

Re: [OT] Athentication filter doesn't filter actions

2003-12-05 Thread Ralf Rapude
Hi, just repeat the tag like: authenticationFilter /* authenticationFilter /*.do Ralf Rapude __ WEB.DE FreeMail wird 5 Jahre jung! Feiern Sie mit uns und nutzen Sie die neuen Funk

Stupid Bean tricks

2003-12-05 Thread Joe Hertz
Probably a very basic question, and infinitely dealableI hope. I have a User object, which itself contains a Set of UserData objects (the UserData is stuff that needs to be multilingual. Each instance has the part of the user's data that would vary when presented in each language). So, in my

iterate over one collection two times in a jsp

2003-12-05 Thread Ralf Rapude
Hi, with a logic:iterate tag I run over a Collection: ...output It works well but if I try to iterate over the same collection after changing the id (but still in the same jsp): ... output I got this Exception -> Cannot create iterator for this collection It works if I

Re: dynaActionForm,JSTL, and indexed properties

2003-12-05 Thread Charles GAY
my Arraylist has got a variable size. so, i've put in the required action declarations(in struts-config.xml), the DynaActionForm in session scope, and it works! thanks a lot richard for your help! best regards, charles. Message original Sujet: Re: dynaActionForm,JSTL,

[OT] Athentication filter doesn't filter actions

2003-12-05 Thread Arne Brutschy
Hi all, I'm using an authentication filter to control the access to several .jsp pages. At the moment, I'm using the mapping authenticationFilter /* to do this. But this doesn't filter any access to the actions itself, like something.do. Do I have to include my filter manually in

Re: Problems with modules

2003-12-05 Thread amans
Hi, Make the following changes in ur web.xml to ur specific configuration file action org.apache.struts.action.ActionServlet application fr.improve.struts.webapp.layout.example.ApplicationResources config /WEB-INF/struts-config.xml Tha

Problems with modules

2003-12-05 Thread Lawrence Williams
Hi, In my web.xml I have defined a default and named module as follows: config /WEB-INF/struts-config.xml config/admin /WEB-INF/struts-config-admin.xml And index.jsp Where index.jsp is simply: <%@ taglib uri="/tags/struts-logic"

JspParseException !!

2003-12-05 Thread EL AKARI Mehdi
Hi, I recieve the following error and i don't know how to manage with it. I'm actually using Oracle Jdevelopper 9.0.3.3 The error : OracleJSP: oracle.jsp.parse.JspParseException: Ligne n° 2, <%@ taglib uri="/WEB-INF/struts-bean-el.tld" prefix="bean" %> Erreur : oracle.xml.parser.v2.XMLParseExc

Re: Log4j with Struts

2003-12-05 Thread Pedro Salgado
Do you have the log4j jar on the WEB-INF/lib? Do you have the log4j.properties on the WEB-INF/classes? You have: String str = new String(LogonAction.class.getName()); Logger logger = Logger.getLogger(str); Shouldn't it be: Logger logger = Logger.getLogger(LogonAction.class); Pedro Salgado On

Server and Client side Validation at only once

2003-12-05 Thread VENKATESH GANGAL
Hi , I have requirement where I want to validate the form using javascript ( using Struts Validator Framework) . The form is like this. Basically the view has two panes, left hand side a tabs A,B,C,D,E and right hand side will display the current page.say if you click tab A, you will see A.jsp.

Re: FormBean error using Struts 1.1 and Tomcat 5

2003-12-05 Thread John Ferguson Smart
Forget it, guys, I called an exorsist and a vodoo-specialist, who told me to install Tomcat 5.0.16, and now it works. John Ferguson Smart wrote: Anyone got any ideas ? John Ferguson Smart wrote: Hi, I've run into a strange problem using Struts 1.1 with Tomcat 5.0.14 . In a page that previo

from sathish

2003-12-05 Thread Sathish Babu K R
hi david i get session using request.getSession()?y whats in it?tell me. sathish __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ - To unsubscribe, e-mail: [EMAIL P

  1   2   >