Hi,
Any one please help in coding i have to bring CSV(comma separated values)
datas through struts.I can able to run java file successfully,but iam
getting errors in Struts.xml. Here by i pasted the java file and Struts.xml.
Please help me its urgent.
2008/1/31, ihaveareason [EMAIL PROTECTED]:
Hi,
Any one please help in coding i have to bring CSV(comma separated values)
datas through struts.I can able to run java file successfully,but iam
getting errors in Struts.xml. Here by i pasted the java file and
Struts.xml.
Please help me its
You could try:
http://sourceforge.net/projects/csv4j/
I'm sure there are many such CSV related utilities out there.
Mark
On Jan 31, 2008 9:32 AM, Antonio Petrelli [EMAIL PROTECTED] wrote:
2008/1/31, ihaveareason [EMAIL PROTECTED]:
Hi,
Any one please help in coding i have to bring
THANKS Wannemacher FOR YOUR REPLY.
My question is, I want to change the values being assigned the
startDate and endDate parameters for the tag. So for example
page using my datepicker is loaded in to browser today, than
startDate should be todays systems date, for the same in next
coming day
hi,
if i am uderstanding u right then this should solve ur problem.
action class:
Date inpDate = new Date();
jsp page:
s:datetimepicker name=inpDate ... /
so for the fist time when the page is being displayed the inpDate is set ot
the current date which will solve ur problem
hope this helps.
any help?
had any one encountered a similar situation.
i am pasting thelink straight to the problem so that u need not navigate
throught the discussion threads to locate it.
http://www.nabble.com/Type-converters%3A-convertToString-not-called-to15034925.html
any help would be great.
regards,
hi,
thanks for the reply. If the design had this behavior intended then probably
we cannot do any thing but in that case i would not agree with the
design. I read the post linked below and also the bug... but still unable to
understand the reason behind for such a design.
i think i will
Hi,
i have this code when i get a error
if( person.getNumId() == null || person.getNumId().trim().length()
9 ) {
String[] pars = {8};
this.addFieldError( field.doc , this.getText(
error.val.minlength , pars ) );
}
where field.doc it is a key with a
one more thing, then when would this method be called?? sounds like
redundant.
ravi_eze wrote:
hi,
thanks for the reply. If the design had this behavior intended then
probably we cannot do any thing but in that case i would not agree
with the design. I read the post linked below
hi,
thanks for the reply. If the design had this behavior intended then probably
we cannot do any thing but in that case i would not agree with the
design. I read the post linked below and also the bug... but still unable to
understand the reason behind for such a design.
i think i will
Good Morning
can you display or attach the following files?
your working copy of Struts2HelloWorld.java
your working copy of HelloWorld.jsp
your working copy of login.jsp
your working copy of loginsuccess.jsp
your working copy of ControlTagsIf.jsf
Thanks
M-
- Original Message -
From:
--- [EMAIL PROTECTED] wrote:
Yeah, that's what I thought too! I'm passing the parameter via:
s:url id=url action=%{actionClass}_show
s:param name=model.parentId value=id/
/s:url
and the tag s:property value=#request.model.parentId /
Is my understanding correct that Preparable and ModelDriven are 2 different ways
of doing the same thing, or are they complementary in any way?
After reading up on the website there are a few questions that spring to mind.
* ModelDriven: how do I get hold of my model during my action methods?
--- Adam Hardy [EMAIL PROTECTED] wrote:
Is my understanding correct that Preparable and ModelDriven are 2 different
ways of doing the same thing, or are they complementary in any way?
They *could* be used to do the same thing, but IMO Preparable is more
general-purpose than ModelDriven, and
Dave Newton on 31/01/08 15:29, wrote:
--- Adam Hardy [EMAIL PROTECTED] wrote:
* ModelDriven: how do I get hold of my model during my action methods? I
don't want to get getModel() again, because that will retrieve another
instance
of the entity and not the one that was populated by struts.
hi,
I have the following use case:
- User provide some input and triggers a long-running simulation process.
- execAndWait interceptor is used while the process is in progress.
- Results are displayed in a report that includes many displaytag
instances along with some charts.
Because some of
Dave Newton on 31/01/08 16:00, wrote:
Adam Hardy [EMAIL PROTECTED] wrote:
Dave Newton on 31/01/08 15:29, wrote:
Adam Hardy [EMAIL PROTECTED] wrote:
* ModelDriven: how do I get hold of my model during my action methods? I
don't want to get getModel() again, because that will retrieve another
Adam Hardy [EMAIL PROTECTED] wrote:
Dave Newton on 31/01/08 15:29, wrote:
Adam Hardy [EMAIL PROTECTED] wrote:
* ModelDriven: how do I get hold of my model during my action methods? I
don't want to get getModel() again, because that will retrieve another
instance of the entity and not the
Hi,
When I try to configure un ServletActionRedirectResult i obtain
Caused by:
java.lang.NullPointerException
at
org.apache.struts2.dispatcher.mapper.DefaultActionMapper.getUriFromActionMapping(DefaultActionMapper.java:466)
at
i use struts2 as back end for my ajax application.
I need to know that is for every request to server the action is
instantiated and destroyed after ? or what ?
Currently i wanna group some method in appropriated actions for best design
.
So doing that is just the same as my first design? no
My workaround
@Result(name=success,value=/jsp/tables/findAllTablesRedirect.jsp, type=
ServletDispatcherResult.class)
/jsp/tables/findAllTablesRedirect.jsp:
%
response.sendRedirect(/eventoos/tables/findAllTables.action?eid=+request.getParameter(eid)+etid=+request.getParameter(etid));
%
regards
I'm not sure I understand; in your annotation example you deliberately
provide a wrongly-named parameter, right? Why?
Dave
--- Luis Gervaso [EMAIL PROTECTED] wrote:
My workaround
@Result(name=success,value=/jsp/tables/findAllTablesRedirect.jsp, type=
ServletDispatcherResult.class)
--- Roberto Nunnari [EMAIL PROTECTED] wrote:
The prepare() method task is to retrive the model
and store it as an instance variable.
The getModel() method will later return the model
when asked by the framework that will put it on the
value stack.
Please correct me if I'm wrong.
Some
Thanks Dave for the reply,
If i put the name etid an exception is thrown
If i put a larger parameter whateverparametername or simply _ as
parameter name the redirect works fine, i know it's sounds weird
I thought that it the bug could come if the params attribute was a hash but
looking at the
you are right.
On Jan 31, 2008 1:12 PM, Roberto Nunnari [EMAIL PROTECTED] wrote:
The prepare() method task is to retrive the model
and store it as an instance variable.
The getModel() method will later return the model
when asked by the framework that will put it on the
value stack.
I need to know that is for every request to server the action is
instantiated and destroyed after ? or what ?
Yes the action is instantiated on every request.
Currently i wanna group some method in appropriated actions for best design
.
that's fine.
So doing that is just the same as my
The prepare() method task is to retrive the model
and store it as an instance variable.
The getModel() method will later return the model
when asked by the framework that will put it on the
value stack.
Please correct me if I'm wrong.
Best regards.
--
Robi
Adam Hardy wrote:
Dave Newton on
claym wrote:
One of the things I really liked about Spring MVC was the fact that it was
very easy to control the flow of a request. You could use referenceData() to
add data that was needed on the page but not necessarily form related, then
formBackingObject() for the actual pre-submission form
--- Luis Gervaso [EMAIL PROTECTED] wrote:
If i put the name etid an exception is thrown
If i put a larger parameter whateverparametername or simply _ as
parameter name the redirect works fine, i know it's sounds weird
Oh, I'm sorry; I read it backwards (I thought the wrong parameter didn't
Dave Newton wrote:
--- [EMAIL PROTECTED] wrote:
Yeah, that's what I thought too! I'm passing the parameter via:
s:url id=url action=%{actionClass}_show
s:param name=model.parentId value=id/
/s:url
and the tag s:property
--- Laurie Harper [EMAIL PROTECTED] wrote:
Dave Newton wrote:
--- [EMAIL PROTECTED] wrote:
Yeah, that's what I thought too! I'm passing the parameter via:
s:url id=url action=%{actionClass}_show
s:param name=model.parentId value=id/
Dave Newton wrote:
--- Roberto Nunnari [EMAIL PROTECTED] wrote:
The prepare() method task is to retrive the model
and store it as an instance variable.
The getModel() method will later return the model
when asked by the framework that will put it on the
value stack.
Please correct me if I'm
Hello coworkers,
I have a questions regarding the struts validation..., say I have three
text fields to be validated in struts validation, and three submit
buttons as well. When I submit one buttion, I only need to validate one
field, and when I click on the other submit button, I need to
Hi,
I have recently upgraded to struts 2.1.1 and if my struts filter
dispatcher url pattern is not /* instead it is /actions/*,
/struts/*.
And now if I am trying to access a jsp page that is not under that url
pattern ( something like /test.jsp), struts tags in that jsp page fail.
I get the
Hi,
i have this code when i get a error
if( person.getNumId() == null || person.getNumId().trim().length()
9 ) {
String[] pars = {8};
this.addFieldError( field.doc , this.getText(
error.val.minlength , pars ) );
}
where field.doc it is a key with a
//assuming request parameter..
#parameters['model.parentId']
http://struts.apache.org/2.x/docs/ognl-basics.html
//if you dont know the scope try
#attr['foo']
which will ref request/session/application respectively..
M-
- Original Message -
From: Dave Newton [EMAIL PROTECTED]
To: Struts
That's what I thought but why does tags need stack when I am not
accessing any of the values. It just has sx:head.
So my question is am I right in saying that struts should be able to
render struts tags as it does jstl tags without worrying abt any stack.
If stack is null, it should treat it as
--- Sanjeev Vijapurapu [EMAIL PROTECTED] wrote:
So does this mean that if my jsp is using struts tags, it has to go
through filter dispatcher?
The filter is what puts the stack into scope so the tags have data to access
(more or less).
Dave
btw #parameters['model.parentId'] will return an array, not just one
value, so #parameters['model.parentId'][0] will give you the value you
are looking for.
musachy
On Jan 31, 2008 2:07 PM, Laurie Harper [EMAIL PROTECTED] wrote:
Dave Newton wrote:
--- [EMAIL PROTECTED] wrote:
Yeah, that's
Hello all,
I am trying to understand how to present an interface where I allow a
user to edit a master/detail relationship using an Ajax technique. I am
quite new to Struts2, so please forgive the dalliance.
I have a form that presents the user the ability to edit the master of
the
Struts will by default populate parameters in your action, if you use
ModelDriven, then you can supply the object that will be populated
instead of the action. Implementing preparable will make struts call
prepare() before the action is executed, or prepareX() before X() is
executed. They are just
so #session['guide'] is not returning anything?
musachy
On Jan 31, 2008 5:16 PM, Griffith, Michael *
[EMAIL PROTECTED] wrote:
Hello all,
I am trying to understand how to present an interface where I allow a
user to edit a master/detail relationship using an Ajax technique. I am
quite new
I don't think you are strictly conveying the intended usage, when you say that
the getModel() method will 'later' return the model. It depends how your
interceptor stack is ordered. In the docs, it explicitly says the
ModelDrivenInterceptor should come before ParametersInterceptor, as often the
Nope, nothing.
If I bind my form to #guide.property I find the first or last item in
the Collection that belongs to the parent when the list was iterated
over.
Maybe there is a better way to specify how to bind the property to the
struts control? Maybe something like:
s:hidden
Hi,
Is there any way to iterate over an integer range with the s:iterate/ tag?
I have an integer property (pageCount) in my action and I want to
print all the integer values between 1 and this property in my JSP.
cheers
--
Filipe David Manana,
[EMAIL PROTECTED]
Obvious facts are like secrets
I'd like to have a pair of selects, the first one controlling the
content of the next. I understand that the s:doublselect / tag makes
this possible. I just can't make it work. I tried just copying the
example:
s:doubleselect label=doubleselect test1 name=menu
list={'fruit','other'}
--- Filipe David Manana [EMAIL PROTECTED] wrote:
Is there any way to iterate over an integer range with the s:iterate/
tag? I have an integer property (pageCount) in my action and I want to
print all the integer values between 1 and this property in my JSP.
Not that I'm aware of; easier to use
I thought I'd quickly describe my usages and opinions of Preparable and
ModelDriven in case it helps any one:
- As Dave described, I also prefer to keep my prepare logic with the
main code because it's easier for others to understand.
- I do use Preparable in the cases where
In fact, looking at the page source, it appears the expression is never
cooked...
Here's the input from the rendered page:
input type=text name=#session['guide'].shortDescription
value=#session['guide'].shortDescription
id=updateGuide_#session_'guide'__shortDescription/
-Original
As it turns out, I was accessing the session in the interceptor by
final ActionContext context = invocation.getInvocationContext
();
HttpServletRequest request = (HttpServletRequest)
context.get(HTTP_REQUEST);
HttpSession session =
Thanks ravichandrac,
Yes I know it will preset the date value to the date you set in action class,
but my question is basically to limit the Date selection from the date picker
created by datepicker tag, however which contains parametes called startDate
and endDate, so m,y requirment I just
I haven't tried it, but I would think that something like -
startDate=@[EMAIL PROTECTED]().getTime()
might work. It should be a fairly trivial exercise to use OGNL to set
the parameters dynamically.
-Wes
On Fri, 2008-02-01 at 03:52 +, Naveen Kumar M wrote:
Thanks ravichandrac,
Yes I
Hi
When i am trying user s:head theme=ajax /
At certain place in Mozilla 2.0.0.8 it displays Busy script dialog box.
If i remove the s:head theme=ajax / then it solves this problem.
But i want to use s:head theme=ajax /.
If any one know the cause of this problem and solution please tell me.
53 matches
Mail list logo