Team,
I want to add some function e.g. storing login date to database after login.
What is the hook to add this? Using a filter, interceptor or override some
class?
My env: 1.9.4 WebWork
Thanks! -Bruce
--
View this message in context:
http://www.nabble.com/Add-new-function-after-login-tf4252462s
Dale Newfield wrote:
Steve Jorgensen wrote:
Well, besides being able to back out the changes, it has a standard
way of determining the current database schema version, and applying
all the migrations necessary, regardless of how far behind (or not)
the production environment has become.
I do
When you say "it's not working", what do you mean? Do you mean you
want to bypass the login form for this form? If so, it's really all
about getting the URLs correct in security.xml. To prove it, remove
the filter-mapping for securityFilter in web.xml.
Matt
On 8/10/07, BruceLee <[EMAIL PROTECTED]
Thanks Matt for advice. However it appears still not work for me.
As I click Submit on form, I get tomcat log as below. Are any more clues?
[cmnweb] DEBUG [http-8080-Processor25]
InstantiatingNullHandler.nullPropertyValue(72) | Entering nullPropertyValue
[EMAIL PROTECTED], property=org]
[cmnweb]
Steve Jorgensen wrote:
Well, besides being able to back out the changes, it has a standard way
of determining the current database schema version, and applying all the
migrations necessary, regardless of how far behind (or not) the
production environment has become.
I don't understand how thi
Moving your *.jsp mappings to above **/*.html should fix your problem.
Matt
On 8/10/07, BruceLee <[EMAIL PROTECTED]> wrote:
>
> Matt, you are right. It doesn't like /user/*.
> However, it still asks me to sign in after I submit the form even I set it
> ROLE_ANONYMOUS in security.xml as below
>
Matt, you are right. It doesn't like /user/*.
However, it still asks me to sign in after I submit the form even I set it
ROLE_ANONYMOUS in security.xml as below
/**/*.html*=admin,user
/myform.jsp*=ROLE_ANONYMOUS,admin,user
/myform2.html*=ROLE_ANONYM
It looks like you're using JDK 1.4. AppFuse 2.x requires JDK 5.
Matt
On 8/10/07, iphbd <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I am new to appfuse. I was following the Quick Start guide. First crated a
> Struts 2 basic and then run integration-test. I got this error below. What
> is wrong?
> Thanks
Comments below...
On 8/10/07, jonlorusso <[EMAIL PROTECTED]> wrote:
>
> I will add an issue in JIRA.
>
> In the meantime, I've stumbled upon another issue.
> The major part of this new issue is probably due to a lack of understanding
> of the mechanics on my part, but I'll describe anyway.
>
> Bas
Do you have an Action for register.jsp? It looks like it's getting
confused and links that /user/* maps to UserAction.
Matt
On 8/10/07, BruceLee <[EMAIL PROTECTED]> wrote:
>
> Team,
>
> I tried to add a new page web/user/register.jsp to my project based on
> appfuse 1.9.4.
>
> When I submit a for
Thank Mike for response. However, after I add extra line like this
...
/**/*.html*=admin,user
/user/*.jsp*=ROLE_ANONYMOUS,admin,user
I still get save error. I don't why it need to call getUserByUsername() and
the username become userRegister (Which is my Action nam
I will add an issue in JIRA.
In the meantime, I've stumbled upon another issue.
The major part of this new issue is probably due to a lack of understanding
of the mechanics on my part, but I'll describe anyway.
Basically, what I'd like to do is run:
mvn jetty:run (or jetty:run-war, or jetty:ru
Hi
I am new to appfuse. I was following the Quick Start guide. First crated a
Struts 2 basic and then run integration-test. I got this error below. What
is wrong?
Thanks!
-
[INFO]
Matt Raible wrote:
AFAIK, migrations is simply a bunch of SQL scripts that alters your
database, correct? I major difference is they're smart enough to back
out the changes if anything goes wrong? I believe the reason this
doesn't exist in Java is most Java applications are deployed in an
environ
I had the export filter in my xml but its mapping had an .html extension (the
app I am working on has a .do). I think I forgot struts applications with
.do extension also 'do' exist :)
Thanks a lot Mike !
Michael Horwitz wrote:
>
> Have you included the displaytag export filters in your web.xml?
AFAIK, migrations is simply a bunch of SQL scripts that alters your
database, correct? I major difference is they're smart enough to back
out the changes if anything goes wrong? I believe the reason this
doesn't exist in Java is most Java applications are deployed in an
environment where a DBA hand
Most of the Web development I've done so far is Ruby on Rails, and I've
gotten spoiled by the great database migrations system.
With Rails migrations, you add a migration to the project, run it, then
run the tests to see what code has to change, and then do the
application-code side of the ref
Thanks Mike
I think you right
Michael Horwitz wrote:
>
> The NullPointerException is being thrown because you are directly
> instantiating PersonDaoHibernate rather than allowing Spring to inject it
> as
> a dependency. The session factory will not have been set on the DAO, so
> the
> exception
Thanks Matt, I just want to practice with appfuse via try to retrieve data.
mraible wrote:
>
> I'm curious - why are you writing your own authentication logic rather
> than using Acegi. Sanjiv wrote a howto for integrating Acegi with Ajax
> a while back:
>
> http://ajaxian.com/archives/ajax-l
On 8/10/07, jonlorusso <[EMAIL PROTECTED]> wrote:
>
> Matt,
>
> I tried a number of different excludes. All were unsuccessful. xerces always
> ended up in there.
It should be possible to exclude it, it's just a matter of figuring
out which dependencies are adding it in. Since this is a JDK 6-relat
Matt,
I tried a number of different excludes. All were unsuccessful. xerces always
ended up in there.
However, I followed the instructions provided in this
http://forum.java.sun.com/thread.jspa?tstart=30&forumID=34&threadID=542044&trange=15
post .
Namely, I added xerces.jar, xercesImpl.jar, xal
Have you included the displaytag export filters in your web.xml?
Mike
On 8/10/07, arvinder <[EMAIL PROTECTED]> wrote:
>
>
> Thanks Matt! I should kick myself for missing the 'banner.onepage' setting
> in
> display tag documentation.
> On export data issue, when I specify the media for certain col
Thanks Matt! I should kick myself for missing the 'banner.onepage' setting in
display tag documentation.
On export data issue, when I specify the media for certain columns it
exports only those columns, but my problem is that it not only exports the
table data but all the surrounding html, includi
All,
I've been able to "fix" Confluence so it can successfully export the
"AppFuse 2" space as PDF, XML or HTML. I believe the XML export is
only useful for importing the content into another Confluence
instance.
For documentation with a release, would you prefer we distribute it as
a PDF or HTML
The NullPointerException is being thrown because you are directly
instantiating PersonDaoHibernate rather than allowing Spring to inject it as
a dependency. The session factory will not have been set on the DAO, so the
exception will be thrown. Could I suggest you have a look at the relevant
tutori
And if you exclude them, does the app still function - that's the
*real* question. ;-)
Matt
On 8/10/07, jonlorusso <[EMAIL PROTECTED]> wrote:
>
> Matt,
>
> It seems that Jetty, xfire, wss4j and jaxen all require xerces:
>
> [DEBUG] Adding managed dependencies for org.mortbay.jetty:maven-jetty-plu
Matt,
It seems that Jetty, xfire, wss4j and jaxen all require xerces:
[DEBUG] Adding managed dependencies for org.mortbay.jetty:maven-jetty-plugin
[DEBUG] xerces:xercesImpl:jar:${xerces-version}
[DEBUG] Adding managed dependencies for unknown:xfire-core
[DEBUG] xmlunit:xmlunit:jar:1.0:test
On 8/9/07, arvinder <[EMAIL PROTECTED]> wrote:
>
> I am trying to port an existing struts/hibernate application to Appfuse
> 1.9.4. I have created a new 1.9.4 project, but instead of adding code from
> my app. to new appfuse project, I am doing it other way around as my
> existing project is not us
It could be because Facelets doesn't support remove (I was unaware of
that). However, this file is included in SiteMesh and is processed by
JSP instead of Facelets, so I'm not sure that's the problem.
Matt
On 8/9/07, jimmy6 <[EMAIL PROTECTED]> wrote:
>
> MessageFilter problem for display info mes
The current system and your desired system only seems to differ where
you're loading your templates from. Velocity (or FreeMarker) both
should be able to load the templates from a database.
Matt
On 8/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi All.
> We are running a Appfuse based
That is cool! There is also some theme support/switching support built into
Spring MVC. There may be an offchance it can be used outside of MVC?
Mike.
On 8/10/07, Matt Raible <[EMAIL PROTECTED]> wrote:
>
> For the record, I believe the theme selection logic can be made much
> better. I really li
For the record, I believe the theme selection logic can be made much
better. I really like using a "stylesheet switcher" which uses
client-side logic and cookies to switch themes.
For an example, go to http://demo.raibledesigns.com/appfuse-light and
click on the black and white image on the bottom
I'm curious - why are you writing your own authentication logic rather
than using Acegi. Sanjiv wrote a howto for integrating Acegi with Ajax
a while back:
http://ajaxian.com/archives/ajax-login-with-acegi
Matt
On 8/10/07, Tony.Cesc <[EMAIL PROTECTED]> wrote:
>
> Thanks for your response but I d
Thanks for your response but I did have setter and getter in LoginAction clas
(still got null exception)s.
Here is my LoginAction class:
public class LoginAction extends BaseAction {
private Person person;
PersonDao personDao;
public Person getPerson() {
return person;
}
You will need to wire up your action using Spring. Add a getter and setter
method for PersonDao (abd make pdh an attribute of the action class), add
the relevant entries to the Spring configuration files and all should work
fine.
Mike.
On 8/10/07, Tony.Cesc <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
Hi,
I am newbie. I am trying to write new login function which is not used
acegi.
- Wrote LoginAction class
public String login() {
System.out.println(person.getUsername());
System.out.println(person.getPassword());
PersonDaoHibernate pdh = new PersonDaoHibernate();
AppFuse currently only allows the admin to change the theme, and the change
automatically applies to all users accessing the site. If you want per user
themes you will need to change the following:
1) The theme selection is stored in the ServletContext in the config object.
You will need to change
Hello Michael,
Thanks for quick reply. your idea for admin user worked for me.
I was trying with ROLE_USER role, and it wasn't working. when i tried it
with ROLE_ADMIN role. it did.
can we give user the choice to chance the theme upon its own choice? still
only admin can change over all theme o
Fullname is generated out of the attributes user.firstname+" "+
user.lastname
So if the user "admin" has no firstname / lastname set, the getFullname()
method will return "null null".
Bye,
Peter
-Ursprüngliche Nachricht-
Von: acao [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 10. Augus
You can disable security for a particular page by changing the config in
security.xml. Look for:
PATTERN_TYPE_APACHE_ANT
/clickstreams.jsp*=admin
/flushCache.*=admin
/passwordHint.html*=ROL
Hi All.
We are running a Appfuse based system in my company and now we have the need
for a template email based system. I am aware that Appfuse ships with the
velocity/spring based mail system but I would like to see if anyone in here
knows some other java mail template system. The requirements ar
41 matches
Mail list logo