hi all,
this is my hbm.xml:
composite-id
key-property
not-null=true
name=id
column=ID
type=java.lang.Integer
length=10
/
..
..
..
/composite-id
the output Error:
[19/09/05 9.03.38:601 CEST] 736f736f XMLHelper
Hi David,
One way to get around the problem would be to store the form bean in the
session, or at least the id, and it will exist between requests. You'll
just need to make sure your viewUser.do action updates the session
variable correctly, and any other actions that use it.
-Original
Hi I have a situation like this:
User clicks on /viewUser.do?id=4 action, which loads the specific user
with
id4 to be viewed.
On that page is a form, the form is submitted, if some part of the xml
validation fails I need to return back to /viewUser.do?id=4. It would be
ideal if the
Hi!
I don't know is there proper place for discussing shale. If it's not can
you point me to correct mailing list
I'm using JSF and looking for good rendering/template framework.
Remembering that Shale is created by those people who have done Struts I
prefer using it instead of faceletes ;)
Hi
I've a form with some input-fields and at the first time the html:reset works
normally.
I submit the form and I've errors that are validated.
I'm still at the same page.
When I now press the reset button they are not deleted any more.
Reset always retrieves the state, that was before the
I'm making a project that makes a picture gallery that has to be
accessible throw web, wap, webdav and file sharing. The project
consisting of a ejb backend and struts frontend(using velocity as
presentation).
I have made the EJB backend so that each dir with pictures in has a xml
file
So my question is:
Do I jave to use a javascript function?
Is it possible to map html:reset value=reset/
with the reset-method in the ActionForm?
I didn't manage this.Thanks for any advice
Nice greetings
You need to reset form - after submiting form instance with data is still in
the
---BeginMessage---
Hi,
Check the reset section in this link :
http://struts.apache.org/api/org/apache/struts/action/ActionForm.html#reset(org.apache.struts.action.ActionMapping,%20javax.servlet.http.HttpServletRequest)
Regards
Kathir.
From: starki78
I try to parse some input from HTML form with
Java.sql.Timestamp toReturn;
SimpleDateFormat dateFormatTime(HH:mm);
Calendar cal = new GregorianCalendar();
cal.setTimeInMillis(0);
cal.setTime(dateFormatTime.parse(timeString));
toReturn = new Timestamp(cal.getTimeInMillis());
The point
You can try use the SimpleDateFormat class in java.text to parse the
time string.
-Original Message-
From: Wojciech Ciesielski [mailto:[EMAIL PROTECTED]
Sent: 19 September 2005 15:57
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RE: a little bit OT: Calendar misbehaviour
You can try use the SimpleDateFormat class in java.text to parse the
time string.
That's what I am doing:
Java.sql.Timestamp toReturn;
SimpleDateFormat dateFormatTime(HH:mm);
Calendar cal = new GregorianCalendar();
cal.setTime(dateFormatTime.parse(timeString));
toReturn = new
Ok, then I assume the problem is that calendar.getTimeInMillis() returns
the timestamp in UTC, and you need it in your local timezone?
-Original Message-
From: Wojciech Ciesielski [mailto:[EMAIL PROTECTED]
Sent: 19 September 2005 16:13
To: 'Struts Users Mailing List'
Subject: RE: a
thank you very much for your answer!
But when I validate and I've have a error
I would like that the wrong typing is still
displayed that the user can see what was wrong!
Only after the reset button is clicked the values should be
cleared!
Is there a good possibility?
Ciao!
--
well it should work but. Check the permissions of the files!
And sometimes you have to use C://ProjectGallery//web//..
this is what I would try at first.
Ciao
-- Initial Header ---
From : news [EMAIL PROTECTED]
To : user@struts.apache.org
Cc :
Date :
If timezone if the problem, then use SimpleDateFormat.setTimeZone() and
Calendar.setTimeZone() to set the timezones to UTC. That should
eliminate the timezone correction and give you the right number.
Wojciech Ciesielski wrote:
I try to parse some input from HTML form with
This from Ron Gagnon
try {
/*
** we specify Locale.US since months are in english
** we want to parse a TimeStamp
*/
SimpleDateFormat sdf = new SimpleDateFormat(dd-MMM- HH:mm:ss,
Locale.US);
/*** fix timezone in the SimpleDateFormat** this is a bug in JDK1.1*/
thank you very much for your answer!
But when I validate and I've have a error
I would like that the wrong typing is still
displayed that the user can see what was wrong!
Only after the reset button is clicked the values should be
cleared!
Is there a good possibility?
Reset button usually
Hi All,
Is there any way in struts to automatically trim the string before
setting them in the form object?
We can do it thru javascript but just want to know if Struts has any
feature for this.
Thanks and regards,
Abhinav
CAUTION - Disclaimer *
This
On 9/19/05, Bianchi Fabio [EMAIL PROTECTED] wrote:
hi all,
this is my hbm.xml:
Huh?
why ?
Huh?
what can I do ?
Try posting to the Hibernate user list instead? ;-)
Larry
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
yes I know ... I made a little CONFUSION sorry ;)
Fabio Bianchi
SVI/SACI
Fiditalia S.p.A.
via G. Silva, 34 - 20149 Milano
Tel. +39-02-43012409
Fax. +39-02-43012680
e-mail [EMAIL PROTECTED]
Sito internet: www.fiditalia.it
-Messaggio originale-
Da: Larry Meadors [mailto:[EMAIL
The img src=... tag is evaluated by the browser (not the server), therefore
when this
code arrives at your users browser it is going to look for the image on their
local hard
drive - obviously it won't be there.
You will probably need to set up an action class to read and write the image
That's what I'm doing now, but the problem is that it forces me to
re-release the BaseApp every time I want to ship a new feature. The BaseApp
is on a slower release schedule, about once every six months, whereas it
would be nice to support new features sooner than that.
The BaseApp is
thank you all very much!
-- Initial Header ---
From : Wojciech Ciesielski [EMAIL PROTECTED]
To : Struts Users Mailing List user@struts.apache.org
Cc :
Date : Mon, 19 Sep 2005 13:45:56 +0200
Subject : RE: HTML-Reset-botton works only before submit
hi all,
I am looking at some simplified way of displaying the radio button
on a jsp depending upon the value of an ActionForm's property.
For example I have got an ActionForm with a property name sex, which can
take 'M' or 'F' as input.
Now after storing the value in an ActionForm instance
Hi Joe,
You can create a subclass of ActionServlet to load all of it's 'modules' from a directory rather
than by specifiying them in the web.xml. You could package your modules up as a jar file and load
them directly without exploding them.
The axis2 project has a simular utility for
Initialise your Action Form set sec equal to 'M' or 'F'.
Add the following to your jsp
html:radio property=sex name=MyActionForm value=M/
html:radio property=sex name=MyActionForm value=F/
-Original Message-
From: rahul [mailto:[EMAIL PROTECTED]
Sent: 19 September 2005 13:34
To:
Hi
It did start up ok under 5.5.9, so there must be some sort of
compatibility issue with 5.0.30
Hermod
-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sendt: 16. september 2005 13:46
Til: user@struts.apache.org
Emne: SV: [Shale] NullpointerException when running
Yeah, I've upgraded to the version from last night (20050918), which
works ok. This might be a bug, because tomcat 5.0.x and 5.5.x both
implement the same version of the specs. But I'm not sure whether it is
a bug in tomcat, the xml parser, or commons-digester.
-Original Message-
From:
-digester.
I'm not seeing a problem with the latest nightly (20050919) on either Tomcat
5.5.9 or 5.0.30.
If anyone is still having trouble with the use-cases app starting up, can
you please try the latest version?
http://svn.apache.org/builds/struts/nightly/struts-shale/
Shale should work
of the specs. But I'm not sure whether it
is
a bug in tomcat, the xml parser, or commons-digester.
I'm not seeing a problem with the latest nightly (20050919) on either
Tomcat
5.5.9 or 5.0.30.
If anyone is still having trouble with the use-cases app starting up,
can
you please try the latest version
From: [EMAIL PROTECTED]
Same problem with latest build - It gives a NPE on 5.0.30 during
startup:
2005-09-19 15:48:19 StandardContext[/struts-shale-usecases]Exception
starting filter shale
javax.servlet.ServletException: Error at line 41 char 56: null
...
- Root Cause -
a servlet mapping to the suffix that
you specify for the clay-template-suffix.
You can see an example of all of these techniques in the Rolodex usecase in the
nightly build
(http://svn.apache.org/builds/struts/nightly/struts-shale/shale-framework-20050919.zip).
The war is located under
Ya I had thought about this, however I am trying to stay away from storing
stuff in the session unless it is absolutely critical, however I will keep
this in mind.
Thanks,
David
-Original Message-
From: Holshausen, Ron [mailto:[EMAIL PROTECTED]
Sent: Monday, September 19, 2005 1:54 AM
-Original Message-
From: Wojciech Ciesielski [mailto:[EMAIL PROTECTED]
Sent: Monday, September 19, 2005 4:03 AM
To: 'Struts Users Mailing List'
Subject: RE: Validator woes, modifying the input forward on the fly?
Hi I have a situation like this:
User clicks on /viewUser.do?id=4
thank you very much
It worked!
-Original Message-
From: Harland, David [mailto:[EMAIL PROTECTED]
Sent: Monday, September 19, 2005 6:07 PM
To: Struts Users Mailing List
Subject: RE: Radio Button in ActionForm
Initialise your Action Form set sec equal to 'M' or 'F'.
Add the
Hello,
We are using Struts 1.2.4, and Weblogic 8.1.
The problem is as follows -
One of the action mappings in my struts-config.xml is -
action path=/sampleAction
type=com.action.carrier.SampleAction
name=sampleActionForm
/action
The sampleActionForm corresponds to an entry in form-beans as
On 9/19/05, David Erickson [EMAIL PROTECTED] wrote:
-Original Message-
From: Wojciech Ciesielski [mailto:[EMAIL PROTECTED]
Use ActionRedirect class in your STRUTS Action's execute:
ActionRedirect ar = new
ActionRedirect(mapping.findForward(myRedirectForward);
On 9/19/05, David Erickson [EMAIL PROTECTED] wrote:
-Original Message-
From: Wojciech Ciesielski [mailto:[EMAIL PROTECTED]
Use ActionRedirect class in your STRUTS Action's execute:
ActionRedirect ar = new
ActionRedirect(mapping.findForward(myRedirectForward);
-20050919.zip).
The war is located under the webapps folder.
Gary
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
From: Maksimenko Alexander [EMAIL PROTECTED]
The only difference is instead of span jsfid=content.html / in profile
screen I need profile.html and in main I need main.html components. How
can I do this?
Well... to me, this sounds like a job for Tiles. Gary, what do you think?
As far as
Hi,
I'm using the html:optioncollection ... only with collections. Now I need
to order the contents. It's possible to assign anything else
(orderable/sortable) than collections
to this tag?
marc
The only difference is instead of span jsfid=content.html / in profile
screen I need profile.html and in main I need main.html components. How
can I do this?
Well... to me, this sounds like a job for Tiles. Gary, what do you think?
Yes, I agree. The role of Clay is to glue togather
From: Marc Ende [EMAIL PROTECTED]
I'm using the html:optioncollection ... only with collections. Now I
need
to order the contents. It's possible to assign anything else
(orderable/sortable) than collections to this tag?
What are you using now, and what do you need it to do?
This works with a
*
P U S H E D B A C K !
*
The twelfth bird-of-feature Struts JSF London meet-up has been
postponed for just eight days.
The event will now take place
Marc Ende on 17/09/05 18:20, wrote:
Hi Adam,
hmmm... I always had this problem with the struts.jar. So I decided
to put the jar in the shared lib. The .war I do deploy is an
application wich have connections to an existing ejb on the same
server but there are no ejb's inside this project. There
Hi Adam,
OK, I think I might have seen problem too, but at this time,
I am deploying my struts webapp war as a war file by copying
it into the deploy directory and it causes no problem but
redeploys nicely.
Now I'm deploying the webapp as a .war-file not as an exploded war anymore.
So I'm
Abhinav Bhatnagar wrote:
Hi All,
Is there any way in struts to automatically trim the string before
setting them in the form object?
We can do it thru javascript but just want to know if Struts has any
feature for this.
I don't think so. You could define a custom RequestProcessor to do this
Hi Joe
If there is a particular function (like server type) you could store the
different types in a
database record and then access the classes using reflection.
Kind regards
mc
On 19 Sep 2005 at 8:13, Joe Bermann wrote:
That's what I'm doing now, but the problem is that it forces me to
You do it exactly the same way, although you specify the values on the tags as
you
would for adding a new record. eg
html:radio name=person property=gender value=MMale
html:radio name=person property=gender value=FFemale
Struts will automatically check the radio control that matches the
Wow, that's a big topic :-) The first thing I'd suggest is to think
about using a full J2EE application server and packaging your
apps/modules as EARs/WARs/etc. J2EE already includes solutions to most
of the requirements you list below; in particular, you can use the app
server's deployment
There's nothing specific in Struts, but a filter does the trick nicely:
http://javawebparts.sourceforge.net/javadocs/index.html
That will actually do *all* incoming requests, but that's probably what
you want anyway. You can limit it by path too if that's helpful.
Frank
Laurie Harper
Sorry for interruption.
After reading your discussion, I try to read the more about Shale.
From the webpage, http://struts.apache.org/shale/index.html,
it is found that Shale does not depend on Struts.
I wonder if Shale will be independent of Struts?
2005/9/20, Gary VanMatre [EMAIL PROTECTED]:
Sorry for interruption.
After reading your discussion, I try to read the more about Shale.
From the webpage, http://struts.apache.org/shale/index.html,
it is found that Shale does not depend on Struts.
I wonder if Shale will be independent of Struts?
I think that depends on the
Hi all
Hibernate is an excellent tool! I managed to get it running quite quickly,
only a few
small issues to resolve, fortunately the error messages were fairly clear.
I've implemented Hibernate into the beginning of a new Struts app, however my
code
isn't looking like the examples and I'm
Hi ,
I think the Struts ActionMapping will try to invoke the setter and getter
methods of the ActionForm with the same name in html:text if the names are
not equal simply it will not invoke the Setter() method . So the corresponding
Variable will be null . i think it wont throw any exception
55 matches
Mail list logo