Quoting Brice Ruth <[EMAIL PROTECTED]>:
> I don't believe sharing Tiles across WARs is possible, since the Tiles
> plug-in needs the Tiles 'context' which would be specific to the Tiles
> plug-in that is processing a particular request, if I'm not mistaken ...
> since each WAR runs its own Tile
surely in ActionB. Filling it's own form is action in itself.
you can parameterized your action to do 2 things
1. fill the formB
2. accepts the submitted formB.
HTH
Navjot Singh
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]
>Sent: Tuesday, November 11, 2003 10:5
Hi,
I have ActionA and FormA associated to screenA, similarly ActionB and FormB
associated to screenB. Upon click of a button on ScreenA, I need to
dispatch ScreenB with some values prefilled. I was wondering where should I
be writing the logic to populate the FormB for showing those values
prefil
Thanks ..it works.
-Original Message-
From: Lynn Guy [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 6:51 PM
To: Struts Users Mailing List
Subject: RE: Form submission through java script
function submit() {
document.form.action =
RE: Dynamic page contentType
Good evening...
Thanks, exactly what I needed.
Schultz.
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: November 10, 2003 7:18 AM
To: Struts Users Mailing List
Subject: Re: Dynamic page contentType
On 11/10/2003 04:48 AM Eric SCHULTZ wrote:
> Do use the method below
Java Service Wrapper is a pretty feature laden implementation...
http://wrapper.tanukisoftware.org/doc/english/index.html
-Original Message-
From: Vicky [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 3:17 PM
To: [EMAIL PROTECTED]
Subject: How to Run Java App. as an NT Service?
> I don't believe you can share tile-definitions between modules, since
> the Tiles plug-in is responsible for the Tile definitions, and that
> plug-in is loaded per-module, if I'm not mistaken. Maybe the default
> plug-in could be extended to support what you're trying to do?
If I understand this
When you use the 'href' attribute of html:link, the value you provide
has no processing of any kind done to it - with a Tiles :insert tag,
though, the Tiles plug-in has to be able to find the .jsp being referred
to - its not about generating the link. In an EAR, this would then mean
that the Ti
This is likely going to be "CR112789". Call BEA Support and describe your problem,
and mention that this patch might be related.
-Original Message-
From: Joshua White [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 1:51 PM
To: Struts Users Mailing List
Subject: Re: This code w
Richard,
Try using forward slashes in your docbase instead of '\'
docBase="E:/Projects/HelloWorld" />
Java might otherwise interpret it as an escape char.
-Richard
-Original Message-
From: Richard Morris [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 4:03 PM
To: Struts Users
Hi Adam,
The HelloWorldMessageResources.properties file is where you have stated. I
also tried your comment style in the properties file as well as removing all
comments and it didn't change anything. I have also removed the application
init-param from the web.xml file.
As for the webapp DTD ve
function submit() {
document.form.action =
http://localhost:8081/createContentAction.do?action="Continue";;
document.form.submit()
}
but note: I had to change the parameter name from
action t
Will appreciate it if you could show how to append the params and it's
value.
-Original Message-
From: Lynn Guy [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 6:44 PM
To: Struts Users Mailing List
Subject: RE: Form submission through java script
I got this message when I DID
I got this message when I DID want to change the
action. I had to change the parameter name to xaction
and it worked. So I'd be suspicious of the name
"submit" as well. Also, I had to change the action to
append the parameter and its value to get it to work
this way.
--- Yansheng Lin <[EMAIL P
I am getting the same error.
The name of the button that I want to emulate is "action" and the value
is "Continue". Where/how do I set this parameter in the Java Script so
that the LookupDispatchAction is able to get the value.
-Original Message-
From: Yansheng Lin [mailto:[EMAIL PR
Javaservice will do this for you... Check out the tomcat distribution, they
have an example.
worse is better
-Original Message-
From: Vicky [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 6:17 PM
To: [EMAIL PROTECTED]
Subject: How to Run Java App. as an NT Service?
Hello All
Hello All,
Sorry for off the topic question. Does anyone know how can i run my java application
program as an NT service? Any pointers, code examples will be appreciated.
Thanks,
Vicky
-
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
Have you tried without the "/..".
I have links to other webapps (although not using tiles) in some of my
applications and I can use the following fine:
>From webapp b:
Go to web application A
Don't see why it wouldn't work with tiles.
Pete
-Original Message-
From: Ramakrishnan Pri
If you do a System.out on action, you will find it's null right now.
You need to pass a valid action to the your dispatch Action so that it knows
which handler to call.
>document.form.action='continue';
-Original Message-
From: Shishir K. Singh [mailto:[EMAIL PROTECTED]
Sent: lundi 10 n
Initially, I was trying that. I got the same error.
-Original Message-
From: Brice Ruth [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 5:36 PM
To: Struts Users Mailing List
Subject: Re: Form submission through java script
Why are you setting the document.form.action? Just cal
Why are you setting the document.form.action? Just call
document.form.submit() - the JavaScript will automatically know what to
do and where to submit to.
Shishir K. Singh wrote:
Hi,
I have a form with one drop down menu list and two buttons (continue and
previous ). The two buttons are hooke
Hi,
I have a form with one drop down menu list and two buttons (continue and
previous ). The two buttons are hooked up to the LookupDispatchAction
where
I process the code as required by the action of the button. Everything
works fine if I use the buttons.
My requirement is that when I click
Thanks for the info... however, after upgrading to JRun 3.1 we ran into a serious JNDI
conflict error. Apparently upgrading to JRun 3.1 created a conflict with all of the
JDBC configurations we had in our 3.0 version. We tried everything we knew to try and
fix it but ultimately ended up going ba
I was doing some i18n pages and realized that locale is/will? be deprecated
soon. The spec provides an alternativ, which is the 'lang' attr, "since struts
1.2". But I am using struct 1.1 right now, so what's the best option for me?
Kind of confusing, if you ask me. Since the lastest stable rele
Hi Richard, you don't need to package it. I have never packaged a
resources file or put it in a jar seperately. According to your config,
it's in the right place, something like
e:\projects\helloworld\WEB-INF\classes\HelloWorldMessageResources.properties
right? The error must lie elsewhere.
I
Is there a patch number or other information you could provide me with?
Thanks,
Joshua
Bjørn T Johansen <[EMAIL PROTECTED]> wrote:
This is a bug in WLS 8.1 which is going to be fixed in SP 2.. Meanwhile
a patch is available from BEA...
BTJ
On Fri, 2003-11-07 at 13:37, Joshua White wrote:
> H
-OR-
Whatever your fancy is :) But, no - you can't do it as you propose, to
my knowledge.
[EMAIL PROTECTED] wrote:
Hi All
I would like to use
as the value for a tag and store it as property security.
How can i do that?
can i do this
--mohan
Hi All
I would like to use
as the value for a tag and store it as property security.
How can i do that?
can i do this
--mohan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTE
I previously had struts 1.1 running on jrun 3.1.
See this email in the archive (which refers to struts 1.0.2 but the change
works for 1.1)
http://marc.theaimsgroup.com/?l=struts-user&m=103652624602001&w=2
Let me know if you need more help.
H.
-Original Message-
From: David Liles [mai
Adam,
I do have the properties file located in the /WEB-INF/classes directory.
When I couldn't get it to work using this method, I tried putting the
properties into a package and then jar'ed it and put the jar in the
/WEB-INF/lib directory. It still couldn't find the properties file.
I am using
On Monday 10 Nov 2003 5:54 pm, [EMAIL PROTECTED] wrote:
> Hi All,
> I am doing a reset password page using struts. The user clicks on a
> forgotpassword link which takes him to a page where he enters his email
> address. We send him a http://blah.org/resetpwd.jsp?xdksdfksdfsdf URL with
> the key at
I don't believe sharing Tiles across WARs is possible, since the Tiles
plug-in needs the Tiles 'context' which would be specific to the Tiles
plug-in that is processing a particular request, if I'm not mistaken ...
since each WAR runs its own Tiles plug-in, I don't believe any Tiles
related dat
In my multiple strus enviroment I have 3 modules.
The default and for example config/reflection and config/2
My default struts-config contains the folowing global forward:
In my struts-reflection-config I have the following mapping:
This mappings maps to a Tiles page, but when starting this
Dear Bryce,
thanks for your quick answer :o)
My problem is to refer to an arbitrary form definition in one of many
possible tiles (so we have more than one form element in the resulting html
page) on client side by javascript (before submiting and validating the form
bean on server side) in order
Thank you Wendy thats about what i was thinking.
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> We send him a http://blah.org/resetpwd.jsp?xdksdfksdfsdf URL with the
>> key attached to the URL. The key expires in 24 hours. The
>> user checks on this link in his email. We need to verify i
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> We send him a http://blah.org/resetpwd.jsp?xdksdfksdfsdf URL with
> the key attached to the URL. The key expires in 24 hours. The
> user checks on this link in his email. We need to verify if the key is
> still valid and then allow him to cha
I'm using modules in my new application [official Struts 1.1release]
to segregate pieces of it, and I'm having issues with
DefinitionDispatcherAction. Enabling debug messages, I can see that it is
successfully retrieving my definition--this is the last log message that I
see
[11/10/03
Howdy all!
I'm new to the list. I've searched the archives and the web and exhausted
all my other resources, so I thought I'd post something to the list and see
if anyone had ever run across this issue before. So, thanks in advance for
reading my post.
I've been using Struts now for about 9 mon
Hi...
I'm having difficulty using struts across WAR files within a single EAR. I
have a template defined in a.war and am trying to reference the template in
b.war - here's how I am doing it and it doesn't work. Assume a is the
context for a.war and b for b.war.
I get the following error -
Hi Adam,
Thank you for replying to my message. There are two parts stories on this
problem.
The first part which is without the on the logon page.
There were errors
The form name attribute is set to the name of the ActionForm that your
Action takes as its input. This is done automagically, without
specifying a name="" attribute in the html:form tag itself. This is to
support javascript validation, I believe.
Gleichmann, Mario wrote:
Dear Struts-Community,
Hi All,
I am doing a reset password page using struts. The user clicks on a
forgotpassword link which takes him to a page where he enters his email
address. We send him a http://blah.org/resetpwd.jsp?xdksdfksdfsdf URL with
the key attached to the URL. The key expires in 24 hours. The user checks
on
Dear Struts-Community,
assumed we use a composite-view, which is composed by multiple 'tiles'
delivered by several Design-Team members.
Every of this tile is free to define it's own form-areas ()
and appropriate action(s).
Furthermore we have a 'Menu-Tile' which Buttons/Links refers to certain
ti
The answer is yes, but not in the way you are thinking.
You cannot send a stream of HTML and image data together and expect the
browser to display it. You can send a stream of HTML data with references to
image data ( tags) and the browser will make a separate request for
each of the images.
So,
>
> Using Tomcat 4.1.27 (and JVM 1.4.2_02-b03 on Win2k) when I Remove my
Struts
> application in the Manager the /myApp/WEB-INF/lib/struts.jar file doesn't
> get deleted. The original WAR file is deleted and the expanded directory
> contents are deleted, except the struts.jar file.
>
> If I try to
search the user archive..This has been answered many times before..
The solution is use lazyList implementation by struts or Dynamic arryList as
implemented in my Solution..(See in the list archive)..I think that is what u have
also said u tried..And it works..I have also answered thsi question
Hello Everybody...
I have got this generic question... I wan't to use the onLoad event of the javascript
function to pre-populate values.For certain reasons, I cannot use the onLoad in the
body tag... Hence, I am using the onLoad in an img tag (just created a spacer image
specfically for this!
Hi David,
getServlet() followed by two more commands:
getServlet().getServletContext().getAttribute(String);
OR
getServlet().getServletContext().setAttribute(String, obj);
Regards,
this was a great help for me thank you.
Hope my name is shown correctly now...
--
Dear Looser,
Inside the execute, you can set/get application
scope properties using the Action class methods
getServlet() followed by two more commands:
getServlet().getServletContext().getAttribute(String);
OR
getServlet().getServletContext().setAttribute(String, obj);
Regards,
David
-Ori
I'm having trouble populating a Form bean that has an indexed (variable
size) nested bean. I'm using an ArrayList inside the Form bean to collect
the nested properties and it's partially working. The problem is that
because the index is variable, I don't know how to correctly size the
ArrayList.
--- Ben Anderson <[EMAIL PROTECTED]> wrote:
> Shishir,
>
> you cannot nest tags within tags.
Just to be clear, you can nest tags but you cannot use a tag as the value
of another tag's attribute.
David
> You probably want to use
>
> http://jakarta.apache.org/struts/faqs/struts-el.html
>
> -Be
Shishir,
you cannot nest tags within tags.
You probably want to use
http://jakarta.apache.org/struts/faqs/struts-el.html
-Ben
From: "Shishir K. Singh" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Html:
Hi,
I am reposting this question.
How can I use runtime variable with the property attribute of html:image
tag.
Eg,
My intent is :
However, the value for property is not substituted. I get the property
as "".x and y instead of the value of .
Am I missing something here ?
Hello everybody, is there a way to use struts Image or Img tags to
display thumbnails ( pictures - gif or tiff or jpeg ) on a page from a
Stream and not from file. The idea is to pick the picts up directly from
a database and display them together with text on the same page?
Thanks, Todor
-
Hi,
is there any chance to access objects in application scope in my action
classes ?
I have to override the .execute(ActionMapping mapping,ActionForm
form,HttpServletRequest request,HttpServletResponse response) method but
none of these parameters give me access to application scope like
'ge
Hi All,
We are using Struts as a framework of choice and most of the applications
are using Struts framework. One thing that we have noticed is that
mapping.forward takes a very long time to navigate a person from one screen
to another. Has anybody experienced this problem? Any solutions /
workaro
Hi All,
We are using Struts as a framework of choice and most of the applications
are using Struts framework. One thing that we have noticed is that
mapping.forward takes a very long time to navigate a person from one screen
to another. Has anybody experienced this problem? Any solutions /
workaro
I am getting the following error using Tomcat 5.0.12 and struts 1.1:
StandardWrapperValve[action]: Servlet.service() for servlet action threw
exceptionjava.lang.NoClassDefFoundError: org/apache/tomcat/util/net/URL
at
org.apache.coyote.tomcat5.CoyoteResponse.isEncodeable(CoyoteResponse.java:1328)
Since JUnit on Action is hot off the presses, this time we'll be
offering the winner the choice of a signed copy of SIA *OR* JUnit in
Action.
(Just my signature in both cases, I'm afraid, logistics prevent
circulating these to my many co-authors.)
But, first, last time we offered up a "holiday
http://www.manning.com/ebook_buy.html?project=massol
Manning has lots of good books, I always pay the $20.00 and download the
pdf.
- Original Message -
From: "Brice Ruth" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, November 10, 2003 5:59 AM
Subj
The amazon.com developers need to read this book and find a port for the language
they use. Two days ago the listing for this book said "ships in 2-3 months". :)
--- Brice Ruth <[EMAIL PROTECTED]> wrote:
> Sweet! Just what I was lookin' for ... :) JUnit rocks, we mere mortals
> simply need some
Sweet! Just what I was lookin' for ... :) JUnit rocks, we mere mortals
simply need some guidance on some "better practices" with regards to
testing!
Ted Husted wrote:
A new book offering, JUnit in Action, by Jakarta regulars Vincent
Massol and Ted Husted, is now available for purchase.
Develo
I don't believe you can share tile-definitions between modules, since
the Tiles plug-in is responsible for the Tile definitions, and that
plug-in is loaded per-module, if I'm not mistaken. Maybe the default
plug-in could be extended to support what you're trying to do?
Parthasarathy Kesavaraj w
A new book offering, JUnit in Action, by Jakarta regulars Vincent Massol
and Ted Husted, is now available for purchase.
Developers in the know are switching to a new testing strategy - unit
testing - which interleaves coding and testing in an integrated way.
This has proven to be a powerful com
Hi,
I'm having some (newbie) problems with my Struts-based webapp running on Tomcat 4.1.x
Something is going wrong when I try to access the first jsp page that has a form. One
thing I have tried to add recently to my webapp's functionality is a (I
had been using straight JDBC), so I'm wonderi
Hi all:
How I can make a sendRedirect whitin an action in struts.
in action class I have to return ActionForward but I want to make sendRedirect to lose
the request instance.
thanks in advance
Mohamed
"Nail, Evan Burke" <[EMAIL PROTECTED]> wrote:
Also, You have to make sure that nothi
The better approach would be to set the proper mime type in the action itself...So
that u dont put any restrictions on jsps then...And any how, if you are writing the
pdf to output stream, why you still want to forward to a jsp? Why not return a null
forward in that case?
-Original Message-
The document is really closer to a cookbook. Hibernate has a very good
example of a "best practices" document.
http://www.hibernate.org/hib_docs/reference/html/best-practices.html
-Ted.
Puneet Agarwal wrote:
Hi Adam,
Yup, it was originally a pdf file and I converted it to HTML, have fixed it
no
Also, You have to make sure that nothing is written out to the stream before you set
your content type.
Also I did this just playing around a while back, I noticed that we had to move our
jsp imports to the bottom of the file. Having them at the top caused errors in the
output. I'm guessing
Are you setting the mime type properly on the response object?
-Original Message-
From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 1:55 PM
To: Struts Users Mailing List
Cc: WebSphere User Group Tech Q & A Forum
Subject: PDF File Display in JSP-Struts
Hi
This is the standard way to do what you want... in web-xml only, using
J2EE for container (such as tomcat JDBC realms) for security, a best
practice.
Once you know this part of JAAS, then you can extend, to put more things
about the user in session, and track that in you actions.
Hi All,
I want to display one PDF file in my websphere struts framework. when i do
it without struts (only servlets ) it works but when i use JSP along with
struts it does not work. it does not read binary data properly... Is there
any body to help me out
regards & thankx in advace...
Abhij
> -Original Message-
> From: Nimish Chourey , Tidel Park - Chennai
> [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 10, 2003 6:21 AM
> To: Struts
Yes .. It makes sense ..
Can u post the action mapping in the struts config .. That may give some
clue
-Original Message-
From: Marc Dugger [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 5:33 PM
To: Struts Users Mailing List
Subject: RE: ValidatorForm losing params when valid
On 11/10/2003 04:48 AM Eric SCHULTZ wrote:
Do use the method below in my Action object? And then use different
Forwards depending on whether the result is to be in HTML or XML? Or do I
check in the JSP what my content-type is set to and output the correct
output?
Hi Eric,
yes, exactly. I would
Hi Adam,
Yup, it was originally a pdf file and I converted it to HTML, have fixed it
now.
We took those as best practices from user's mailing list and within TCS
Delhi,
however if the people don't accept those as best practices, I shall be ready
to amend this.
I am planning to update this paper w
My mapping specifies 'validate="false"' because I have a method in the
DispatchAction, called refresh(mapping, form, request, response) which
adjusts the size of indexed properties in the Form and returns the user to
the same page. I do not want the form to be validated when refresh(mapping,
form,
Sorry, wrong mailing list I guess. :\
But what I would like to know is: If I do forward to a specific page in
a servlet filter, what would the code look like?
RequestDispatcher rd = context.getRequestDispatcher("/kvnet/login.jsp");
rd.forward(request, response);
Or should I use "/kvent/Login.do"
On 11/10/2003 04:48 AM Richard Morris wrote:
org.apache.jasper.JasperException:
Cannot find message resources under key org.apache.struts.action.MESSAGE
Here is the struts-config.xml file:
-
Here is the web.xml file:
he
U write output response as a ServletOutputStream and return null,
this will make not to forward to any JSP page.
-yoga
-Original Message-
From: Nimish Chourey , Tidel Park - Chennai
[mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 4:57 PM
To: Struts Users Mailing List
Subject: RE
Return an ActionForward instance describing where and how control should be
forwarded, or null if the response has already been completed.
A quick glance at the javadocs will show that you need only to return null
from your action instead of an ActionForward.
-Original Message-
From: Ch
What I do is returning 'null' after setting the MIME type and printing
in the response output stream. Works quite well...
Thomas
At 12:22 10/11/2003, you wrote:
Hello,
I want to generate on the fly data which I want to print into the response
stream. This is not the problem: The
Put the data in form of bean into request/session scope and then forward to
a JSP (view Page) .. Which then takes the bean from the request/session
scope to render the data ...
-Original Message-
From: Christian Burger [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 4:53 PM
To
Hello,
I want to generate on the fly data which I want to print into the response
stream. This is not the problem: The poblem is that any Struts Action
shall return with an ActionForward instance.
Yes, I could generate a temporary file in which I would print. I could
furthermore create an ActionFo
Hi,
I want to implement a servlet filter to redirect users to login when
there is no valid session. Now I have a simple Struts application with a
welcome and a login page. As soon as I add the filter my 'application'
stops working. How do I implement a servlet filter in a correct way to
achieve wh
I want to have a common basetileDefinition.xml as base and i want to have
seperate tileDefinition.xml for each of my module.The tileDefinition.xml in
each module should extend a definition in basetileDefinition.xml.Is it
possible?
is my idea of using seperate tileDefinition.xml for each module is c
86 matches
Mail list logo