Hi All,
I'm just wandering if anybody here has some experience with some 'grid
tags'. I've been always using DisplayTag - it's very good table tag with
paging, sorting and export features built-in.
Has anybody got some more experience with some other tags? Any
recom
e it didnt
here. What framework/jars do I need to get this to work with Tomcat 5.0.28?
Yes I should upgrade, I just want to get this work first. Any
ideas/edification appreciated.
--- On Wed, 7/9/08, Chris Pat <[EMAIL PROTECTED]> wrote:
From: Chris Pat <[EMAIL PROTECTED]>
Subject
Hello
I have defined a page level bean () and I can get at its
members, however I cant get the damn syntax right to expose the members in a
struts html:text tag. I have tried
or even
"/>. Is it possible? What is the syntax? tia.
Hello
Is/how possible to unload an action? I am using TC5.028. This is for demo
only, I will fix it in production, but need it now. Thank you for any
enlightment
Hello
Is/how it possible to process a js array into an array structure or multiple
name/values input elements with struts? Then how would the form bean be
structures? As a simple field of type arraylist? Finally what would the
action be as simple as a getter of the arraylist? tia.
Hello
Is it possible to parameterize the from an "inner tile"?
I have a template that specifies the pagewrapper,banner, menubar, left column.
I want to change the right column content with a jsp fragment and on that
fragment create a bean name="titleThis" that has the specific title of page
fr
server.xml and web.xml. Could it be an
extra library? But obviously it is in the struts library and it is being
loaded. tia
Antonio Petrelli <[EMAIL PROTECTED]> wrote: 2008/4/16, Chris Pat :
>
> I two different deployment of Tomcat with an app that work fine in 5.0.27
> but fails in 5
Hello
I two different deployment of Tomcat with an app that work fine in 5.0.27 but
fails in 5.0.28. Looking at the startup the only difference I can see this
time is that the 5.0.27 loads this:
org.apache.struts.tiles.TilesPlugin initDefinitionsFactory
and the 5.0.28 does not. Is there a way
Hello
I get the following when I run a app with TC 5.0.28+ but oddly NOT with 5.0.
Can someone help me with the understanding and proper config to fix this
Caused by: javax.xml.parsers.FactoryConfigurationError: Provider
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
Hello
I have a reset() that generates a random number. However after the first page
view the same number persists. How do I stop this caching by the server? tia.
Hello
Excuse my niavete, but I have never used a formbean for other than retrieving
string data from a form. For output I have just used simple struts and jstl
for output. Now I want to reverse it and would like to use more sophisticated
struts tags with collections in the form bean. Simple (
Hello
I am trying to embed a webapp url within an html email message within an
action. I am not quite sure how to make it work elegantly. I can force it
with using struts to generate the url and pass it as a parameter, but that just
seems wrong. Is there a better way? Also any suggestions on
manually
call the submit for testing and experimentation. Why I cant get the same call
to work from the onclick tag is beyond me. I hope you can help,
because the semantics says it should be trivial and simply work.
Dave Newton <[EMAIL PROTECTED]> wrote: From: Chris Pat
> I have
Hello
I have a simple in a set.
and it just does not fire the function. However if I make the same onclick
call in a it calls the function perfectly. Can someone explain?
It is not typos, I have copied and pasted perfectly. I am nonplused. tia.
Hello
Is there a syntax to execute javascript functions before the validateFormBea?
Is it simply a ";"?
Also is the onSubmit handler element in tag different than the
onSubmit handler in the ?
locale)?
Chris Pat wrote:
> Hello
> Is it possible to have the reset() of a formBean be internationalized? I can
> do it on the jsp. However how do I refer to the correct language message
> resource bundle in the formBean itself? tia
>
--
Alberto A. Flores
htt
Hello
Is it possible to have the reset() of a formBean be internationalized? I can
do it on the jsp. However how do I refer to the correct language message
resource bundle in the formBean itself? tia
Hi Alberto
Thank you. However, how do I refer to my placed formBean from a struts tag?
How does it know the difference from my formBean and the default formBean
created from ApplicationResources? Can I refer to it as:
"Alberto A. Flores" <[EMAIL PROTECTED]> wrote:
> I have a form with many,
Hello
I have a form with many, many fields on it. I would like to process some of
them in my Action but get all them into the session object so my forwarded jsp
can use them as the values. So may I ask:
1. How can I put the entire form bean from an action into the session scope
without extrac
Hello
In my app I write the labels with and I
have an ApplicationProperties.properties, ApplicationProperties_el.properties
with the modified \uXXXx encoding of the labels in language. I then used this
for local switching and I still get the . Am I missing something? tia.
Hi Paul
Okay thanks. However for the other use cases can you answer it. Is there
special html tag that is needed or do I get that for "free" with the
struts:form tag?
Paul Benedict <[EMAIL PROTECTED]> wrote: Redirection is the correct approach.
Hello
I understand half how to process the token, however what is needed on the html
side to prevent re-submission of a form? If I use a struts form tag is it
handled automagically? Presently, without the struts protection, I keep the
url of the action in the address bar. So on refresh it re-
deployed on tomcat5x.
Oguz Kologlu <[EMAIL PROTECTED]> wrote:
On 25/06/2007, at 10:33 PM, Chris Pat wrote:
> Hello
> How can I send the email asynchronously? My timeframe is the
> lifecycle of the action and my browser session.
Well you will probably not be doing the emailing a
at sort of volume are you looking at and what's the environment?
Oz
On 25/06/2007, at 9:35 PM, Chris Pat wrote:
> Hello
> Is it possible to send an email within an action? How/What are the
> issues? Is this scalable? How does it play with the framework and
> multiple si
Hello
Is it possible to send an email within an action? How/What are the issues? Is
this scalable? How does it play with the framework and multiple simultaneous
clients? Any insight would be appreciated.
Hello
When an object is saved to the session is it persisted anywhere or only in
memory? Even transiently, is it never persisted. Now I understand how the OS
may page the entire memory space, however that is beyond the level that the
programmer of tool can control and is monolithic. I assume
Hi Laurie
I had used Request.dispatcher before but only in servlet code; didnt
know/realize I could do it in an Action. I see the key is to make that one of
the states that will always be called and just trick Struts with the return of
the null. I assume the technology is orthogonal enough tha
Hi Felipe
Thanks, that I got. My conceptual difficulty is I dont see how to define a
global forwards for the servlet and call it in my
request.mapping.FindForward("forwardToServlet"), or maybe it is brain-fade
Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
Preserver de session?
Session is already
Hello
Is/how it possible to forward from a action to a servlet at another url and
preserve the parameters and session objects? I am doing all the processing in
the Action and just simply need to send a data stream back. I can do it with
servlets, but cant seem to do it with an action and a ser
by another poster, would probably be the
easiest way to build and submit the HTTP request.
L.
Chris Pat wrote:
> Hi Laurie
> Thanks. All I need is to send a HTTP Post request to the php script with
> the parameters that the Action received, but having done some processing in
> the A
Hi IG
That looks like the object. Thanks.
Information Guzzler <[EMAIL PROTECTED]> wrote: Hi Chris,
HttpClient would be an alternative to generate HTTP POST request. For info.
refer
http://jakarta.apache.org/commons/httpclient/
/I
On 4/17/07, Chris Pat wrote:
>
> Hello
>
Hello
Sorry for the persistence/naivete of this, however can someone tell me if this
is possible and how? It will be a learning experience for me and I appreciate
any insight.
Chris Pat <[EMAIL PROTECTED]> wrote: Hi Laurie
Thanks. All I need is to send a HTTP Post request to the php
scalable, but I just have to get it done. Thanks for even the
slightest insight, even if saying it is utterly stupid, grin.
Laurie Harper <[EMAIL PROTECTED]> wrote: Chris Pat wrote:
> Hello
> Is it possible to have an Action that processes some data and then posts to a
> url co
Hello
Is it possible to have an Action that processes some data and then posts to a
url completely out of control of the framework? I want to process and write to
a db first and then using the same parameters and any added session variables
post to a php script, initially running on localhost b
Hello
I need to talk to a server and parse the response. I will be running TC on a
specified port. I would like to use an Action to format and process the request
parameters and then forward to the full web url of the server. I believer I can
do this with a simple forward in the Struts framewor
Hello
Sorry for a second post, however I cant also fathom this. A TC5.028 project
was working fine several months ago. Went back to it and it apparently still
works however if I put in a simple queryStr=request.getQueryString(), I
impossibly get WebappClassLoader.java cannot be found. Further
Hello
Is/how it possible to clear the cache on an action? My action works perfectly,
however when the user hits reload the previous values are repeated. I have
coded a reset with ="" and still it uses the old values. What am I missing? I
will trap the null or "" values in the action(I know I
deployments I know it is
impossible, I have been reiterating that to myself by the hour, but empirically
it is true.
I event tired the latest struts 1.3.8 and eliminated any conflicts, still no
error but no display of data.
Dave Newton <[EMAIL PROTECTED]> wrote: --- Chris Pat
I am hoping someone who is working with the restful2 action mapper could tell
me if there is a way to exclude certain extensions from being mapped to
actions. Specifically, I have configured my action like so:
{0}
view.jsp
and in struts.properties I have: struts.action.extension=
With
Hello
I need to get the full string of my webapp, ie, http://localhost:8080/webapp/
so I can refer to it in other html tags. I see how I can use the bean:write
tag with the property of application. However I dont know where is a listing
of the properties that I can get out with a bean:write ta
Hi,
Is it possible to do with JSTL something like this:
(Note: size of list1 and list2 are equal)
List list1 = getList1();
List list2 = getList2();
for(int i=0; i
Hello
In a tiles-def.xml is/how it possible to have a
Without going to the complexity of a making it a tile then a controller for the
tile? It appears that value can only be a jsp.
Alternatively is it possible to create a "non-visual" jsp that will
automatically either post a value in
I also have a message resource entry in struts-config.xml file:
Pat Slater <[EMAIL PROTECTED]> wrote: I have defined Action Servlet
configuration in web.xml as:
action
org.apache.struts.action.ActionServlet
application
com.xxx.i18nMessages.MessageRes
I have defined Action Servlet configuration in web.xml as:
action
org.apache.struts.action.ActionServlet
application
com.xxx.i18nMessages.MessageResources
config
/WEB-INF/conf/struts-config.xml
debug
2
I am using org.apache.struts.validator.DynaValidatorForm to define the form
bean in struts-config.xml file.
Pat Slater <[EMAIL PROTECTED]> wrote: Used return mapping.getInputForward();
with no change in the result.
Tarek Nabil wrote: Not that it has anything to do with your proble
Used return mapping.getInputForward(); with no change in the result.
Tarek Nabil <[EMAIL PROTECTED]> wrote: Not that it has anything to do with
your problem, but why are you doing
it this way? Why don't you do
return mapping.getInputForward();
-Original Message-----
From:
When returning back to the input html form page on Exception,
mapping.getInput() returns correctly to that page but the form-fields entered
by the user are not there anymore. This is a part of my code:
public ActionForward saveMethod(ActionMapping mapping, ActionForm form,
Ht
ng
> here?
> I would appreciate any kind of help.
>
>
>
> --- Pat Slater
wrote:
>
> > I have an method in a class that extends
> > DispatchAction that throws Exception such as:
> > public ActionForward saveMethod(ActionMapping
> > map
I have an method in a class that extends DispatchAction that throws Exception
such as:
public ActionForward saveMethod(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws
Exception
{
//..
try
Hi Rick, et. al.
Of course, sorry. Now I see it. I was thinking my
form was my action. I know better, the form is
calling the action and that is what I call from the
html. Sorry for wasting bandwidth,grin.
--- Rick Reumann <[EMAIL PROTECTED]> wrote:
> Chris Pat wrote the followin
Jouravlev <[EMAIL PROTECTED]> wrote:
> Check where the HTML FORM is posted from form.jsp
> ("action"
> attribute). Send your parameters to that location
> directly, instead of
> sending them to form.jsp.
>
> Michael.
>
> On 1/26/06, Chris Pat <[EMAIL P
Do you mean
> that you want to simulate a form submission but
> without the browser?
>
>
>
> --- On Thu 01/26, Chris Pat < [EMAIL PROTECTED] >
> wrote:
> From: Chris Pat [mailto: [EMAIL PROTECTED]
> To: user@struts.apache.org
> Date: Thu, 26 Jan 2006 11:30:42
Hello
I have a mini-webapp with an action/form and view. It
works perfectly. However how can I simulate the submit
from an html page without showing the form and
requiring a manual submit from the form? I believe I
want it to behave like a servlet, but process the
parameters through the form bean
pool of these sampleRequest.
Is there a special forward that needs to be setup for
these type of helper classes to return properly? I
never would have expected that.
--- Dave Newton <[EMAIL PROTECTED]> wrote:
> Chris Pat wrote:
>
> >Okay the code is below. What I am d
=null");
q.setResult("count(this)");
Long count = (Long) q.execute();
System.out.println("from isAllowed count= " +
count);
q.close(count);
pm.close();
boolean
returnValue=(samples wrote:
> Chris Pat wrote:
>
> >Can anyone provide any i
Hello
In my Action I am creating an object and storing it in
a db. It works fine. The next line I then call a
method on the object, does some lookups printoutsa
proof that it is working and then on the return gets
this message:
java.lang.NullPointerException
org.apache.struts.action.RequestProce
Hello
What is the correct syntax in the struts-config.xml
and the syntax in the Action, to establish/retreive an
default parameter for the default application. I have
tried:
web.xml
totalSamples
3
action
String textNum =totalSamples =
servlet.getInitParameter("totalSamples");
What i
Hello
What is the best way to handle, in an Action, form
fields that are blank? If you have a simple getter
that just returns the field, how do you handle it when
the field is not in the session b/c it was not filled
in? Do I just check for fieldName==null in the getter
of the ActionForm? tia.
Hi Paul
Sorry. The more I think about there are probably
better and more secure ways to do and not to do it. I
was thinking of form with fields that "remembered" the
last n number of entries and made then available on a
combo box in the field for repeated entry. It
definitely would not be good f
speaking, how much processing can I do in an
ActionForm? Right now I just see it as a passive
conduit into the Action, maybee with validation. Are
they useful beyond that?
--- Paul Benedict <[EMAIL PROTECTED]> wrote:
> Pat, forms are stored in the sesion. If you want to
> reset it, simp
Thanks Pat & rajasekhar
I will do that.
However is there a way to stop the serialization or
force the clearing of the form fields and keep the
session otherwise instantiated? I can see the need
store/create objects in the session, possibly with a
form bean, but want my fields clear. Ju
Hello
I have an app with three fields on the form. It all
works fine and I even have the Reset method assigning
blank strings. The problem, Reset never works. I
submit the form and the form values do not clear.
This is even more unbelievable, I down TC, recompile
the war, place it in webapps,
Hello
I am using TC5.5.9,JSTL1.1,Struts1.2 With this code:
I have made sure my actionForm has the s/getter for
checkbox1, checkbox2 & strArray. Made sure the reset
is setting the booleans to false. The page comes up
without the html:multibox tag, s
Hello
If I have an "strut-i-fied" html form that also has
JavaScript event handlers, and onclick function calls,
can I be guaranteed that the js will fully execute
first before the html post in both NS & IE? It has to
right? It would be preposterous otherwise. Just
paranoid about all the adhoc c
pulated before the
findForward. What am I obscenely not recognizing
here? Many thanks for any enlightenment.
--- [EMAIL PROTECTED] wrote:
> Chris Pat <[EMAIL PROTECTED]> wrote on 10/11/2005
> 05:31:03 PM:
>
> > Hello
> > When I use the code below the Action "
OTECTED] wrote:
> 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 findforw
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 line of the "playThis action is String file
= (String) request.getAttr
Hello
Is/how possible to forward from an Action to a servlet
even indirectly? I try with a global forwards and
cant get the path right.
This is to get around the design that I have the
Action create the file and I just want to serve the
file to a browser. My servelet does it with
ServletStream
nonplused.
?xml version="1.0" encoding="UTF-8"?>
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
--- Dave Newton <[EMAIL PROTECTED]> wrote:
> Chris Pat wrote:
>
>
without a cast.
>
> Also, a style point, by convention the names of
> classes are capitalized in Java.
>
> -ed
>
> On 7/27/05, Chris Pat <[EMAIL PROTECTED]> wrote:
> > Hello
> > I have been trying for too long to get this simply
> to
> > work. Bel
Hi Dave
That is just a leftover. The retrieved form value is
from the fast of the passed in form bean.
--- Dave Newton <[EMAIL PROTECTED]> wrote:
> Chris Pat wrote:
>
> >header1Form header1Form_ = (header1Form)
> form;
> >String queryString =
>
Hello
I have been trying for too long to get this simply to
work. Below is very simple code that fails at the
first attempt to retrieve the form bean method. What
can possibly be wrong, it gives compiles, gives a NPE.
The form bean variables are ="" in the reset method.
I do know how to do it as
Ive just converted some existing functionailty to use frames (not inline
frames). Every thing seemed to be working fine while i used localhost in my
url but once i try to access the web server from
another machine or using the machine name in the url my main frame is
failing to find any objects
Ive just converted some existing functionailty to use frames (not inline
frames). Every thing seemed to be working fine while i used localhost in my
url but once i try to access the web server from another machine or using
the machine name in the url my main frame is failing to find any objects
Hi Guys,
I'm using tiles and frames together but when i try to pass a url value with
parameters struts fails during startup with the following error:
ERROR org.apache.commons.digester.Digester - Parse Fatal Error at line 109
column -1: Next character must be ";" terminating reference to entity
If your using any tag libraries in your JSP check that their in your
classpath.
-Original Message-
From: Pady Srinivasan [mailto:[EMAIL PROTECTED]
Sent: 30 March 2004 15:02
To: [EMAIL PROTECTED]
Subject: [OT] jspc from command line...
Tomcat 5.0.16...
When I try to run jspc from comma
76 matches
Mail list logo