Thanks for the suggestion. What I did was made a simple_ajax theme where I
excluded the additional HTML wrapping. I'll just continue to edit this theme
to meet my needs as I go along.
If anyone had other approaches I'm curious to see what they've done.
Thanks again for the help Jason!
jjoz w
Hi,
For properly handling true/false radio buttons and checkboxes, we've to
define the domain objectsas Boolean, and to prevent numerics being populated
with 0 (if nothing is entered), the domain object must be Integer. Is there
any performance overhead by having to define it this way? --- For the
--- "Mehmood, Qaiser" <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> Request Information
>
>
>
>
Also missing closing span tag.
>
>
>
>
>
> Historical Usage Information
>
>
>
>
Also missing closing
Wow.
Here's a couple of tips:
- Isolate your error.
- USE CSS.
How can you even stand looking at this?
--- "Mehmood, Qaiser" <[EMAIL PROTECTED]> wrote:
> name="permitName" Type" class="dataContent2"
> size="30" maxLength="30" optional="true">
That line is pretty hosed up -- try fixi
On 9/11/07, j alex <[EMAIL PROTECTED]> wrote:
> I can do Map attibutes = ActionContext.getContext().getSession(); from an
> Action - right?
>
Wow, I guess you can. I've never ever needed to access the
ActionContext from an Action, so I never even noticed it was possible.
Pretty sure I'll stick wi
On 9/11/07, Tapio Holopainen <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Have you tried to put delay="0"?
That's it! Thanks Tapio!
>
> >
> > >href="%{content}"
> >updateFreq="2000"
> >delay="2000"
> >showLoadingText="false"
> >err
JSP Code is:
<%@ page language="java" %>
<%@ page import = "java.text.SimpleDateFormat,
java.util.Date,
java.util.Locale,com.ercot.retail.mimo.form.MimoRequestForm,
com.ercot.logic.transaction.TransactionBL" %>
<%@ taglib uri="/tags/struts-
On 9/11/07, aarthy <[EMAIL PROTECTED]> wrote:
>
> I am stuckup in this issue for a week.Please somebody help me on this please.
>
>
> Frank W. Zammetti wrote:
> >
> > Something is wrong in your JSP... looks like that stack trace was cut off,
> > but your beyond the AJAX parts at this point, you nee
Patch submitted for bug https://issues.apache.org/struts/browse/WW-2170.
Thanks for confirming the bug Don.
aaron
-Original Message-
From: Don Brown [mailto:[EMAIL PROTECTED]
Sent: Monday, September 10, 2007 10:51 PM
To: Struts Users Mailing List
Subject: Re: ObjectFactory.buildResult n
--- "Mehmood, Qaiser" wrote:
> I am using struts in one of my application and
> trying to use struts tag libraries(struts-html,
> struts-bean etc) and getting following error:
>
> Generated servlet error:
>
C:\workspace\retail\work\org\apache\jsp\mimo\request\create\CreateMoveIn
> _jsp.java:337:
--- aarthy wrote:
> I am stuckup in this issue for a week.Please
> somebody help me on this please.
<%
int i = 0;
ArrayList ch = (ArrayList)
request.getSession().getAttribute("characters");
String[] s = new String[ch.size()];
ch.toArray(s);
for (Iterator it = s.length; it.hasNext(); ) {
Session A Mwamufiya wrote:
I'm following the filedownload example from the showcase, but would
like to be able to set the content disposition filename in my code,
rather than have it hardcoded in the struts.xml file.
Just like any other result parameter, it can be set using OGNL
(unfortunately
Hi,
I am using struts in one of my application and trying to use struts tag
libraries(struts-html,struts-bean etc) and getting following error:
Generated servlet error:
C:\workspace\retail\work\org\apache\jsp\mimo\request\create\CreateMoveIn
_jsp.java:337:
_jspx_meth_html_hidden_1(javax.ser
You could, but I would recommend using the *Aware interfaces in your
actions. It makes them easier to test.
Nils-H
On 9/11/07, j alex <[EMAIL PROTECTED]> wrote:
> I can do Map attibutes = ActionContext.getContext().getSession(); from an
> Action - right?
>
> On 9/11/07, Chris Pratt <[EMAIL PROTEC
I am stuckup in this issue for a week.Please help me with someone on this
please.
Frank W. Zammetti wrote:
>
> Something is wrong in your JSP... looks like that stack trace was cut off,
> but your beyond the AJAX parts at this point, you need to find the error
> in your JSP.
>
> --
> Frank W.
Hi,
I'm following the filedownload example from the showcase, but would like to be
able to set the content disposition filename in my code, rather than have it
hardcoded in the struts.xml file.
I have tried the following:
My struts.xml:
/pages/smigimportexport/SMIGExport.js
I can do Map attibutes = ActionContext.getContext().getSession(); from an
Action - right?
On 9/11/07, Chris Pratt <[EMAIL PROTECTED]> wrote:
>
> Basically, for Actions you should use SessionAware (since you don't
> have access to the ActionContext from within a standard Action). But
> if you are
Basically, for Actions you should use SessionAware (since you don't
have access to the ActionContext from within a standard Action). But
if you are writing an Interceptor, you would use ActionContext to get
access to the Session data.
(*Chris*)
On 9/11/07, j alex <[EMAIL PROTECTED]> wrote:
> Hi
Hi,
In the Struts 2 docs, it's recommended to implement SessionAware for
accessing session within Action, but looking at some Webwork documentation,
http://wiki.opensymphony.com/display/WW1/SessionAware+Actions - it seems to
convey the opposite message .
Please clarify :
1. Why accessing via Ac
It is enough to develop a LogoutAction implementing
ServletRequestAware, and calling request.getSession().invalidate() in
its execute().
Alvaro.
On 9/11/07, Gabriel Belingueres <[EMAIL PROTECTED]> wrote:
> Personally, I use the good old
>
> <% session.invalidate(); %>
>
> as the last instruction
The fieldexpression validator would handle most dependent checks, but i
think there's no out-of-the-box solution if we want the expression to act as
a guard condition alone and not as a validation. Please check the archives
for comments on this.
-Joseph
On 9/11/07, Jiang, Jane (NIH/NCI) [C] <[E
The only thing "wrong" with it is that now you are putting application control
logic in a jsp page, which is 'OK' for small apps, and is probably 'OK' in this
particular instance if there are no complicating factors. However, for
purists, it IS putting control logic in a jsp page, which purists
i want to asynchronously update the content of a panel, say div, in my
application.
the panel should display "info" (default), "help" or "filter" information.
there are to links/buttons to toggle the content. if the "help" link has
been clicked the help content should be displayed and analo
Hi. I need help.
When I use the attribute disable="true" in tag the
component not disabled. Why ? and How can I display checkbox tag, checked ?
Thanks very much.
--
View this message in context:
http://www.nabble.com/sdatetimepicker-and-checkbox-tf4424816.html#a12622053
Sent from the Struts -
Personally, I use the good old
<% session.invalidate(); %>
as the last instruction of my logout.jsp page.
AFAIK, to invalidate the session inside an action, you must downcast
the session Map (from the SessionAware interface) to a SessionMap
class, which seems little awkward to me.
Besides, usin
Did you look into expression validator?
-Original Message-
From: Pablo Vázquez Blázquez [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 11, 2007 10:28 AM
To: Struts Users Mailing List
Subject: [S2] validation issue
Hi all!
I´m trying to validate two fields that depends on another f
Something is wrong in your JSP... looks like that stack trace was cut off,
but your beyond the AJAX parts at this point, you need to find the error
in your JSP.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL P
I'm using 2.0.8. I will try 2.0.9 right now.
Alvaro.
On 9/11/07, Marco Carnevale <[EMAIL PROTECTED]> wrote:
> Back to your original issue. The loading of the default tab twice seems to
> have been resolved in 2.0.8 and/or 2.0.9. I used to have the same problem
> using 2.0.6 until I upgraded.
>
Frank,
I tried forwarding it to a jsp page ShowCharacters.jsp
<%int i = 0;
ArrayList ch = (ArrayList)
request.getSession().getAttribute("characters");
String[] s = new String[ch.size()];
ch.toArray(s);
for (Iterator it = s.len
Hey,
How to invalidate a Http Sesssion in struts 2.0? There is a SessionMap
class which asks for a httpservletrequest as a parameter, and has an
invalidate method for the http session, not sure how this works.
thanks in advance for your assistance
--
View this message in context:
http://www
Back to your original issue. The loading of the default tab twice seems to
have been resolved in 2.0.8 and/or 2.0.9. I used to have the same problem
using 2.0.6 until I upgraded.
Marco
On 9/10/07, Alvaro Sanchez-Mariscal <[EMAIL PROTECTED]>
wrote:
>
> Any help on this?
>
> In a page with 6 tab
With .jsp files, I can do:
<%@ page contentType="application/xhtml+xml;charset=ISO-8859-1" %>
With .jspx files, I can do:
What is the equivalent with FreeMarker (.FTL) templates?
Or for the ultimate, could I set a global MIME type for all freemarker/jsp
files of "application/xhtml+xml" for brow
I identified the issue and this isn't related to NULL references. To
summarize:
This syntax will work with a getter method OR directly with the raw member
variable if the getter method isn't present: <@s.property
value="myActionProperty.subProperty" />
This syntax requires a getter method and wo
Simply forward to a JSP and render your output there, same as any Struts
Action. It can be XML, JSON, HTML, some custom format, whatever. I wish
I had written that article showing that in the first place since this is a
question that gets asked all the time, but I thought this was simpler (one
le
In Struts2 there are no forms...
Yes, no forms.
I think there is an interceptor interface called ValidationAware and
there it can be the cue, but I´m not sure and I suppose there should
be another easier way of doing what I want...
Jorge Martín Cuervo escribió:
sorry, i have no experience wit
sorry, i have no experience with struts2.
I only use classic struts:
http://struts.apache.org/1.3.8/faqs/validator.html
Maybe you can create your own validwhen validator rule in struts2. I
integrated commons validator in my own project and i reused some struts
validwhen code.
Validwhen uses an
Hi,
In the below code,how can I avoid the HTML coding in the action
class?(http://www.omnytex.com/articles/xhrstruts/xhrstruts.zip)
I tried many different codings,but everything failed.
public class Example3GetCharactersAction extends Action {
public ActionForward execute(ActionMapping mappi
I tried success to null,but after I select some value in the combo box,I am
not getting any response for the other combo box.Kindly advise
ANIMESH SAXENA wrote:
>
> Hi,
>I also faced the same problem for a simple AJAX Call.
>
> In case of Ajax request you should return null from your Actio
Hola Jorge,
I think there is not a "validwhen" validator, either...
Any idea? Thanks.
Jorge Martín Cuervo escribió:
try validwhen validation rule. It exists in struts, maybe exists too in
struts2.
El mar, 11-09-2007 a las 16:27 +0200, Pablo Vázquez Blázquez escribió:
Hi all!
I´m trying t
Some days ago I posted a message for a problem on the DoubleSelect but I
received no answers. I retry again hoping to be more lucky.
Here is the link to the original message:
http://www.nabble.com/-S2--Doubleselect-inconsistent-if-using-%27back%27-button-tf4317705.html#a12294147
Doubleselect incon
try validwhen validation rule. It exists in struts, maybe exists too in
struts2.
El mar, 11-09-2007 a las 16:27 +0200, Pablo Vázquez Blázquez escribió:
> Hi all!
>
> I´m trying to validate two fields that depends on another field.
>
> What I was doing in S1 is (for field "in"):
>
>
> key="
From: pavan reddy <[EMAIL PROTECTED]>
> when i use it normally it works , bean has no values
> arises only when i pass in the value to another tags
> attribute.
>
> attribute="''"
Then my original comment still stands: you cannot nest JSP tags (although
Antonio is correct that you have an unn
Hi all!
I´m trying to validate two fields that depends on another field.
What I was doing in S1 is (for field "in"):
key="ErrorMessages.applicationIdRepresent.sameReference"/>
field[0]
editParams
fieldTest[0]
NOTNULL
But now in S2, there is no "r
Is possible to pass parameter in a Validation Annotation:
.
.
.
@RequiredStringValidator(type = ValidatorType.SIMPLE, fieldName =
"user.email", message="", key="field.required.msg"),
.
.
.
I want to pass one parameter to the key field.required.msg, but the
annot
when i use it normally it works , bean has no values arises only when i pass
in the value to another tags attribute.
attribute="''"
Thanks,
P
- Original Message
From: Dave Newton <[EMAIL PROTECTED]>
To: Struts Users Mailing List
Sent: Tuesday, 11 September, 2007 10:01:30 AM
Subjec
From: pavan reddy <[EMAIL PROTECTED]>
>well i tried it either ways it says bean has no value
Does the bean have a value? Have you put it in to scope? Have you checked to
see if the bean has a value in your action?
d.
-
To u
Isn't the issue nesting tags? Unfortunately I was not
able to see the entire example from the original post,
but if you put a inside another JSP
tag it's going to break because you can't nest tags
like that.
I wouldn't think the extra quotes would stop the tag
from executing.
d.
--- Antonio Pet
well i tried it either ways it says bean has no value
P
- Original Message
From: Antonio Petrelli <[EMAIL PROTECTED]>
To: Struts Users Mailing List
Sent: Tuesday, 11 September, 2007 9:49:29 AM
Subject: Re: how do we pass in bean property to html attribute
2007/9/11, pavan reddy <[EMA
Thank you Musachy! That's why.
But I did not see where I can download struts2.1?
http://struts.apache.org/download.cgi
From this page, I see the highest version is 2.0.9.
Can you tell me where I can download 2.1 version please?
Thanks a lot!
Musachy Barroso wrote:
There is no "var" attrib
2007/9/11, pavan reddy <[EMAIL PROTECTED]>:
>
> an html attribute should be passed in quotes, removing doesnt really help
In your example there are both single and double quotes: the double ones
interfere with the ones that you use in tag.
HTML attributes can have either single or double quotes
an html attribute should be passed in quotes, removing doesnt really help
Thanks,
P
- Original Message
From: Antonio Petrelli <[EMAIL PROTECTED]>
To: Struts Users Mailing List
Sent: Tuesday, 11 September, 2007 9:35:48 AM
Subject: Re: how do we pass in bean property to html attribute
2007/9/11, pavan reddy <[EMAIL PROTECTED]>:
>
> attribute=" '' "
>
> this isn't really working for me ! am i missing something ?
You have too many quotes :-)
Try to remove some:
attribute= ''
Antonio
Hi all,
I'm using the autocompleter tag. In order to display all matching
options,I'm using setting the resultsLimit attribute
to -1 like below
But when the tag renders, nothing is shown and the input select disabled.
When I set the resultsLimit value to a high value, the select input is
dis
Yes, you're right. The submit will execute an action whose result will
apear in the div you specified in the target attribute.
Be sure your submit has theme="ajax".
Alvaro.
On 9/11/07, Maria Lujan Salvadori <[EMAIL PROTECTED]> wrote:
> Hi, I'm starting with ajax and I want to reload a div after
Hi, I'm starting with ajax and I want to reload a div after pressing a
button. I use the s:submit and in the targets set the id of the div to be
refresh. I would like just to refresh the content of this div, is necessary
to "draw" the content of the div in a separate jsp and the result of the
submi
Hi
I don't think it exists taglib which generate the widget that you want.
I answer you to use Javascript framework like DOJO or Scriptaculous to
manage Drag/Drop.
JSControlsTags is based on Scriptaculous.
Into Scriptaculous you have Sortable widget (wich is used too into
JSControlsTags) and
it ca
Hi,
I have a requiremenet where i have to create draggable components in my
JSP . Rather, draggable rectangle which can fit into a piece just like
jigsaw puzzle and then I have to submit the page conveying the position of
each draggable component.
I have seen JS Controls Tags taglib but could on
John, what version of Struts?
On 9/10/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> Possibly because there's no "input" attribute, so it's
> bombing since it doesn't know what the input forward
> for the form is?
>
> d.
>
> --- john lee <[EMAIL PROTECTED]> wrote:
>
> > i have an DynaValidatorForm
If you configure your web applications so that the context is shared
then you will be able to get resources from the other web applications.
See for more details the documentation for the web application context
configuration (context.xml).
As Struts uses standard RequestDispatcher, then you shou
can't you use a redirect? i think you can't forward outside the same
context (but i'm not sure, maybe some servlet containers can do it).
El lun, 10-09-2007 a las 17:45 -0700, [EMAIL PROTECTED]
escribió:
> Hi,
>
> The present application structure has multiple .war files in a .ear file.
> Now my
Hi,
Have you tried to put delay="0"?
- Tapio
On Tue, 11 Sep 2007 00:58:05 +0300, Dinwiddie, George
<[EMAIL PROTECTED]> wrote:
Hi, Kevin,
Try adding a timestamp parameter to the URL. It might be a caching
problem in the browser.
- George
George Dinwiddie, iDIA Computing, LLC
http://
Hi Grish,
We faced the similar problem... we wanted to use ajax tabbedPanels, which
needed ajax-themed struts2 submit buttons. The submit buttons were producing
additional html wrapping for the 2 columns.
We just extracted the submit.ftl template code into a web\template\ajax
directory and remove
62 matches
Mail list logo