i am using appfuse1.93, spring,hiberante and struts 1.2
i am having an preformance issue with hibernate
how can i set fetch mode= lazy dynamically at runtime so that only that
class object is called
because if i use lazy ="true" in hbm.xml file in my parent class which is
called , then hibernat
Phew.. Fixed one part of the problem. I needed to add setter and getter for
user in preferencesAction... Now the read from db user preferences goes
okay. Now the saving part...
--
View this message in context:
http://www.nabble.com/exception-thrown-when-trying-to-get-current-user-tp25458093s2369
I can add to that, that the mapping to the preference object parameters is
not correct too.
I set some preferences in the DB to 1. When I debug, I can see the values
are indeed set to 1 in the user.preferences object. Nevertheless, on
preferencesForm all values are shown as 0 (uncheked)...
This
After finally setting up remote debugging from Netbeans into Jetty, I can see
that the properties object is not instantiated when trying to save it, it is
null.
Who can tell me what the problem is?
In my form I have:
1) where is ${country} specified? My system does not set the default.
2) Is there a way to place the countries combobox next to the zip code box?
--
View this message in context:
http://www.nabble.com/in-regard-to-country-list-tp25461995s2369p25461995.html
Sent from the AppFuse - User
Hmm.. I can get the user, but the preferences are not getting saved.
In preferencesForm I have:
On Tue, Sep 15, 2009 at 12:09 PM, measwel wrote:
>
> As I understand one can:
>
> 1) user = userManager.getUserByUsername(getRequest().getRemoteUser());
>
> 2) user = getCurrentUser(UserManager userManager, boolean
> forceReloadInCurrentSession)
>
> 3) get the user from Acegi session. This is prob
As I understand one can:
1) user = userManager.getUserByUsername(getRequest().getRemoteUser());
2) user = getCurrentUser(UserManager userManager, boolean
forceReloadInCurrentSession)
3) get the user from Acegi session. This is probably the code :
String currentUser;
if
On Tue, Sep 15, 2009 at 11:16 AM, measwel wrote:
>
> I have a preferences object embedded in the user object. On preferences.jsp
> I
> want to edit the preferences (bit fields). In preferencesAction I have:
>
> public String edit() {
>
>// determine the user and get his preferences
>user
Never mind my blindness :) Its there :)
Sorry to bother for nothing
--
View this message in context:
http://www.nabble.com/url-translation-in-appfuse-tp25426970s2369p25458166.html
Sent from the AppFuse - User mailing list archive at Nabble.com.
YES i will look for it in folders. Cant see it in IDE
tibi wrote:
>
> its in the main webapp
> did you run full source??
>
> tibi
>
> measwel wrote:
>> cant find the logout.jsp file on my system. where should it be?
>>
>>
>> tibi wrote:
>>
>>> there is none
>>> look at the logout.jsp file
I have a preferences object embedded in the user object. On preferences.jsp I
want to edit the preferences (bit fields). In preferencesAction I have:
public String edit() {
// determine the user and get his preferences
user = userManager.getUser(getRequest().getParameter("user.id"));
I have a preferences object embedded in the user object. On preferences.jsp I
want to edit the preferences (bit fields). In preferencesAction I have:
public String edit() {
// determine the user and get his preferences
user = userManager.getUser(getRequest().getParameter("user.id"));
its in the main webapp
did you run full source??
tibi
measwel wrote:
> cant find the logout.jsp file on my system. where should it be?
>
>
> tibi wrote:
>
>> there is none
>> look at the logout.jsp file
>>
>>
>> tibi
>>
>> measwel wrote:
>>
>>> I found the source of the problem.
>>>
>>> I
cant find the logout.jsp file on my system. where should it be?
tibi wrote:
>
> there is none
> look at the logout.jsp file
>
>
> tibi
>
> measwel wrote:
>> I found the source of the problem.
>>
>> In security.xml there is this:
>>
>>
>>
>>
>> Deleting this line under struts leads
there is none
look at the logout.jsp file
tibi
measwel wrote:
> I found the source of the problem.
>
> In security.xml there is this:
>
>
>
>
> Deleting this line under struts leads to erroneous logout behaviour. I will
> add it to JIRA.
>
> The question still stands though: where is
look at your pom. you will find some examples there.
here is mine:
demo
this iwll work with -P demo
tibi
measwel wrote:
> how do you specify in the profile what DB to use?
>
>
> tibi wrote:
>
how do you specify in the profile what DB to use?
tibi wrote:
>
> we use profiles
>
> mvn test -P test
> and in the pom file add a prifle named test with a different database.
>
> tibi
>
> Matt Raible wrote:
>> Not currently, no. However, you can change DbUnit's logic so it
>> doesn't replac
I found the source of the problem.
In security.xml there is this:
Deleting this line under struts leads to erroneous logout behaviour. I will
add it to JIRA.
The question still stands though: where is the logout action specified? I
cant find it anywhere.
--
View this message in con
I have a strange problem now. The logout action is broken. I get redirected
to the welcome page after clicking 'logout'. Menu config is:
I cheked stuts.xml to see the action settings. But, I can not find any
action defined for logout !
Is this normal? How is the system supposed to kno
Hi
I think to call stored procedure you can use
Session session = getSessionFactory().getCurrentSession();
DelegatingPreparedStatement st =
(DelegatingPreparedStatement)session.connection().prepareStatement("{call
name_of_sp(?,?,?)}");
st.setString(1,""+a);
21 matches
Mail list logo