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:
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
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
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]
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
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
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
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
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
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
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 %
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
I have the following defined in validation.xml:
form name=userForm
field property=username
depends=required,email
msg
name=required
key=errors.required/
msg
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
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()
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:
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));
%
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
-
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]
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
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
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 .
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
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]
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
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:
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
27 matches
Mail list logo