If I remember correctly, when you either forward or redirect from one
action to another, Struts performs the reset/populate/validate
sequence again. If you redirect, the request is empty, so nothing to
populate and the form corresponding to second action is not updated.
But if you forward from one
I googled a bit for a taglib providing a tag to include any http-sources in
my jsp-pages (as you know I want to include
PHP-generated pages) and found the Jakarta IO-taglib
(http://jakarta.apache.org/taglibs/doc/io-doc/intro.html).
I have not had the time to experiment with it, but it looks promis
I read through the documentation and it seems like a nice add-on,
however, I did not see any examples on submitting two action forms
with one jsp page at the same time. Can you show me a code sample?
Thanks
Oleg
On 11/15/05, Oleg <[EMAIL PROTECTED]> wrote:
> Cool. I will check it out. Any other i
Try like this it will work
Here properties file or folder must be in root directory as
MainFolder
|
Com.test.loadresource.file.java
|
resources
|
Resource file name
Class file{
private static void loadConfiguration() {
bundle =
ResourceBundle.getBundle(
I believe if you try to access from main it is not possible to access the
file without giving the absolute path.
However, if you try to access it from a servlet you can use
getServletContext().getRealPath(
"/WEB-INF/classes/myMessegeResources.properties").
Regards,
Basudeb Acharya
Tata Consul
Hi All
Can some one please recommend a pagination utility for my struts application.
I also need to export the data in the table to excel (xml also if possible).
I looked at Displaytag, however I ran into issue when I had to display
different tables in different pages in the applicati
try using (className.class).getResource("NameOfResourceInFolder");
it returns a URL
get path from String path = URLName.getPath();
and then,
add your relative path to the path returned
-Original Message-
From: Shailesh Barde [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 16, 2005 9:5
hi,
sorry. forgot to mention that you would have to take path.lastIndexOf("/")
and then add your relative path
-Original Message-
From: Vishal Dalal
Sent: Wednesday, November 16, 2005 10:17 AM
To: 'Struts Users Mailing List'
Subject: RE: Is it Possible!
try using (className.class).getR
Hi Michael!
thanks so much for replying and giving a wonderful examplei would need
to add a set of blank rows to the form on clicking on add button and should
be able to edit the previuos entries as well. Can i get a code for that?
thanks a ton !
Simpy
On 11/16/05, Michael Jouravlev <[EMAIL
hi,
I want to access myMessegeResources.properties.However, if i try to access it
this way it throws an exception of FileNotFound.However if i give Disk absolute
path then it accesses that myMessegeResources.properties file.
How to access the relative file in WEB-INF
1)Doesn't Works:-Here i
Maybe you're right because I can't get the PHP page in the Tiles frame no
matter what I try. I tried withou the controller class also.
Jim
From: "Martin Kindler" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'"
Subject: AW: STRUTS PHP
Date: Tue, 15 No
Cool. I will check it out. Any other ideas on how to do it without
extra libraries, with just struts?
Thanks,
Oleg
On 11/15/05, Danny Lee <[EMAIL PROTECTED]> wrote:
> Yeap I had similar problem too,
> perfectly solved with Struts Dialogs Framework.
>
> Just check this stuff out.
>
> http://struts
in ur action mappings in struts-config.xml , u can specify the
input="" and so whenevr u want the user to return to the
input page, u can say mapping.getInput() anf forward the user to the page
they were on when they submitted the form
HTH
Deepa
On 11/16/05, Mick Knutson <[EMAIL PROTECTED]> wrot
[ANNOUNCE] Dear Struts-users,
Stylus Studio has released Stylus Studio 2006 XML Enterprise Edition,
an XML IDE with full support for editing, validating and debugging
XML/XSLT using Apache XML processing components is now available for a
free trial download at: http://www.stylusstudio.com/xml_down
Woops, didn't go to the list
- Original Message -
From: "Niall Pemberton" <[EMAIL PROTECTED]>
Sent: Wednesday, November 16, 2005 1:13 AM
> Thanks Joe, I had already out them there, so I assume ibiblio will pick
them
> up in the next few hours.
>
> Niall
>
> - Original Message -
At 11:47 PM + 11/15/05, Niall Pemberton wrote:
Whenever I can find out how to get ibiblio updated.
You want to define a bunch of properties like this (probably in your
~/build.properties file)
##
# DEPLOYMENT PROPERTIES
##
# http://maven.apache.org/referen
I think you just email them with the details and the jar
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 15, 2005 3:47 PM
To: Struts Users Mailing List
Subject: Re: [ANNOUNCE] Release of Commons Validator 1.2.0
Whenever I can find out how to get
Whenever I can find out how to get ibiblio updated.
Niall
- Original Message -
From: "Mick Knutson" <[EMAIL PROTECTED]>
Sent: Tuesday, November 15, 2005 11:42 PM
> When will this be available in the ibiblio Maven Repository?
>
> -Original Message-
> From: Niall Pemberton [mailt
When will this be available in the ibiblio Maven Repository?
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 15, 2005 3:30 PM
To: Struts User Jakarta
Subject: [ANNOUNCE] Relase of Commons Validator 1.2.0
The Jakarta Commons Validator team is ple
The Jakarta Commons Validator team is pleased to announce the availability
of Commons Validator 1.2.0. For a summary of what's new in Validator 1.2.0
see the notes on the Commons Wiki:
http://wiki.apache.org/jakarta-commons/ValidatorVersion120
A complete list of changes is available in the change
Sehr geehrte Damen und Herren,
in der zeit vom 7. November 2005 bis 18. November 2005 bin ich im Urlaub. Bitte
wenden Sie sich bei allen Fragen entweder direkt an [EMAIL PROTECTED] oder
telefonisch an: 0511 / 93 62 28 22
Mit freundlichen Grüßen
Andreas Bednarz
I have a tile component that I use many places in my app, and I want to
return the user back to the page they where on when they submitted the
component form.
How can I do this?
"MMS " made the following annotations.
--
**DISCLAIMER**
This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee, please notify the sender immediately by e-mail if you have received this e-mai
I've got a form with an indexed propety contained in an array list, with
values such as ssn. It has four accessor methods
List getDependents()
DependentForm getDependent(int i)
void setDependents(List l)
void setDependent(int i, DependentForm form)
The validator makes an ActionError with a key of
Will something like this work:
http://www.superinterface.com/strutsdialog/crudactionlite.do
or you need in-place editing right in the table?
--
Struts Dialogs: code-behind for Struts
http://struts.sourceforge.net/strutsdialogs
On 11/14/05, Simpy Ahuja <[EMAIL PROTECTED]> wrote:
> Hi!!!
> Warm Gr
On 11/15/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
> I have a dispatchAction form that is submitted, and I want to show a
> confirmation (ok/cancel) dialog when I click submit.
>
> What is the best struts way to do this please?
onSubmit attribute of
http://struts.apache.org/struts-taglib/tagrefe
Whoa. Even if you knew nothing about Struts, what do you think this
typecast and immediate return gives you:
> DynaActionForm Form1 = (DynaActionForm) form;
> return mapping.findForward("success");
Try to use the type that you are supposed to use:
also use around your table, bec
I'm not sure about best, but I'm guessing you're inquiring about a
javascript confirm.
-Dennis
"Mick Knutson" <[EMAIL PROTECTED]>
11/15/2005 01:41 PM
Please respond to
"Struts Users Mailing List"
To
"Struts Users Mailing List"
cc
Subject
best way to add a confirmation dialog when submitt
sorry, if I am not clear enough in my posts
For now I am just just trying to lauch the jsp with all blank values.
I am using dynaform beans.
key="colon"/>
styleClass="invisib
I have a dispatchAction form that is submitted, and I want to show a
confirmation (ok/cancel) dialog when I click submit.
What is the best struts way to do this please?
"MMS " made the following annotations.
--
Warning:
http://www.catb.org/~esr/faqs/smart-questions.html#beprecise
http://www.catb.org/~esr/faqs/smart-questions.html#volume
http://www.catb.org/~esr/faqs/smart-questions.html#id3001578
http://www.catb.org/~esr/faqs/smart-questions.html#homework
On 11/15/05, fea jabi <[EMAIL PROTECTED]> wrote:
> thankyo
thankyou for your resposes. But where do I have to write this code? Is it in
the Action that prepares the jsp data before it gets launched?
I did not write the below and getting
javax.servlet.ServletException: No getter method for property custName of
bean org.apache.struts.taglib.html.BEAN
Wow. Right on. Using the with additional attributes as shown
in the wiki entry below indeed solved the problem.
Thank you, and thanks to everyone else who patiently read my posts
and offered help.
Mark
On 15Nov, Rahul Akolkar wrote:
> On 11/15/05, Mark S Petrovic <[EMAIL PROTECTED]> wrote:
>
Thanks for your help, I haven't seen this tutorial, do you have a link?
- Original Message -
From: pc leung
To: Struts Users Mailing List
Sent: Tuesday, November 15, 2005 11:01 AM
Subject: Re: Integrate Hibernate in Struts
there is an example of using hibernate and struts
This is an interesting hack. Indeed, HTML 4.01 specifies that when
application/x-www-form-urlencoded content is submitted, "the control
names/values are listed in the order they appear in the document". [1]
So, the strict argument order should be pretty much guaranteed by
compliant browsers.
But t
Hi
I had a similar problem a while back and found that using this instead
worked:
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
I don't know why.
Might be worth a try.
-Original Message-
From: Mark S Petrovic [mailto:[EMAIL PROTECTED]
Sent: 15 November 2005 16:34
To:
On 11/15/05, Mark S Petrovic <[EMAIL PROTECTED]> wrote:
> I know I'll look back on this learning curve with a head-slapping
> recollection, but until then, for posterity:
>
> 1. If I remove the taglib directive in the JSP, the various tags
> are copied directly into the html output, with the brow
Thanks Laurie. It works with the way you suggested. But it makes a lot of
things clumsy..
1. I need to have different action class mappings potentially for each of
the CRUD operations... though all of them use the same dispatch action
class.
2. I still havent figured out a way where you need to p
Mark S Petrovic wrote:
Whatever is misconfigured in my app is not a completely fatal situation:
I just can't get at the scripting variables to do meaningful operations
on them.
Can you set a String into scope:
request.setAttribute("foo", "bar");
then in a JSP do:
?
Dave
I know I'll look back on this learning curve with a head-slapping
recollection, but until then, for posterity:
1. If I remove the taglib directive in the JSP, the various tags
are copied directly into the html output, with the browser doing its
best to just ignore them. The plaintext tag body c
On 11/15/05, pc leung <[EMAIL PROTECTED]> wrote:
>
> I'd like to give it try. But in the documentation web page of shale,
> there is no installation guide. I do not know how to install it. It
> contains api only. Any installation guide or tutorial of using shale
> with myfaces?
For general inform
Thanks michael
On 11/15/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
>
> Firefox? Add "no-store":
>
> response.setHeader("Cache-Control", "no-cache, no-store");
>
> On the other hand, SSL + "no-cache" should work for Firefox as well,
> hmm...
>
> On 11/15/05, Srinivas Jadcharla <[EMAIL PROTECT
Firefox? Add "no-store":
response.setHeader("Cache-Control", "no-cache, no-store");
On the other hand, SSL + "no-cache" should work for Firefox as well, hmm...
On 11/15/05, Srinivas Jadcharla <[EMAIL PROTECTED]> wrote:
> Hi There,
>
> I have a problem logging out my Struts Based Web Application.
Thanks a lot..But i am unable to implement it...Please send me any example
file or any article which implements this
On 11/15/05, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
>
> In short, yes. I've implemented both solutions to effect an editable
> "spreadsheet" component.
>
> -Dennis
>
>
>
>
>
We found one more thing that is not documented as part of upgrade steps are -
All the perform* methods have been removed from ActionServlet & user is
supposed to code
a customer RequestProcessor & override them (if he had earlier had customer
ActionServlet).
-Bhaskar
--
I don't know if I understand you right, but if you wan't to get the
option selected before validation, just save it in some form Attribute
of your Struts Form and then use:
value="${myForm.lastSelectedThing}>
Cheerz
Danny
Chen Jerry schrieb:
Well, I make multiple selection and submit the p
Is that the *COMPLETE* struts-config.xml listing? If so, it's not
complete and wouldn't be parsed properly, and hence the collections named
in the stack trace wouldn't have been created.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fz
Yeap I had similar problem too,
perfectly solved with Struts Dialogs Framework.
Just check this stuff out.
http://struts.sourceforge.net/strutsdialogs/
Cheers
Danny
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
In short, yes. I've implemented both solutions to effect an editable
"spreadsheet" component.
-Dennis
Dave Newton <[EMAIL PROTECTED]>
11/15/2005 09:56 AM
Please respond to
"Struts Users Mailing List"
To
Struts Users Mailing List
cc
Subject
Re: [OT]Re: Display data in excel format
Working fine in Netscape Browser.We are getting problem with IE.
On 11/15/05, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
>
> Sounds like an opportunity for a ValidSession filter:
>
> http://java.sun.com/blueprints/corej2eepatterns/Patterns/InterceptingFilter.html
>
> -Dennis
>
>
>
>
> Srinivas
Thanks for the reply .
On 11/15/05, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
>
> Sounds like an opportunity for a ValidSession filter:
>
> http://java.sun.com/blueprints/corej2eepatterns/Patterns/InterceptingFilter.html
>
> -Dennis
>
>
>
>
> Srinivas Jadcharla <[EMAIL PROTECTED]>
> 11/15/2005
Sounds like an opportunity for a ValidSession filter:
http://java.sun.com/blueprints/corej2eepatterns/Patterns/InterceptingFilter.html
-Dennis
Srinivas Jadcharla <[EMAIL PROTECTED]>
11/15/2005 10:00 AM
Please respond to
"Struts Users Mailing List"
To
user@struts.apache.org
cc
Subject
Log
Download struts-menu.jar and put it into project-path.
Then stuff will work.
Chez
Danny
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi There,
I have a problem logging out my Struts Based Web Application.Here iam
giving the code in Logout Action..
request.getSession().removeAttribute("ssn");
request.getSession().removeAttribute("pin");
request.getSession().removeAttribute("parentrole");
request.getSession().invalidate();
resp
Hi Laurie, thank you for the reply. The 404 must come from my struts action
forward. Since if I post the form directly to the external URL, not from the
action, everything is fine.
Laurie Harper <[EMAIL PROTECTED]> wrote: Ming Li wrote:
> I saw there was a similar post in this forum, but the
[EMAIL PROTECTED] wrote:
AJAX and a regular html table will accomplish this.
Or maybe the modified DisplayTag:
http://demo.appfuse.org/appfuse/demos/users-edit.jsp
Either will save the data back to the original database file?
I guess I don't know if the original question was regarding Exc
On 11/15/05, pc leung <[EMAIL PROTECTED]> wrote:
> I'd like to give it try. But in the documentation web page of shale,
> there is no installation guide. I do not know how to install it. It
> contains api only. Any installation guide or tutorial of using shale
> with myfaces?
>
> Moreover, in the s
Hi There,
I have a problem logging out my Struts Based Web Application.Here iam giving
the code in Logout Action..
request.getSession().removeAttribute("ssn");
request.getSession().removeAttribute("pin");
request.getSession().removeAttribute("parentrole");
request.getSession().invalidate();
respo
AJAX and a regular html table will accomplish this.
Or maybe the modified DisplayTag:
http://demo.appfuse.org/appfuse/demos/users-edit.jsp
-Dennis
Shiva Narayana <[EMAIL PROTECTED]>
11/15/2005 08:37 AM
Please respond to
"Struts Users Mailing List"
To
user@struts.apache.org
cc
Subject
D
On 15Nov, Dave Newton wrote:
> Mark S Petrovic wrote:
>
> >which isn't even iterating over the list items. E.g, I get one line of
> >html output for the tag, containing
> >the string literal '${feature.premium}' in quotes - as if expansion of
> >${feature.premium} is not taking place.
> >
> >
>
Have you looked at http://jakarta.apache.org/poi/hssf/index.html
poi-hssf states that excel output is accomplished using cocoon component
based web development framework
Martin-
- Original Message -
From: "Shiva Narayana" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, November 15, 2005 8:37 A
Mark S Petrovic wrote:
which isn't even iterating over the list items. E.g, I get one line of
html output for the tag, containing
the string literal '${feature.premium}' in quotes - as if expansion of
${feature.premium} is not taking place.
You're using the JSP taglib directive? You have al
On 15Nov, Mark Petrovic wrote:
> > >
> >
> > Should just be
Sorry. I failed to mention in my reply that I tried this, too, and it
made no difference in the html output.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For ad
Thank you for the reply.
1. I want to say yes, Feature is a proper JavaBean, with essentials
public class Feature {
private boolean premium;
public void setPremium(boolean b) { premium = b; }
public boolean isPremium(){ return premium; }
}
and no overloaded methods.
"features" is
Hi All,
I have an use case. I want to display the data which is coming from data
base in excelsheet format in browser. If i insert or modify the rows it
shoud save back to the database.Please send me the suggestions.
Thanks in advance
--
Regards
Shiva
I finally have a solution that works...
Problem
date_Shipped is a text field backed by a String in the ActionForm
complete is a checkbox backed by a boolean in the ActionForm
Form validation is required such that an entry in date_Shipped is required
if complete is true.
validation.xml
**
-Ursprüngliche Nachricht-
I think in your jsp
has to be
if you have told your web.xml to map all *.do requests
to struts like this
YourAppName
org.apache.struts.action.ActionServlet
config
/WEB-INF/struts-config.xml
1
YourAppName
*.do
Hope that helps
hi all,
i am using tiles in my webapp.
i am using like this at the top of my jsp
<%@ taglib uri="http://struts-menu.sf.net/tag"; prefix="menu" %>
it throws the following error:
org.apache.jasper.JasperException: JSPG0127E: Could not locate TLD
META-INF/taglib.tld
ay ideas?
This e-mail (and an
In your jsp don't have property prop1, prop2
mailto:[EMAIL PROTECTED]
Enviado el: martes, 15 de noviembre de 2005 12:15
Para: user@struts.apache.org
Asunto: Cannot find ActionMappings or ActionFormBeans collection
Hi guys,
I have searched some posts about this subject, but not a valid s
Hi guys,
I have searched some posts about this subject, but not a valid solution
was provided. I get an error and I don't know how to solve it, and I
have not found a solution searching the web. The error is the following:
javax.servlet.ServletException: Cannot find ActionMappings or
ActionFormBe
Hi Jim,
like you, I am looking for a solution to embed PHP components in my JSP
pages. Therefore I was glad to learn by your mail of the existence of this
php/Java bridge. But looking at the web site I see only the other way round:
integration of Java backend classes with the PHP frontend. Am I ri
there is an example of using hibernate and struts in myeclipseide web site.
On 11/15/05, Gaet <[EMAIL PROTECTED]> wrote:
> HI guys!
>
> I'm currently integrating Hibernate in a web application with Struts.
>
> For those, who managed this integration, I'd have just simple questions :
> What's t
if u are using ActionForms of Struts then its easy to handle ur problem,
Take a Vector as a form field which will have collection of individual rows,
when user clicks 'ADD' call an sction that will increase the size of this
vector as per requirement.
Hope this will help u.
On Tue, 15 Nov 2005
I'd like to give it try. But in the documentation web page of shale,
there is no installation guide. I do not know how to install it. It
contains api only. Any installation guide or tutorial of using shale
with myfaces?
Moreover, in the shale-framework, it has a struts-shale-usecases.war.
I put it
Hi Laurie
No joy with this I'm afraid..
Using your suggestion, 'date_Shipped' is always required no matter the state
of 'complete'.
date_Shipped is a String.
complete is a boolean.
I had expected that the status of a boolean would be either true or false -
but now I'm not sure - also, I'm not s
HI guys!
I'm currently integrating Hibernate in a web application with Struts.
For those, who managed this integration, I'd have just simple questions :
What's the difference between HibernateUtil and HibernatePlugin?
Because sometimes I read that I should use HibernatePlugin to integrat
76 matches
Mail list logo