Struts 1.1 bean:write problem

2004-05-21 Thread Arunkumar Sreedharan
Ref : msg71420 Hi, I suppose the proble is very simple, just add the following things to the web.xml and struts-config.xml In Web.xml init-param param-nameapplication/param-name param-valuecom.xyz.ApplicationResources/param-value /init-param add the above entry below

Any Takers ?RE: Struts Validator and Select boxes

2004-03-26 Thread Janarthan Sathiamurthy
Any help/takers ? -Original Message- From: Janarthan Sathiamurthy Sent: Thursday, March 25, 2004 10:16 PM To: [EMAIL PROTECTED] Subject: Struts Validator and Select boxes Hi, I am using Struts validator. One page of mine has dates displayed as MM DD . All the above 3 are

Re: Struts tag problem (bean:message and bean:write)

2004-03-26 Thread Dmitrii CRETU
Hello Marco, maybe this will help (using struts-el): bean-el:message key='prompt.productType.${product.productType}'/ Dima. Thursday, March 25, 2004, 6:02:54 PM, you wrote: MM Hi all, MM I was wondering if anyone of you have a solution MM For this dilemma. MM I have a collectin of

RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Freddy Villalba Arias
As someone with good experience in MVC-based applications but a newbie to Struts, what I understand from this discussion is that the recommended implementation would have to comply, at least, with this guidelines: - The conversion code is encapsulated in a separate class (I suppose one converter

RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread anuj . upadhyay
+1 I also suggest this approach to keep the date as string during posts and convert them to date object when porcessing the entered dates, surely not in the Form. Depends on what you really want to achieve. Would suggest the KISS rule..:-) Robert Taylor [EMAIL PROTECTED] on 03/25/2004

Re: html inside an action

2004-03-26 Thread ruben
Hi, thanks everybody for the responses, they help us a lot to make a decision, i think that it could be better solution trying to do my requirements with tags , but i need that an import could load a resource dinamycally, something like these c:import url=${sessionScope.SomeVariable} /

Re: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Mark Lowe
I think the way of going about converting is pretty open, either have some conversion utils between the web tier and the model. I tend to do it in the action and then when things get long or i need the code again move it out into a util class or like you're saying make my model util classes

RE: problem with module

2004-03-26 Thread Colm Garvey
I've just finished fixing what I think is the same problem you guys have been having i.e. switching modules on Struts 1.1 First, make sure you have the most recent release build of struts, as I had problems with earler 1.1 builds on weblogic 8.1 I originally started with the

RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Joe Hertz
Since I just wrestled greatly with this particular beast, my $.02 follows. Subclass whatever flavor of ActionForm you use, and give it a method with a footprint like- java.util.Date StringToDate(String) { } This way you can do something like this in your action: public ActionForward

How does ActionForm data pass through container called form based login page?

2004-03-26 Thread Martin Alley
Hi, Suppose I've got a web based form that posts data to an action, and I have that action protected by container form based authorization - how does the ActionForm data get through. I have a situation like this, and my ActionForm is empty after I've been through the form-based login page. One

RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Freddy Villalba Arias
Mark, didn't mean to be pedantic... just wanted to prevent everybody from going through all the (obvious / basic / simple) details and just go to the important stuff. Neither am I an MVC guru. In any case, thanx everybody 4 your help. Regards, Freddy. -Mensaje original- De: Mark Lowe

Re: i18n with Japanese characters and tags....

2004-03-26 Thread atchy
Thank you for your assist, Mr. Jason (B (BJason Lea [EMAIL PROTECTED] wrote: (B (B He was saying it 'can' display Japanese characters. The example doesn't (B have any Japanese characters in in (if i remember correctly), but if (B they are put into the properties files for the locale they

Re: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Mark Lowe
Freddy. No, you misunderstood if you thought I was responding with any hostility whatsoever. There is a general problem where input would be better validated in the web tier so it can be decoupled from the model. So times comparing two dates would be useful and so on. But i think its also try

RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Freddy Villalba Arias
Cool! No offence, Mark. In part, it's my fault since English is not my native tongue and sometimes the same word translated into other language changes the connotation of a phrase. Sh*t happens! :) I believe yours is a valid approach (in fact, was one of the options I was considering for the

Global locale in Struts web applications?

2004-03-26 Thread Jan Normann Nielsen
Hello I have multiple Struts web applications deployed within Jetty but the locale that Struts saves in the session is not shared between the contexts. I guess that is to be expected. But how do I create a work-around for this problem? I need the applications to share the locale so that if

RE: Pls help me in configuring common logger

2004-03-26 Thread sougata
Hi Van I am not using simple logger.I am using apache's commons logger.Pls le me know how to do it Thanks Sougata -Original Message- From: Van Riper, Mike [mailto:[EMAIL PROTECTED] Sent: Friday, March 26, 2004 12:38 PM To: 'Struts Users Mailing List' Subject: RE: Pls help me in

[OT] WSAD problems with Struts

2004-03-26 Thread Oliver Thiel
Hi, I read that some of you had some problems to run Struts apps on WSAD and as I run into that problem too i wanted to know how you solved it! I as far as I understand some turned of different validations including the on concerning Struts, but where couldn't fide the right place to do that!

Re: [OT] WSAD problems with Struts

2004-03-26 Thread Susan Bradeen
Oliver, What version of WSAD are you running? What problems are you having specifically? Validation is controlled through the menu option Window Preferences Validation Susan Bradeen Oliver Thiel [EMAIL PROTECTED] wrote on 03/26/2004 08:09:34 AM: Hi, I read that some of you had some

Re: [OT] WSAD problems with Struts

2004-03-26 Thread Rouven Gehm
Which version of WSAD are you using ? I don't have problems with 5.0 + updates or 5.1. Rouven - Original Message - From: Oliver Thiel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 26, 2004 2:09 PM Subject: [OT] WSAD problems with Struts Hi, I read that some of you

RE: How does ActionForm data pass through container called form based login page?

2004-03-26 Thread Martin Alley
Well I've just simplified by login form - plain html - no struts stuff going on. I've also simplified the filter so detects a fresh logon and starts a session accordingly - no longer any redirecting to LoginAction. However the critical behaviour is still the same - existingCustomerForm - the

Re: [OT] WSAD problems with Struts

2004-03-26 Thread Oliver Thiel
Hi, I have to use: WebSphere Studio Application Developer (Windows) Version: 5.1.0 I developed my app with the StrutsStudio, as it is not that complex. But know I have to run it on WSAD and run into different problems: a. WSAD did not like the validation.XML (so deleted it cause I did

RE: How does ActionForm data pass through container called form based login page?

2004-03-26 Thread Joe Germuska
At 1:59 PM + 3/26/04, Martin Alley wrote: Well I've just simplified by login form - plain html - no struts stuff going on. I've also simplified the filter so detects a fresh logon and starts a session accordingly - no longer any redirecting to LoginAction. However the critical behaviour is

Re: Pls help me in configuring common logger

2004-03-26 Thread roy-strutsuser
On 26 Mar 2004 13:59:25 -, struts-user-digest-help wrote Re: Pls help me in configuring common logger 109791 by: sougata sougata, if you're using Log4j you need to add a file called commons-logging.properties file under your WEB-INF/classes directory. In that file you need one line:

Re: html inside an action

2004-03-26 Thread Niall Pemberton
I posted a tag (StoreTag) which will store the generated html from a jsp in a bean, then in your action you can get the RequestDispatchter and do an include: Details in the following messages: http://www.mail-archive.com/[EMAIL PROTECTED]/msg94956.html http://www.mail-archive.com/[EMAIL

RE: How does ActionForm data pass through container called form based login page?

2004-03-26 Thread Martin Alley
Hi Joe, I might be able to put some general code in the login form (as a jsp) that puts all form data present in the previous page into the login form so it could be passed on, but that will still leave the problem of the method becomes GET instead of POST. I'm really hoping there's a more

RE: How does ActionForm data pass through container called form b ased login page?

2004-03-26 Thread Pady Srinivasan
This is the only solution I can think of: public class RedirectServletRequest extends HttpServletRequest { public RedirectServletRequest(HttpServletRequest req) { this.request = req; } public String getParameter(String name) { if (

Re: Struts Validator and Select boxes

2004-03-26 Thread Niall Pemberton
Posting whats in your validation.xml for the form and the bit of your jsp with your select fields would be helpfull. If you take the fromDay as an example, you are using field.getVarValue(fromDay) - if you don't have a var defined in your validation.xml for fromDay then that would cause the No

RE: How does ActionForm data pass through container called form based login page?

2004-03-26 Thread Joe Germuska
I might be able to put some general code in the login form (as a jsp) that puts all form data present in the previous page into the login form so it could be passed on, but that will still leave the problem of the method becomes GET instead of POST. I'm really hoping there's a more elegant

RE: How does ActionForm data pass through container called form based login page?

2004-03-26 Thread Martin Alley
Paddy, Looks like you've been here before!! :-) It'll take me a bit of time to digest this, but I'll have a look. Does this actually work for you? Thanks Martin -Original Message- From: Pady Srinivasan [mailto:[EMAIL PROTECTED] Sent: 26 March 2004 15:21 To: Struts Users Mailing List

RE: How does ActionForm data pass through container called form based login page?

2004-03-26 Thread Martin Alley
I think I need to do some simple test cases - with and without struts. Martin -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: 26 March 2004 15:20 To: Struts Users Mailing List Subject: RE: How does ActionForm data pass through container called form based login

RE: How does ActionForm data pass through container called form b ased login page?

2004-03-26 Thread Pady Srinivasan
We were going to implement this today or early next week :-)...looking at the code, I feel you don't need to extend ActionServlet at all. Instead the filter will create the request before forwarding to the ActionServlet. public class LoginFilter implements Filter { public void

RE: How does ActionForm data pass through container called form based login page?

2004-03-26 Thread Martin Alley
I'll be very interested to here the outcome... Thanks Martin -Original Message- From: Pady Srinivasan [mailto:[EMAIL PROTECTED] Sent: 26 March 2004 16:07 To: Struts Users Mailing List Subject: RE: How does ActionForm data pass through container called form based login page? We were

[OT] JTA, JDBC and data persistence

2004-03-26 Thread Freddy Villalba Arias
Hello everybody, An off-topic question (it's Friday, I hope you accept it!): I want to implement a Business Object Model on top of many DAOs. Those BOs will be - obviously - related to each other (mainly 1:n and m:n relationships). I must implement this in such way that, when - for

Accessing Struts beans with keys defined in the Globals class

2004-03-26 Thread Denis Laroche
Hello everybody, I hope it's not a trivial question. I'm trying to access the current Locale from a JSP page. The key to access the Locale is stored in variable org.apache.struts.Globals.LOCALE_KEY. So what I did is to look up the value of the variable in the source file

Re: Calling Class Methods

2004-03-26 Thread Nizeyimana Zabulon
let say your class' name is A and your static method is aaa(); all you hava to do is A.aaa(); --- Sunny [EMAIL PROTECTED] a écrit : How can i invoke static methods of a Class without instantiating it in struts - To

Re: Dynaform Type Conversion

2004-03-26 Thread Joe Germuska
--- Joe Hertz [EMAIL PROTECTED] wrote: Does Struts provide a method where I provide it the name of the bean defined in the struts-config.xml and it return me an instance of the appropriate class, with all the dyna properties set up? At 3:19 PM -0800 3/25/04, Hubert Rabago wrote: It does

Why there is no getHeader(String headerName) and getHeaders() met hod in HttpServletResponse?

2004-03-26 Thread Zhang, Larry (L.)
Folks, this may be an off topic question, but I am curious to understand why. We know that Http protocol has features such as Headers. Both response and request have HTTP headers. It is easy to get the headers in J2EE from a HttpServletRequest objects using getHeader() and/or getHeaders()

RE: access variable value in html tag

2004-03-26 Thread Steltner, Joern
Hallo together, Thx, for the help. I installed the Tomcat v5.x engine and now it's working like you guys suggested without EL. Regards Joern -Original Message- From: Brian Buchanan [mailto:[EMAIL PROTECTED] Sent: Dienstag, 23. März 2004 15:12 To: Struts Users Mailing List Subject: RE:

help with modules

2004-03-26 Thread Bruce Christie
Hello, I am playing around with modules and things work pretty nicely = except I have a tiles template that reads in a menu.jsp from the default = WEB-INF. The links to the actions are prepended with the module. (i.e. = html:link action =3Dmodule1/dosomething.do/. ) This works fine expect

Re: Why there is no getHeader(String headerName) and getHeaders() met hod in HttpServletResponse?

2004-03-26 Thread Richard Yee
Larry, I'll go out on a limb here and say that since the response is being generated on the server by a servlet or JSP, there is no need for getHeader() or getHeaders() methods because the developer is setting them. The HttpServletResponse interface has addHeader() and addXXXHeader() methods to

Re: Accessing Struts beans with keys defined in the Globals class

2004-03-26 Thread Nizeyimana Zabulon
try this session.getAttribute(Globals.LOCALE_KEY); --- Denis Laroche [EMAIL PROTECTED] a écrit : Hello everybody, I hope it's not a trivial question. I'm trying to access the current Locale from a JSP page. The key to access the Locale is stored in variable

Re: Global locale in Struts web applications?

2004-03-26 Thread Nizeyimana Zabulon
try change the scope of the le locale from session to application --- Jan Normann Nielsen [EMAIL PROTECTED] a écrit : Hello I have multiple Struts web applications deployed within Jetty but the locale that Struts saves in the session is not shared between the contexts. I guess that is

Re: [OT] JTA, JDBC and data persistence

2004-03-26 Thread Bill Siggelkow
Freddy, I think you only need to look into using JTA and XA transactions if you are spanning multiple data sources (databases). If you are not, then I would look into using an Object-relational mapping tool like Hibernate or OJB to do what you want to do. These tools usually provide support

Re: Accessing Struts beans with keys defined in the Globals class

2004-03-26 Thread Denis . Laroche
Thanks, but is there a way to do it without using Java code directly in the JSP page? Nizeyimana

Re: [OT] JTA, JDBC and data persistence

2004-03-26 Thread ian_d_stewart
Freddy, You may want to take a look at Hibernate (http://www.hibernate.org), if you haven't done so already. Hibernate is a persistence mechanism which utilizes XML mappings to map Java objects to relational database schemas, and does support cascading deletes, amoung other things. HTH, Ian

FW: newbie html-el question

2004-03-26 Thread Bender, James
I am trying to display a value from a requestAttribute in an html-el:text ... but I can't get it to work. Here is my code: html-el:text: property=searchType value=%=request.getAttribute(searchType)%/ I recieve the error: Attribute searchType has no value Someone told me I have to

Re: How to display a bean property with html markup?

2004-03-26 Thread Bill Siggelkow
And if you wanted to use JSTL you would use: c:out value=${info.infoName} escapeXml=false/ Bill Siggelkow Anybody knows how to display a bean property with html markup properly in the output. I have the JSP snippet code as follows: HTML abcdefg bean:write name=info property=infoName /

Re: [OT] WSAD problems with Struts

2004-03-26 Thread ian_d_stewart
You can also override the global Validation preferences within the Validation portion of the Project Properties. Ian Susan Bradeen

RE: newbie html-el question

2004-03-26 Thread Slattery, Tim - BLS
I am trying to display a value from a requestAttribute in an html-el:text ... but I can't get it to work. Here is my code: html-el:text: property=searchType value=%=request.getAttribute(searchType)%/ I recieve the error: Attribute searchType has no value Someone told me I have

RE: newbie html-el question

2004-03-26 Thread Wendy Smoak
From: Bender, James [mailto:[EMAIL PROTECTED] I am trying to display a value from a requestAttribute in an html-el:text ... but I can't get it to work. Here is my code: html-el:text: property=searchType value=%=request.getAttribute(searchType)%/ I recieve the error: Attribute searchType

[OT] SELECT ... LIKE with iBatis

2004-03-26 Thread Andy Engle
Hi all, I am trying to write a SELECT ... LIKE %whatever% statement with iBatis but I can't seem to get it to work, nor can I find a clear explanation of how to do this. Does anybody have a code snippet they could share with me of how to do this? Thanks in advance. Andy

Re: Accessing Struts beans with keys defined in the Globals class

2004-03-26 Thread Joe Germuska
At 1:03 PM -0500 3/26/04, [EMAIL PROTECTED] wrote: Thanks, but is there a way to do it without using Java code directly in the JSP page? In this cases there is not, although this has been discussed just today on struts-dev: http://article.gmane.org/gmane.comp.jakarta.struts.devel/18429/ In

Re: [OT] SELECT ... LIKE with iBatis

2004-03-26 Thread Ronald Rotteveel
Hi Andy, we have a same kind of statement in our xml file and it looks like this: codesnippet mapped-statement name=statementName result-map=result SELECT * FROM tbl_name WHERE column_name LIKE '%'; /mapped-statement /codesnippet Pay attention to the single quotes around the %-sign! Good

RE: Pls help me in configuring common logger

2004-03-26 Thread Van Riper, Mike
Sougata, I can point you in the right direction, but, I don't have time to spell everything out for you. I think you need to do some work on your own reading the commons logging docs. You need to understand the commons logging package and how to configure it to use log4j or the native logging

RE: Why there is no getHeader(String headerName) and getHeaders() met hod in HttpServletResponse?

2004-03-26 Thread Zhang, Larry (L.)
Richard, Thanks for your answers. I think that makes great sense; though I still think to have getHeader() or getHeaders() may be helpful when doing debug for response object. Larry -Original Message- From: Richard Yee [mailto:[EMAIL PROTECTED] Sent: Friday, March 26, 2004 12:06 PM To:

RE: Why there is no getHeader(String headerName) and getHeaders() met hod in HttpServletResponse?

2004-03-26 Thread Yee, Richard K,,DMDCWEST
Larry, For debugging purposes, the org.apache.soap.util.net.TcpTunnelGui utility is useful. It's in the Jakarta Soap project jar file. It will let you view the headers and the markup sent to/from your browser. -Richard -Original Message- From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED]

RE: html:options where values have embedded quotes

2004-03-26 Thread Colm Garvey
It might not be sexy, but a fast solution would be to use something else instead of quotes e.g. ^ or | and then use a small Javascript replace function to write out the text correctly? Colm -Original Message- From: Doug [mailto:[EMAIL PROTECTED] Sent: 24 March 2004 23:25 To: Struts Users

RE: newbie html-el question

2004-03-26 Thread Bender, James
Hi Wendy, Thanks for responding! Someone showed me a way to do what I needed to do, but the way I'm approaching the entire problem may be kludged: The user can click Search Attributes | Search Components | Search Templates I've provided html:link's like these respectively:

RE: Populating a Listbox

2004-03-26 Thread Colm Garvey
I've come across this in a few difference manifestations and the best course of action I've come across is dependant on the number of variations. If you're only talking about a couple of hundred or less, use a javascript array to populate the second dropdown on the fly. If you're dealing with

RE: .swf file

2004-03-26 Thread Colm Garvey
Just the same as any other hyperlink you create with Flash. Just point your hyperlink to nameoflink.do instead of nameoflink.jsp Colm -Original Message- From: Jignesh Patel [mailto:[EMAIL PROTECTED] Sent: 24 March 2004 18:02 To: [EMAIL PROTECTED] Subject: .swf file Dear Friends, Can

RE: blocking bookmarked actions

2004-03-26 Thread Colm Garvey
Or wrap the whole app up in frames. That'll do the trick. Colm -Original Message- From: Mark Shifman [mailto:[EMAIL PROTECTED] Sent: 24 March 2004 18:32 To: Struts Users Mailing List Subject: Re: blocking bookmarked actions where do I do the blocking? The action I am having problems

RE: newbie html-el question

2004-03-26 Thread Wendy Smoak
From: Bender, James [mailto:[EMAIL PROTECTED] The user can click Search Attributes | Search Components | Search Templates I've provided html:link's like these respectively: doPrepareSearch.do?searchType=attribute | doPrepareSearch.do?searchType=component |

Re: [OT] SELECT ... LIKE with iBatis

2004-03-26 Thread Andy Engle
Ronald Rotteveel [EMAIL PROTECTED] wrote: Hi Andy, we have a same kind of statement in our xml file and it looks like this: mapped-statement name=statementName result-map=result SELECT * FROM tbl_name WHERE column_name LIKE '%'; /mapped-statement Right, but I was running into trouble

Re: help with modules

2004-03-26 Thread James Norman
Try adding contextRelative=true to the forwards in your struts-config. I remember a similar problem I had a while back, but I'm not entirely sure this will solve it. Here is an example of an Action I had in a struts module I wrote: action path=/listLoggers

Re: Dynamic forward in tiles

2004-03-26 Thread Pedro Salgado
On 25/03/2004 13:22, Mariano García [EMAIL PROTECTED] wrote: El mié, 24-03-2004 a las 20:21, Pedro Salgado escribió: Below is a reply sent to this mailing list about something very similar to what you are looking for. but there is any way to use dynamic content only using tiles tags? In

Use JSP Expression Language in custom tags?

2004-03-26 Thread Chan, Jim
Sorry this is not directly related to Struts, but is it possible to use the expression language in custom tags? I think you can, but I am not quite sure how to do it. Do you get this for free by just upgrading to a JSP 2.0 compliant server? Or do I have to do something with the custom tags to

RE: Help on struts

2004-03-26 Thread Shoaib
Thanks for your guidance. You are right , we are in the case where user will come back from search page. I will try as you suggested and give feedback. Regards Shoaib I guess the first thing to consider is what you mean by come back to the previous page. Do you just mean have the user

Tomcat -- JSP -- KeyPairGenerator -- Security Exception

2004-03-26 Thread Michael McGrady
When I am using Tomcat I get a security exception when I try to access a java.security.KeyPairGenerator for a Diffie-Hellman key pair. I don't get it with other servers. Anyone know why this is? java.security.NoSuchAlgorithmException: DH KeyPairGenerator not available

RE: Struts Validator and Select boxes

2004-03-26 Thread Janarthan Sathiamurthy
Hi Niall, I am attaching the validation.xml and the jsp that i have used. I have done the exact thing that you had specified earlier before posting to the mailing list. I am not clear where i am going wrong. The Struts-config entry goes like - form-bean name=ocsReportForm

RE: html:text -- value attribute won't take rtexprvalue

2004-03-26 Thread Wendy Smoak
From: Bender, James [mailto:[EMAIL PROTECTED] I'm new to Struts and have searched without luck on this one: I have an html:text ... that I'm simply trying to put a runtime expression into, like % String rtexpr = bob; % html:text property=searchType value=%=rtexpr % And instead of

is it possible to define a validation that runs only server side or client side (validation.xml )

2004-03-25 Thread Seyhan BASMACI \(Internet Yazilimlari Yetkilisi\)
I have a LoginForm form extends ValidatorForm and I want to decide a validaton runs only on the server or client side, (or both ) is there any way to do this_? form name=LoginForm field property=userno depends=required arg0 key=caption.wusernono/ /field /form

custom tag called with bean properties as attributes

2004-03-25 Thread Kransen, J.
Hello, I'm trying to iterate through a collection of beans and call a custom tag for each bean. logic:iterate id=dezeSchaal name=%=Risc.BEREKENING% property=profielSchalen / risc:staaf schaal_nummer=bean:write name=dezeSchaal property=schaalNummer/

Re: is it possible to define a validation that runs only server side or client side (validation.xml )

2004-03-25 Thread ruben
Seyhan BASMACI (Internet Yazilimlari Yetkilisi) wrote: I have a LoginForm form extends ValidatorForm and I want to decide a validaton runs only on the server or client side, (or both ) is there any way to do this_? form name=LoginForm field property=userno depends=required arg0

RE: html:javascript question

2004-03-25 Thread Colm Garvey
And alternatively, logic:messagesPresent script language=jscriptalert('bean:message key=global.error.heading/\n\nhtml:messages id=error - bean:write name=error/\n\n/html:messages') /script /logic:messagesPresent global.error.heading=An Error(s) has occured: Colm -Original Message-

problem with module

2004-03-25 Thread ruben
hi everybody, excuse me for my english, that is the scenario, i've got 2 modules, default and mod1, i call from mod1 an action that load a page with 2 iframes, that load a page resource, these resources are in the /page context, struts add /mod1 to the context, and i have to use a

Users, Roles Access Control in Struts Applications - Where to get information?

2004-03-25 Thread Tom Bednarz
Hello, I need some pointers and information about the assignment and management of users and roles in a Struts based web application. I currently run that application (Struts 1.0 and Velocity) with very limited control over WHO is allowed to do WHAT. Currently I only have three roles and all

Html:radio

2004-03-25 Thread Vijay.Nair
Hello All, I have been using the html:radio tag quite usefully until I hit a road block of using scriptlets while using the onclick attribute of the Tag. It just seems to render the scriptlet as is without bothering to execute it as a scriptlet. E.g. html:radio onclick=%=index.toString%

db error

2004-03-25 Thread Rajat Pandit
Hello All, i am trying to connect a oracle database, and i get this stack trace, can someone please tell me what is wrong with it. !-- stack trace -- javax.servlet.UnavailableException: Initializing application data source org.apache.struts.action.DATA_SOURCE at

RE: db error

2004-03-25 Thread McCormack, Chris
Check your database is up before trying to connect to it. If it is and you can ping the database from your application server box, then check your spelling in the data source definition. Chris McCormack -Original Message- From: Rajat Pandit [mailto:[EMAIL PROTECTED] Sent: 25 March 2004

Re: db error

2004-03-25 Thread Rajat Pandit
Thanks chris, so this is not because of any missing classes or jar files? is this a connectivity issue? the database server isup and my other applications sqlplusw can access it. any pointers? sorry about read reciept thing in my previous mail. rajat - Original Message - From: McCormack,

DynaForm Type Conversion

2004-03-25 Thread Joe Hertz
I have a bean I persist with Hibernate. It's properties are: 2 Floats 1 Integer (the key) 2 Dates Now, relying on my handy dandy copies of Struts KickStart, Struts In Action, and all of the Web, I'm apparently supposed to declare these methods in the Form I am using as Strings since automatic

Re: Users, Roles Access Control in Struts Applications - Where to get information?

2004-03-25 Thread Adam Hardy
This might come through twice - if so, sorry. On 03/25/2004 11:28 AM Tom Bednarz wrote: 1) How are Roles defined? Where are they stored? I don't want these things stored in a XML file. Is there a way to store these things in a database? Is there any documentation about a datamodel (Fields,

RE: db error

2004-03-25 Thread McCormack, Chris
It doesnt appear to be a case of missing classes etc This exception seems pretty descriptive : UnavailableException: Initializing application data source org.apache.struts.action.DATA_SOURCE It looks like struts cannot physically get a connection to the specified source, so a. it doesnt exist

Re: db error

2004-03-25 Thread Rajat Pandit
Hello, i tried your suggestion but i continue getting the same error. javax.servlet.UnavailableException: Initializing application data source org.apache.struts.action.DATA_SOURCE at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.j ava:1091) at

Set focus and html:messages

2004-03-25 Thread Daniel
I need set focus on the input field, but it's depends of the error. Then how can I make to read the type of msg for set this focus,the job of set focus is javascript .it's ok, my dificult is verify the type of message, someone know one way tho make it..., I set the message on the action

RE: pre-populating DynaValidatorForm

2004-03-25 Thread Takhar, Sandeep
Isn't this assuming there are no modules? sandeep -Original Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 7:11 PM To: 'Struts Users Mailing List' Subject: RE: pre-populating DynaValidatorForm Dean, Here's the essential code in order

how can I access form validations defined in validation.xml file using ModuleConfig or something else.....

2004-03-25 Thread Seyhan BASMACI \(Internet Yazilimlari Yetkilisi\)
. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: LookupDispatchAction default

2004-03-25 Thread Brian Sayatovic/AMIG
Well, I tried overriding unspecified and I still get the following (mind you that I didn't change the parameter name yet) when I hit /admin/list.do: Error 500: Request[/admin/list] does not contain handler parameter named submit My unspecified method I simply overrode from

RE: Automatically detecting struts-config changes and reload app.

2004-03-25 Thread Pady Srinivasan
I spent a few hours trying it out yesterday. There is a Tiles ReloadAction which I tried to set in the struts-config and tried to call it. But it didn't help. Finally I went with the Tomcat manager ( app reload ). If Tomcat recognizes class changes ( WEB-INF/classes ), maybe there is a way to

Re: Dynamic forward in tiles

2004-03-25 Thread Mariano García
El mié, 24-03-2004 a las 20:21, Pedro Salgado escribió: Below is a reply sent to this mailing list about something very similar to what you are looking for. but there is any way to use dynamic content only using tiles tags? In my case, I have a 'setAttribute(serverLocation, Location)'

R: Automatically detecting struts-config changes and reload app.

2004-03-25 Thread Leonardo Francalanci
I wrote the following on 01/23/2004 on the mailing list, but nobody cared... I wrote a servlet to trigger off a reload of the struts-config.xml. The servlet is: protected void doGet(..) { ActionServlet as =

Re: Re[2]: Are you sure?

2004-03-25 Thread [EMAIL PROTECTED]
Hi Dima, list, [Dima wrote] we tried to use this (form.onsumbit=return f()) but encountered a problem: if JavaScript is disabled in browser the submiting goes on without confirmation dialogue and other stuff done by JS (wich in our case was more important). We solved this by

using html:form with el logic tags

2004-03-25 Thread Simon Pett
Hi, Can someone tell me why I get an unbalanced error when I try to optionally use a form tag? org.apache.jasper.JasperException: /pages/common/layouts/layout.jsp(56,1) The end tag /c:when is unbalanced tiles:useAttribute name=action/ tiles:useAttribute name=focus/

Re: DynaForm Type Conversion

2004-03-25 Thread Hubert Rabago
Take a look at BeanUtils.copyProperties. By default, though, it doesn't support conversion of dates, since it wouldn't know how you'd want your dates formatted. Check the archives of this list, there's been some discussion on that. Another archive you can check is that of the commons-user list.

reload application.properties

2004-03-25 Thread Janarthan Sathiamurthy
Hi , How can i programmatically reload the application.properties file without a server restart/redeploy ? It happens as our clients may change the value of the keyes specified in the properties files. Does Struts provide any readymade class for this ? Thanks Regards, Janarthan S.

RE: using html:form with el logic tags

2004-03-25 Thread Takhar, Sandeep
I'm going out on a limb here, but usually I wouldn't do the xml like that with html:form since it is unbalanced... You'll have to find a workaround I think... sandeep -Original Message- From: Simon Pett [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 8:31 AM To: 'Struts Users

RE: custom tag called with bean properties as attributes

2004-03-25 Thread Hibbs, David
risc:staaf schaal_nummer=bean:write name=dezeSchaal property=schaalNummer/ This is a standard tag nesting error. You can't put tags inside of tag attributes. You CAN put scriptlets, such as your first tag... logic:iterate id=dezeSchaal

[REPOST] alternate resource bundle

2004-03-25 Thread Otto, Frank
Hi, I have defined an alternate resource bundle in my struts-config.xml: message-resources parameter=AlternateResources null=false key=alternate/ In element global exceptions I have some Exceptions. One of this should use the bundle alternate, but it was ignored. global-exceptions

Re: LookupDispatchAction default

2004-03-25 Thread Mark Shifman
Look at the sourc for LookupDispatchAction snippet below: public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { // Identify the request parameter containing the

Re: blocking bookmarked actions

2004-03-25 Thread Mark Shifman
Thanks , I was using jakarta-struts-1.1-rc1 which did the nul parameter trapping. mas Wendy Smoak wrote: From: Mark Shifman [mailto:[EMAIL PROTECTED] Unfortunately LookupDispatchAction checks for the parameter an throws an error before it gets a chance to use unspecified(), but it should be

  1   2   3   4   5   6   7   8   9   10   >