Thats what I know but how can I achieve that a user has atomaticaly a role
named guest and if a user is logged in how can I achieve that he can log
in again cause I can't access the loginpage direct cause of tomcat?
-Ursprungliche Nachricht-
Von: Ted Husted [mailto:[EMAIL PROTECTED]]
Hi Igor,
I have just tried your editor. It work fine i had already used such a tool :
RBManager.
It is from IBM but it is free. Unless i miss something, it seams to me that RBManager
has
more features than your editor. Check this address :
http://www.alphaworks.ibm.com/tech/rbmanager
Yes.
- Original Message -
From: saisrinivas [EMAIL PROTECTED]
To: StrutsUser (E-mail) [EMAIL PROTECTED]
Sent: Tuesday, November 27, 2001 10:50 PM
Subject: ITERATE
Hi,
Inside logic-iterate can we call JSP
Pl. clarify me.
Regards,
Sai
--
To unsubscribe, e-mail:
mailto:[EMAIL
Hi,
You know, I've gone over the documentation several times, tried various
debug statements, narrowed it down to bean:write, looked at the
documentation again and managed to miss filter=false. I feel very foolish
now...
Thanks very much for your help though!
Kind Regards,
Chris.
Hi,
not to forget: in the action you have to return null (return(null);) when
you will service the request completely within the action.
good luck
Alexander
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 27, 2001 5:01 PM
To: [EMAIL
Hi
This is how we set up our controller to switch http/https. I was never happy
with it but it works for us.
I'm posting it in the hope someone will point out a better way!
Basically we decided on boundary conditions as requesting login and
requesting logoff (controller always checks user and
Hi,
I have a query as to whether I can use Struts comfortably for an
application wherein I have to generate HTML /JSP pages Dynamically. All
these JSP's will have different names that too generated dynamically and
not predecided names. I don't think we can WAR in this case so we cant
follow
hi
How to get a connection from connection pool ?
Maris Orbidans
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
//take the DataSource from the servlet context
DataSource datasource = getServlet().getServletContext(Action.DATASOURCE_KEY);
// and the connection
Connection connection = datasource.getConnection();
Don't forget to configure your database int the struts-config.xml
Ciao
Does anyone know how to work with multiple connection pools to different
databases.
:-)
Regards
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Advanced Banking Solutions Limited
+44 (0)20 7448 9146
-Original Message-
From: Viet Kevin [SMTP:[EMAIL PROTECTED]]
Sent:
Hi,
I was trying to find the best way to access the data source configured in
web.xml from a Data Access Object, but I'm confused because it requires the
DAO to know about servlets, since one has use the
getServlet().getServletContext function to get the connection information.
Do you know of a
Hi
My choice in the same situation was to get the datasource in the actions,
actually implemented as a method in a base action I extend for everything
else
protected DataSource getDataSource() {
javax.sql.DataSource dataSource =
In your struts-config.xml you declare all your connections pool :
data-sources
data-source
set-property property=key value=db1/
...
/data-source
data-source
set-property
Yes, I know, but I don't want my DAO to know anything about Actions. I like
Tom Lister's idea, to simply pass the datasorce to the DAO.
Thanks!
Otavio
- Original Message -
From: Arnaud Héritier [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday,
Thanks! I think it's ok to pass the connection to the DAO instead of making
it discover the connection information.
Otavio
- Original Message -
From: Tom Lister [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, November 28, 2001 9:38 AM
Subject: RE:
Yes I understand and It is what I done in my application.
I retreive datasources from actions and passes it to my DAO.
This response was for Tom who asked how to declare several data-sources
-Message d'origine-
De: Otavio C. Decio [SMTP:[EMAIL PROTECTED]]
Date: mercredi 28
First off, I am using Frames. After I login, and forever after that
point, my url stays the same because of frames. It says
http://bla.bla.com/bla/login.do. Problem is if someone bookmarks this
page and trys to hit it (even while the session is valid) I get the
following error.
Error: 500
Hi
The solution I use is to use a WEB.xlm configured servlet to establish a
connection pool as follows:
-snip-
public class DataAccess extends HttpServlet {
private GenericDataSource dataSource = null;
private String description;
public void init() throws ServletException {
Hello, I am new Struts and evaluating whether to use it for my next project.
I wonder how struts handles security. I understand I can still apply
container security by applying security constraints to my ActionClasses.
But, is there some way to apply security based on the Actions? Does Struts
Struts can also use the Tomcat JDBC Realms.
Nic Hobbs has put together a Role-based security package at
http://husted.com/struts/resources/struts-security.htm
I'm about to give it a whirl myself. Let me know if you like it.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software
Yes! This exactly what I was thinking of -- Especially because it uses the
underlying security API, which could be Tomcat, Websphere, whatever. I would
love to try this out, but what is the development status? Is this
incorporated into Struts, or a branch, or a final submission?
In the docs, Mr.
This may turn out to be an XML question rather than a struts
question, but here goes...
I have a data source defined in struts-config.xml, including
database URL. This has worked fine so far on my development machine,
but now I want to deploy my application to a different (production)
server
Well...you have to specify it somewhere...the struts-config.xml seems like a
nice place...
or if your are using a deployment tool (ant??) you could make it do keyword
subsitition on deployment...
specifying data in a configuration file isnt hardcoding...its
specification...
Mikkel
I've defined the following collection but don't know how to use the logic
tag to check if it contains no data to display appropriate message:
logic:present name=MEMBERS scope=request
bean:define id=myArray name=MEMBERS type=java.util.TreeSet
scope=request/
logic:iterate id=member
Hello all,
I was wondering if someone could answer this question for me.
I have modified a version of struts 1.0 to support xml-xsl-html
transformations.
I would like to make these changes available to anyone who would want to
use them but I was wondering what the policy is on posting
I've used Nic's extensions on a project, and actually mofified his code to
return an SC_FORBIDDEN status code. To specify an error page for this code,
you simply need to add the following to your web.xml:
error-page
error-code403/error-code
location/forbidden.html/location
/error-page
You
Hi,
Small questio : big problem.
In servlets a forward does not seem to work when in a session !?
Is this a correct assumption/observation ??
Currently I have to replace all forwards by redirects, resulting in some unwanted
behaviour when
hitting the back button.
If it is not possible to use
Hello,
I am trying ot deploy my struts - based web application on linux
and tomcat 4.01 using jdk 1.4.0 Beta 3
But I have the following exception thrown.
javax.servlet.ServletException: Parsing error processing resource path
/WEB-INF/struts-config.xml
at
Hi,
I have a multi-page transaction that uses a session-scoped form bean. The
action class that carries out the final transaction cleans up the form bean
from the session. The catch is that on earlier pages there are links that
allow the user to short-circuit the business transaction
Sessions and forwards have nothing to do with one another (unless of course
your in some kind of load balanced server farm and aren't using session
affinity or something like that).
In other words, sessions and forwards work fine together. Care to share the
error you're getting when using a
So that on submit each sends a different request parameter to the server?!!
Also how to use the Action class in this case?
_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
--
To unsubscribe, e-mail:
We welcome derivative works, so long as the license is kept intact.
Many of the extensions posted on our resource page rely on modified
code.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/
Jeff
Great, that's good to hear, and the licensing is no issue for me.
As for the posting on the resource page, is there are particular email
that I need to send infomation to get my modifications posted?
Thanks again,
Jeff
Ted Husted wrote:
We welcome derivative works, so long as the license is
It would be like a branch at this point. I'm going to try it myself
soon, and if I like it as much as Matt did, then it could make it's way
into the distribution ;-)
It does help when people like Matt mention that it worked well on their
own projects.
AJ Morris wrote:
Yes! This exactly what
Putting in an enhancement request to Bugzilla is best. Keeps things from
getting lost.
http://nagoya.apache.org/bugzilla/
Jeff Pennal wrote:
Great, that's good to hear, and the licensing is no issue for me.
As for the posting on the resource page, is there are particular email
that I
Hello,
Can someone help me get started?
Where/when is the proper place/time to create an ejb (Entity bean)?
Should I create access methods in the mapping class,
the form class or both or should I just create the objects
in the action class?
I want to create a complex entry form that may
Hello,
I was writing some upload code to test the use of MultipartIterator class.
My html code is as follows:
-
BODY BGCOLOR=FF
h1 MULTIPART TEST/h1
FORM NAME=loadfile
ACTION=/MDC/servlet/servlet/com.cisco.nm.callhome.servlet.TestServlet
To implement a screen of the particular Use Case, the following artifacts
should be created:
1.Action class handles logic of that particular screen, errors and,
probably, validation.
2.ActionForm class stores and validates the data presented on the
screen.
3.
Hi
I want to include a hidden field in a form which I have. I do not want
this information to be included in the formbean which is defined for
this page. How can I do this? Should I just use plain html
INPUT TYPE=hidden NAME=action VALUE=send
without using the html taglib supplied with
Won't hurt.
You'll just have to use request.getParameter(action) in your Action to get
it.
- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, November 28, 2001 8:25 PM
Subject: Hidden Field in a form. Do I use struts taglib or
The data I am storing in the bean is logically different from what the
hidden field value is, I have a message
message
{
string Recipent
string From
string MessageBode
}
And the hidden field is action=sendMessage and I didn't think that
message
{
string Action
string
That's an interesting design decision. I have always had a form bean and
then another bean containing the actual data. The action copies it across,
processes it, and stores it.
The reason I'd do it that way is that I imagine the message is a business
class, and you don't really want you model
by having a 'HTML' hidden field, you will loose the mapping of form elements
to properties in the form bean, action class cannot access the value of it.
Shri
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 29 November 2001 12:26 PM
To: Struts Users
I have had this same problem with frames, but my frame was on one server and the
called login form was on another. As soon as I got them coming from the same box,
everything worked fine.
Don't know if that is your problem.
Kris Thompson wrote:
First off, I am using Frames. After I login, and
How can I make it so that when the user clicks on the
back button, he is presented with an error stating
that the page has expired (does this make sense?)
__
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
The first Release Candidate of Struts 1.0.1 is now available. The
Struts1.0.1 release contains fixes to bugs identified in the Struts 1.0
release, and documentation updates. No new functionality is available with
this release.
The binary distribution is available at:
Hi,
does an example exists wich uses jsp's for frontend and secure ejb's ?
Many thanks!
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
47 matches
Mail list logo