okgot it to work...But here is the catch.
I got it to work with struts.jar details of which are ...Manifest-Version: 1.0Extension-Name: Struts FrameworkSpecification-Title: Struts FrameworkSpecification-Vendor: Apache Software FoundationSpecification-Version: 1.1Implementation-Title: Struts
Hi
I'm using Tomcat 5.0.x
When I reload application sessions are available, but there are no
session variables. How can I avbid this?
regards
--
Daniel Łaś [EMAIL PROTECTED]
e-direct Polska sp. z o.o.
ul. 1-go Maja 9
45-068 Opole
tel. +48 77 44 17 868
Hi,
I'm guessing your talking about session attributes as in 'session.setAttribute'
...
Trying making all the objects that you store within the session Serializable.
Regards,
Gareth
Daniel Łaś wrote:
Hi
I'm using Tomcat 5.0.x
When I reload application sessions are available, but there
Hi
Big thanks :) It helped.
Regards
Gareth Evans napisał(a):
Hi,
I'm guessing your talking about session attributes as in
'session.setAttribute' ...
Trying making all the objects that you store within the session
Serializable.
Regards,
Gareth
Daniel Łaś wrote:
Hi
I'm using Tomcat
http://www.junlu.com/msg/93974.html
--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTech, Inc.
http://www.edgetechservices.net/
678.910.8017
AIM: jmitchtx
Yahoo: jmitchtx
MSN: [EMAIL PROTECTED]
Skype: callto://jmitchtx
On Oct 12, 2005,
Hello,
i'm sure it's not the right place but maybe some of you can help me...
Do you know a Free Database Graphical Tool that allow to insert/update/delete
in a graphical manner (like clicking into a cell as with Excel)?
If an Eclipse plugin can do that I'm intersted also...
Thanks
I use DBVisualizer. It is a swing app that lets you use any JDBC
driver.
There is a free version available...
http://www.minq.se/products/dbvis/
--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTech, Inc.
http://www.edgetechservices.net/
SquirrelSQL is another one, and I prefer it to some of the commercial ones.
On 12/10/05, James Mitchell [EMAIL PROTECTED] wrote:
I use DBVisualizer. It is a swing app that lets you use any JDBC
driver.
There is a free version available...
http://www.minq.se/products/dbvis/
--
James
SQuriel client has a Eclipse plugin version (on eclipse plugins page is
where you'd search for plugins).
I use SQLyog (windoze only... but Mac and Linux have Windoze emulators).
.V
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Chris Pat [EMAIL PROTECTED] wrote on 10/11/2005 05:31:03 PM:
Hello
When I use the code below the Action playThis claims
the file attribute is null. It is not unless I am
loosing the session on the findforward. How can I
store a value in the session and forward to an Action?
The first
You can't nest tags like that. Try this instead:
html:hidden property=methodToCall
bean:message key=login.format.test/
/html:hidden
On 10/12/05, starki78 [EMAIL PROTECTED] wrote:
Hi, my goal is to dynamically
set the value of a hidden field from a Ressources-
File:
html:hidden
How about SQLExplorer.
It also has Eclipse plugin.
2005/10/12, Vic Cekvenich [EMAIL PROTECTED]:
SQuriel client has a Eclipse plugin version (on eclipse plugins page is
where you'd search for plugins).
I use SQLyog (windoze only... but Mac and Linux have Windoze emulators).
.V
-- Initial Header ---
From : Ed Griebel [EMAIL PROTECTED]
To : Struts Users Mailing List user@struts.apache.org
Cc :
Date : Wed, 12 Oct 2005 09:31:02 -0400
Subject : Re: Example not working: Fill the value of a hidden field from a
props-file
Oh thank
Here is an example of subclassing DynaValidatorActionForm with
validation-rules.xml outlined
Miren-
Great article located here detailing validator-rules.xml identified
validator.xml
which contains field depends clause identifiying the field to validate
good example of inlining JavaScript thru
Hi Geeta
Thank you. Even though it is a major point, I am
getting killed by syntatic problems. I know the
sophisticated issues but the blocking tackling is
my present downfall. I feel like I am the teacher and
student in the Jaime Escalante story, grin.
--- [EMAIL PROTECTED] wrote:
Chris
OK, try setting a bean to the value of the message and then output the
value of the bean, something like this:
bean:define id=msg
bean:message key=login.format.test/
/bean:define
html:hidden property=methodToCall value=%=msg%/
Or, you can use the struts-el taglibs this way:
c:set var=msg
Hi all,
I'm trying to do the following:
I have a custom action that check if a user is logged in.
If it is not, this action forward to a login action.
Now my problem is, how can I have the login action forward back to the
page the user tried to reach before being forwarded to the login
Hello
I have a form bean that is changed in an action. I set one attribute
secret then on the next jsp I want to display this. If I do
html:text property=secret/ a text box appears with the correct value
in it. My problem is i dont want it in a text box I just want to
display the text.
I have the action mapping below in my struts config file:
action
path=/packageActionCreateT
type=struts.actions.packages.PackageAction
name=PackageForm
input=/pages/createPackage.jsp
parameter=dispatch
scope=session
Troy
jsp:UseBean id=IdOfUseBean scope=Request ..
jsp:getProperty property=IdOfUseBean property=PropertyName ..
bean:write name=IdOfUseBean property=PropertyName scope=request
courtesy of JavaBoutique
http://javaboutique.internet.com/tutorials/StrutsTags/bean_tags.html
HTH,
Martin
- Original
I think a Filter would be ideal for this. Based on the users locale, (or any
logic which identifies a webpage of particular language) the Filter can
maintain the number of hits.
On 10/12/05, Bryon Lape [EMAIL PROTECTED] wrote:
Along similar lines, I have a question of using modules for
Hi Geeta, et. al
I typed too soon. I am still getting a servlet error
even with this modified code and not getting a the
println produced.
playThis action:
HttpSession session = request.getSession(false);
if (session == null)
System.out.println(null session);
String file =
Joe Germuska wrote:
I've used modules in the past, but I too found the walls too high;
since the only real functionality I wanted was splitting config files,
once I realized there are other ways to do that, I stopped using modules.
+1
Checkout problems aren't a good reason for using modules
Chris Pat [EMAIL PROTECTED] wrote on 10/12/2005 11:29:41 AM:
Hi Geeta, et. al
I typed too soon. I am still getting a servlet error
What error are you getting? That String file below is null? Maybe the
error is differnet from what you think it is..?
If not, this is strange. I have set
Hi,
In log4J, if I change the configuration i.e. increase/decrease the
level of a particular logger or add more appenders/categories in the
config file, then do I have to restart the web server for that setting
to take effect.
What I understand from the documentation is that if I use
Oh no, don't show the shopping cart - view.
Most user prefer to see the same thing what they saw after clicking on
add to cart.
Just change the ## products in your cart cost ### string somewhere in
your layout.
BTW it's nothing bad if the user sees top of the search-result list
after add
Okay, I went back and created the smallest app that shows this problem.
It can be downloaded from http://www.henchmonkey.org/struts-test.zip .
The basic problem, as before, is that it is totally impossible in struts
to default a checkbox to true, and still be able to detect when it is
uncheked by
John
There are a number of solutions I would suggest looking at JBuilder doc
located at
http://bdn.borland.com/borcon2004/article/paper/0,1963,32246,00.html
the fastest way is for your button to route to your jsp page is to route to
the page identified by the action mapping in
I've tried to find a solution to absolutely same problem,
with no result (ok-ok, I haven't tried TOO hard).
So now I just go back to the welcome-page, which is OK too ;)
But you can find couple of solutions here, I was too lazy to give a shot:
I like my SQLyog-Tool, using it for couple of years now.
It's really fast, unproblematic and simple to use.
Cheers
Danny
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Paul,
You can declare something like a struts-config-common.xml which will
contain the config items that are common among your modules and then
include them in your config declarations:
param-nameconfig/param-name
param-value
/WEB-INF/classes/elms/resource/struts-config-common.xml,
katre wrote:
The basic problem, as before, is that it is totally impossible in struts
to default a checkbox to true, and still be able to detect when it is
uncheked by a user.
Wow. All those apps of mine, ruined ;)
Someone, please prove me wrong! Tell me struts isn't this limited! Tell
But you can find couple of solutions here, I was too lazy to give a shot:
http://forum.java.sun.com/thread.jspa?threadID=614714messageID=3411424
Thanks a lot for the URL. A method that just keep
request.getRequestURI() and do a sendRedirect to this value works very
well...
--
Dave Newton wrote:
katre wrote:
The basic problem, as before, is that it is totally impossible in struts
to default a checkbox to true, and still be able to detect when it is
uncheked by a user.
Wow. All those apps of mine, ruined ;)
Well, I figured, since no one replied to my first
katre wrote:
Right, and this does work, but it requires having a separate action
leading to every form.
Why _wouldn't_ forms have separate actions?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
[EMAIL PROTECTED] wrote:
Errors are displayed as I expect through my validation.xml but no
error is displayed when it goes through my action class. Any ideas why?
protected ActionForward errorToInput(final HttpServletRequest
request_, final ActionMapping mapping_, final String errorKey_,
Dave Newton wrote:
katre wrote:
Right, and this does work, but it requires having a separate action
leading to every form.
Why _wouldn't_ forms have separate actions?
A lot of my forms (for example, search forms) don't need any special
prepopulation (or just get prepopulation from the
Hi Martin,
Thanks for your suggestion.
Basically the problem that I have is that my action class is only being
called intermittently - the rest of the time I am just being sent straight
to the jsp that I want to display - without ever getting into the action
class. This is causing a major
We have a super-secret (that is, not linked to) URL in our
application that we can use to trigger a Log4J reload. We don't have
to restart the server, but we also don't have to worry about the
possibility of configureAndWatch() taking *any* cycles from our
production box. (Since I put in this
On 10/12/05, katre [EMAIL PROTECTED] wrote:
Um, well, what _I've_ been doing is setting the appropriate ActionForm
value before I display the form, not in reset but in the Action's
execute method (reset works too, but because I've never used
validate=true I'm doing setup stuff in the
If Struts is about community and bringing people and Struts-related
tools together, not about one particular product anymore, then I'd ask
this question right here.
The question is inspired by katre's interest in checkboxes inside
dynaforms. I guess, there should be no problem with request-scoped
Michael Jouravlev wrote:
More importantly (and getting back to my original question), it means
that when using a dyna form, you can't use the initial attribute for
properties. You have to write code to set them to the default value in
that separate action (and thus separating the form
Wow, you've got good timing, because someone is calling for this very
feature in FormDef, patch provided:
https://formdef.dev.java.net/issues/show_bug.cgi?id=2
The quick answer to your question is no. FormDef doesn't meddle
with how Struts populates the form. It's more of a utility class you
On 10/12/05, katre [EMAIL PROTECTED] wrote:
Michael Jouravlev wrote:
More importantly (and getting back to my original question), it means
that when using a dyna form, you can't use the initial attribute for
properties. You have to write code to set them to the default value in
that
By saying not linked to , do you mean its an action loading a JSP , and
is NOT called from any of the pages / buttons etc ? Hiding it from the
application user world ? What does this JSP do internally ?
Thanks
abhay
~~
You can easily
Hi experts!
We're using struts 1.1 and rbac 2.0a.
We have some menu items set up like this in our tiles-defs.xml file:
bean id=Hierarchy
classtype=com.xxx.core.menus.RITilesMenuBean
set-property property=roles
value=ALL_ADMIN/
On 10/11/05, David G. Friedman [EMAIL PROTECTED] wrote:
Paul,
See, after all these years, I really wanted was to
split files up. Modules don't gain me anything, do
they? I know (or I think) when Craig wrote Struts 0.x,
he had an action.xml which did something similar
Now I could
That would be great, but please don't forget the request type. Usually
I need to do this for POST requests only, this separation by type is
really important to me. So instead of reset=true I would rather
have:
form-property
name=someFlag
type=java.lang.String
initial=true
reset=POST/
I'm not sure we're understanding each other about this request type.
When a form is submitted, here's what happens:
* Struts receives a request for an action
* Struts sees that a form was configured for the mapping, so it calls
retrieves the form (if it can find it) or creates a new one
I just mean that none of the other pages in the application link to
it, so chances are pretty good that nobody who doesn't know about will
find out about it. All it does internally is call the Log4J
DOMConfigurator.configure() method and write a simple success message
to the user. You can
On 10/12/05, Hubert Rabago [EMAIL PROTECTED] wrote:
I'm not sure we're understanding each other about this request type.
When a form is submitted, here's what happens:
* Struts receives a request for an action
* Struts sees that a form was configured for the mapping, so it calls
retrieves
Has anyone used the StrutsPleaseWait solution from the
Struts Wiki with DynaForms? It seems that the code in
the example doesn't handle DynaActionForms correctly
because
org.apache.commons.beanutils.BeanUtils.cloneBean() is
used to clone the form. Has anyone else arrived at the
same conclusion? I
Still not quite getting you. Are you saying that reset will be called
during your GET? Is this because you've configured your action with
the same form?
On 10/12/05, Michael Jouravlev [EMAIL PROTECTED] wrote:
If you're prepopulating your form, none of this matters, since either
(1) you'll
I need to construct a table of files available for download. A file is
downloaded by hitting the /download.do?jobId=2 action. The info for
each row in the table is stored in an action form called
retrieveJobsFormBean. This actionform contains a List of DownloadJob
objects. Each of these objects is
On 10/12/05, Faisal Mahmoud [EMAIL PROTECTED] wrote:
I need to construct a table of files available for download. A file is
downloaded by hitting the /download.do?jobId=2 action. The info for
each row in the table is stored in an action form called
retrieveJobsFormBean. This actionform
[EMAIL PROTECTED] on 11/10/05 07:20, wrote:
I'm using *Struts 1.1* to build an application with multiple Struts
modules.
I put my validations for each module in a seperate validations.xml
file. For example, I have validations-a.xml for module a and
validations-b.xml for module b. I then
Actually, what I did was the following change to my html:link
html:link action=downloadFile.do paramId=jobId paramName=job
paramProperty=jobId
So I changed teh paramName to job, which is the variable that refers
to the bean during the iteration.
On 10/12/05, Jeff Beal [EMAIL PROTECTED] wrote:
On 10/12/05, Hubert Rabago [EMAIL PROTECTED] wrote:
Still not quite getting you. Are you saying that reset will be called
during your GET? Is this because you've configured your action with
the same form?
It is not *my* GET ;-) Ok, I will try to analyze what happens on
request, please
On 10/12/05, Michael Jouravlev [EMAIL PROTECTED] wrote:
It is not *my* GET ;-) Ok, I will try to analyze what happens on
request, please correct me if I am wrong.
HTML form is submitted to an action (in 99% of cases via POST);
1) RequestProcessor.process() is called:
2) ActionForm form
David G. Friedman on 11/10/05 20:58, wrote:
Wouldn't XDoclet's Struts Validator features work for you
in this regard? It wouldn't be i nthe JSP or at startup
but at build/compile time. See:
http://xdoclet.sourceforge.net/xdoclet/tags/[EMAIL PROTECTED]
David,
that looked tantalising but
You must be referring to Ted Husted's article on hiding entry points where
he discourages use of html:link and possible obfuscation
of entry points
http://www.jguru.com/faq/view.jsp?EID=741079
Martin-
Support American industry
Caterpillar Engines - Made by Americans for Americans
On 10/12/05, Michael Jouravlev [EMAIL PROTECTED] wrote:
I really want to use your stuff, but I need to differentiate between
request types (more generally, between input and output phases, but in
95% of cases it boils down to request type).
It seems your concerns are outside the scope of
Thanks Dave that worked... my errors.jsp is pasted below. So I used two sets
of tags one for the struts validation errors and one for the action errors.
It would have been more elegant using only 1 set of tags but I guess this
works just fine.
%@ page contentType=text/html;charset=UTF-8
Hubert,
does that work for all config items including global exceptions etc, as
was discussed earlier?
Adam
Hubert Rabago on 12/10/05 17:09, wrote:
Paul,
You can declare something like a struts-config-common.xml which will
contain the config items that are common among your modules and
Hi,
There are a lot of google entries about servlet 2.5 spec, but I fail
to find the JSR for it. The JSR 154 states itself as 2.4 (shorty in
maintenance review), but offers a 2.5 download.
Now is this the
http://www.jcp.org/aboutJava/communityprocess/maintenance/jsr154/index3.html
official 2.5
[EMAIL PROTECTED] wrote:
Thanks Dave that worked... my errors.jsp is pasted below. So I used
two sets of tags one for the struts validation errors and one for the
action errors. It would have been more elegant using only 1 set of
tags but I guess this works just fine.
That's actually what I
So, returning back to what should be done: the checkbox values should
be cleared, before they are populated with request values.
And this is what Struts does now, assuming you have the correct code
in reset(). http://struts.apache.org/userGuide/struts-html.html#checkbox
I am telling you
I need help. I am getting the following exception when I try to login in
my web application
I am using struts 1.1 and weblogic 7.0. Below is the stack trace
Oct 12, 2005 8:57:42 PM GMT Error HTTP 101017
[ServletContext(id=130706
4407,name=web,context-path=/seal)] Root cause of
session.setAttribute(file, temp);
vs.
request.getAttribute(file);
you know that request and session are different scopes?
change the second line to request.getSession().getAttribute(file);
regards
leon
On 10/11/05, Chris Pat [EMAIL PROTECTED] wrote:
Hello
When I use the code below the Action
...
system-oriented error types never run.
Dave
When I was using an older version of Struts I used ActionErrors and I could
get away with just one set of jsp tags. I guess they have been deprecated
for a good reason.
Anyhow, when I get time I'll move the validation from my action class
On 10/12/05, Michael Jouravlev [EMAIL PROTECTED] wrote:
I am telling you that checkbox values should be cleared, you are
telling me that reset() is get called. Don't you think these are
different things? ;-)
I don't think there are any disagreements there. :) We're discussing
clearing these
On 10/12/05, Michael Jouravlev [EMAIL PROTECTED] wrote:
Well, that means that I should patch RequestProcessor/RequestUtils
myself. Thanks for clarification. Still, that enhancement in Bugzilla,
it is important despite the fact that it is outside of FormDef's
scope. All I am asking for is to do
Hi All,
I want to stick with container-managed security and I would like to have
form-based login on servlet 2.4 (tomcat 5), with SSL encryption on the
login form but then switch back out of SSL for the remainder of the
session (mostly).
I tried this 18 months ago and if my memory serves me
Adam Hardy wrote:
I tried this 18 months ago and if my memory serves me well, in tomcat
5, if I switch the request back out of SSL with a redirect or similar,
I can no longer see the SSL session (and am effectively not logged in
anymore).
Is there an easy way around this? A javascript
Hope you don't mind me trying again here (and removing FormDef from
the subject).
I see two scenarios.
action path=/edit type=PrepareFormAction/
action path=/save type=SubmitFormAction name=myForm input=/edit.jsp/
in PrepareFormAction, you'd:
DynaActionForm myForm = (DynaActionForm)
[EMAIL PROTECTED] wrote:
I'm not so sure about using different style for front end and back end
errors - great for a developer but confusing for a user (of a consumer
site)
I display form errors within the form itself (with a non-radical message
saying they screwed up) and system errors in
Hubert Rabago wrote:
On 10/12/05, Michael Jouravlev [EMAIL PROTECTED] wrote:
Do you want to say, that Struts somehow gets to know that a form was
submitted? How exactly does it do that? Can you show it in the code?
There is nothing in request which says this stuff comes from an HTML
form.
Why not have the best of both? I've found this trick to be handy:
1. Define a common config file that contains items you want to share
2. For each module, specify both the common and module-specific
configuration file. At runtime, they will be treated as if they were one big
file to begin with.
On 10/12/05, Dave Newton [EMAIL PROTECTED] wrote:
Hubert Rabago wrote:
Regardless of your conventions for GET and POST, I still don't
understand how a call to reset() when a form is submitted messes up
your prepopulation routine when no forms are being submitted and
reset() doesn't get
Yes.
Hubert
On 10/12/05, Adam Hardy [EMAIL PROTECTED] wrote:
Hubert,
does that work for all config items including global exceptions etc, as
was discussed earlier?
Adam
Hubert Rabago on 12/10/05 17:09, wrote:
Paul,
You can declare something like a struts-config-common.xml which
Dave Newton on 12/10/05 23:22, wrote:
Adam Hardy wrote:
I tried this 18 months ago and if my memory serves me well, in tomcat
5, if I switch the request back out of SSL with a redirect or similar,
I can no longer see the SSL session (and am effectively not logged in
anymore).
Is there an
Frank,
I didn't know this. I thought the only way to chunk up
the Struts config was to define modules, because only
one XML could be specified. well now that I know I
can have one (default) module that contain all my
configurations, I am chucking the modules. :-)
Paul
--- Frank W. Zammetti
Why wouldn't you want to use modules? I find them a great organizational
tool and way to customize each request processor for its section.
Don
On 10/11/05, Preston CRAWFORD [EMAIL PROTECTED] wrote:
No, in our case it's mostly to make the code manageable. We're putting
code into separate
I do not use pre- and post- actions. I use only one action to prepare
and display and to process input. Think ASP.NET or JSF. Therefore,
I need to differentiate what phase I am in.
I do not create form instance in an action class, I prefer it to be
created for me.
Here is the example from
My memory of all this stuff is a bit foggy, and some of this is just
plain speculative, so this post is sort of general (and maybe even wrong
in some spots ;-) -- but I hope it might have some value in guiding you
toward a solution...
Some browsers (somewhat correctly, though somewhat
fabFORCE is a free too. It supports ER diagram.
2005/10/12, Danny Lee [EMAIL PROTECTED]:
I like my SQLyog-Tool, using it for couple of years now.
It's really fast, unproblematic and simple to use.
Cheers
Danny
-
To
Hi All,
Iam using struts 1.2.7 and commons validator 1.1.4..
I made the validator working with these, but after a while, its not
validating the jsp form for some reasons..
This following is the error message, I get when I try validating the form.
--
17:00:22,292 ERROR
I'm dieing to hear if you solved this issue. Sounds like a Hibernate caching
problem after I read the rest of the posts.
On 10/6/05, Preston CRAWFORD [EMAIL PROTECTED] wrote:
Yes on the first one.
We are calling session.invalidate() on logoff. Even more, if you close
down the browser AND
Troy,
You can use bean:define tag to display the value as text.
Here is example
bean:define id=txtSecret name=formName property=secret/
show it like this : %=(String)txtSecret%
Hope it helps.
Sunil
Troy Bull [EMAIL PROTECTED]
10/12/2005 08:25 PM
Please respond to
Struts Users Mailing List
John,
Can you explain your problem little bit more, i am not getting your
problem exactly.
Sunil
John Andrews [EMAIL PROTECTED]
10/12/2005 10:16 PM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
Struts Users Mailing List user@struts.apache.org, Martin Gainty
[EMAIL
Adam,
You can see a quick example of the @struts.validator xdoclet
syntax on this guy's blog:
http://www.raibledesigns.com/page/rd/20030226
But this one is much better:
http://www.systemmobile.com/articles/XDocletDynaForms.html
Does that help you see how XDoclet works with the Struts
At http://squirrelsql.org I cannot see anything about eclipse. Can you help
me please where I can find the eclipse plug-in.
Zsolt
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic Cekvenich
Sent: Wednesday, October 12, 2005 2:44 PM
To: user@struts.apache.org
92 matches
Mail list logo