Re: logon servlet through html forms resource not available

2002-12-29 Thread Melissa L Kelley
On Fri, 28 Dec 2001, Loren Hall wrote: There isn't a lot of detail on how you have things configured, but as far as your html form, you need to set the value of action according to the way you mapped the action servlet. So, if you used extention mapping the way the standard examples give:

Difficulties with form bean validate() for pre-populated form beans

2002-12-29 Thread mech
Hi, I'm using Struts 1.1b and one part of my webapp is a registration page for new users. I have to say that this thing works already somehow, but not really as I'd like to have it. Currently I'm not using the validate() method in my form bean and I'm doing all form validation in the action

RE: Difficulties with form bean validate() for pre-populated form beans

2002-12-29 Thread VEDRE, RANAPRATAP REDDY
hi micheal, this is a very common problem. u can have validation=false in ur action mapping in struts-config.xml and call the form validation method in ur action class. formInstance.validate(request, errors); by having validation=false struts does not call the validation method in ur

user mailing list error????

2002-12-29 Thread teamgasoline
When I try to search the mailing list I receive the following - Text search not available for this list Why is this so. Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

bean:write html stuff, how

2002-12-29 Thread Sash Sash
Hello and Happy Holidays to you all!!! Got a quick question. I'm trying to use bean:write name=someBean property=desc/ to output HTML code. However, it seems that the bean replaces characters like in nbsp with ampnbsp. Is there anyway to turn of this feature and have the bean output

How to get a reference to an Action instance

2002-12-29 Thread Lirian Ostrovica
Hi, I need to access an Action instance (I have its class name) while writting a Tag. I have seen that ActionServlet stores Action instances in a 'protected' variable (FastHashMap), and so far the only way I can see, is to extend ActionServlet and write my own 'public' method to do the job. But

Re:Best Practice for Forwarding to a Tile?

2002-12-29 Thread struts struts
Hi! I am new in Struts. I 've tried the 1st method of Matt Raible about Best Practice for Forwarding to a Tile but i am getting the following message: javax.servlet.ServletException: Path userProfile does not start with a / character at

Re: bean:write html stuff, how

2002-12-29 Thread Eric C. Hein
Sash, bean:write name=someBean property=desc filter=false/ - Eric - Original Message - From: Sash Sash [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, December 29, 2002 11:04 AM Subject: bean:write html stuff, how Hello and Happy Holidays to you all!!! Got a quick

Iterate, LabelValueBean and Form Help

2002-12-29 Thread Brown, Melonie S. - Contractor
I have the following code in my jsp page for a form. logic:iterate id=curInstallation name=theinstallations bean:write name=curInstallation property=theInstallation / html:select name=curInstallation property=theChoice html:option value=ALLALL/html:option html:option

Re: How to get a reference to an Action instance

2002-12-29 Thread Taylor Cowan
Action instances, like servlets, usually do not maintain state by using member variables. Thus most invokations of their methods do not depend upon a particular instance, so you may just instantiate the action and invoke its methods. Of course, using the pooled instances maintained by struts

Character encoding problem

2002-12-29 Thread struts struts
Hi. I use Greek messages on every JSP page. These messages are in a file application_el_GR.properties. I use a file tiles-defs.xml for all my pages which i use a Layout (for example classicLayout.jsp). In the classicLayout.jsp i configure %@ page contentType=text/html; charset=iso-8859-7 %

Re: Best Practice for Forwarding to a Tile?

2002-12-29 Thread Cedric Dumoulin
Do you have declare the TilesPlugin in your struts-config file ? Cedric struts struts wrote: Hi! I am new in Struts. I 've tried the 1st method of Matt Raible about Best Practice for Forwarding to a Tile but i am getting the following message: javax.servlet.ServletException: Path

[Validator] Client-side works, but not server-side

2002-12-29 Thread Matt Raible
I have the following defined in validation.xml: form name=userForm field property=username depends=required,email msg name=required key=errors.required/ msg

Re: [Validator] Client-side works, but not server-side

2002-12-29 Thread Michelle Wynn
I assume you are only getting nothing when the server side validation fails. If you are getting nothing when the validation doesn't fail that is another problem. If it is the former, I suspect your problem is related to your input parameter in the action mapping. I had a similar situation

Problem with logic:iterate

2002-12-29 Thread Sterin, Ilya
I'm trying to implement a multibox, and doing something simple from the Struts in Action book, give an error... In my ActionForm class I have... private String[] selectedItems = {UPS}; private String[] items = {UPS, FedEx, Airborne}; public String[] getSelectedItems()

Re: Character encoding problem

2002-12-29 Thread Dan Tran
I have seen the i18N problems several time last few days. Here is the link and hope it helps http://www.anassina.com/struts/i18n/i18n.html You may need to get another database that support Unicode which MySQL is not. -Dan - Original Message - From: struts struts [EMAIL PROTECTED] To:

RE: [Declarative Exception] How to access the exception text

2002-12-29 Thread VEDRE, RANAPRATAP REDDY
and here's some sample code %@ include file=/includes/taglibs.inc % bean:define id=exception name=org.apache.struts.action.EXCEPTION type=java.lang.Exception/ bean:write name=exception / pre % exception.printStackTrace(new java.io.PrintWriter(out)); %

[ANNOUNCE] BasicPortal 0.7k available on SourceForge

2002-12-29 Thread John Menke
The BasicPortal Project has released version 0.7k. BasicPortal is a Struts based application that can help your developers get a head start on their Portal development. Setup the database and deploy the .war and you are ready to go! Version 0.7k contains: - ability to add content to comments -

stream utf-16 data to browser

2002-12-29 Thread Dan Tran
Hi, What is the exact contentType to stream utf-16 data to the browser? application/utf-16? Thank you for all advices -D -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

login mechanism

2002-12-29 Thread usha
Hi i am new to structs. right now i am using in my project form based authentication. with this i have some problems like i cannot instantiate some of session veriable upon logging etc. is there any standard mechnism for loging using sturcts. i am using JBoss as my application server. Thanks

Re: login mechanism

2002-12-29 Thread Eddie Bush
Write a proxy to retrieve the user data you wish to put in the session. The proxy will check to see if a user has been authenticated (request.getUserPrincipal() != null), and, if they have, it will check to see if your user data has been created yet. If it has, it will just take it from the

Re: login mechanism

2002-12-29 Thread usha
Hi Sorry what you mean by proxy. i didn't get you actually i wanted to authenticate logged in user against the users that are there in the database, and when ever they bookmark some page and if they go to that page directly i wanted to display the login page after they login sussefully only .

Login filter

2002-12-29 Thread Mohan Radhakrishnan
Hi, My login filter filters *.action in web.xml. But this means struts has had a chance to evaluate the action first. Now if I filter /*, then everytime for all requests ( including images ? ) there will be a check. Is this the only way to filter requests short of subclassing

Re: login mechanism

2002-12-29 Thread Matt Raible [EMAIL PROTECTED]
You could use a filter to map to all your protected resources. This is what I do in the security-example application I recently wrote. You can download the source at: http://javawebapps.com/downloads/security-example.zip (14MB) HTH, Matt --- In [EMAIL PROTECTED], usha [EMAIL PROTECTED]

Re: How to get a reference to an Action instance

2002-12-29 Thread Lirian Ostrovica
Thanks for the suggestion Taylor, and yes I might follow that... In any case I just wanted to make sure that Struts itself does not provide any handle to Action instances !? thanks again lirian - Original Message - From: Taylor Cowan [EMAIL PROTECTED] Date: Sunday, December 29, 2002

Re: login mechanism

2002-12-29 Thread usha
Hi can you tell me briefly how you are using filtes in security-example application. Thanks usha Matt Raible wrote: You could use a filter to map to all your protected resources. This is what I do in the security-example application I recently wrote. You can download the source at:

Re: How to get a reference to an Action instance

2002-12-29 Thread Eddie Bush
Why do you want to do this? I can't imagine why you would need to. Lirian Ostrovica wrote: Hi, I need to access an Action instance (I have its class name) while writting a Tag. I have seen that ActionServlet stores Action instances in a 'protected' variable (FastHashMap), and so far the only