Hi,
I try to use client-side validation in struts. but I have a problem.
I have a actionform which I want to verify, in my first jsp some fields of
the form is shown say username, usersurname,email, and in some other jsp
other fields should be checked say gender. address..etc.
I could not define v
Hi,
This approach is working fine.
I have another problem. I am displaying an image thru the tag in
the JSP. Now, I want to display this image in the MS Word document that
is generated.
Any idea how this can be accomplished?
With best regards,
Anjishnu.
-Original Message-
F
Folks,
We are converting old JSP pages to Struts and JSTL and I am running into
a problem. On the old JSP pages, we have some calls to static methods
in scriptlets and runtime expressions. On the new JSP pages, we have
disabled scriptlets and runtime expressions. Here is an example:
The o
Hi,
Try this out: In the formBean, instead of an array list, try putting a String
array.
ActionForm:
private String[] listEdad = null;
public String[] getListEdad () {
return listEdad;
}
public void setListEdad (String[] listEdad) {
this.listEdad = listEdad;
}
With b
I would use a UserCredentials interface that gets passed down to the DAO. My
action would be more like:
public void execute(...) {
// marshall the input
UserCredentials userCredentials = new
PresentationLayerUserCredentials(request);
// invoke the business layer
PapersList list
Hi all,
I think this is more a design question than a struts question, but I
want to know who is the struts-way to do this.
I have a requeriment of listing some items (in my case, scientific
papers) in a html table view.
Another requirement is that users can see diferent listing of data
depend
Hi,
If you want generate RTF Word with Java, you could too use RTFTemplate see
at http://rtftemplate.sourceforge.net/index.html.
With RTFTemplate, you design your RTF model with MS Word and after you can
merge your model with context JAVA object .
Regards
Angelo
2006/2/7, Max Cooper <[EMAIL PROTE
In general, there is no way to save an HTML file as a Word doc, or at
least no way that is reasonable to ask your users to carry out manually.
So, while you can re-use the basic *design* of the page, you won't be
able to re-use the JSP itself for this purpose.
Here is a library that allows you to
Filters are common to all, just like servlets.
-Max
On Tue, 2006-02-07 at 13:06 -0800, temp temp wrote:
> Filters in web application.
> Are servlet filters similar to session ie each session will have its own
> filter or its like sevlet context ie common to all sessions .
> Thanks & Re
In that case, you can create a method like
private void initailization(HttpServlet Request){
.. initialization code
}
In you dispatchaction methods, you can check for the session variable, and not
found call this method.
-
Relax. Yahoo! Ma
I put it into session and request.
kalpesh modi <[EMAIL PROTECTED]>
02/07/2006 03:52 PM
Please respond to "Struts Users Mailing List"
To: Struts Users Mailing List
cc:
Subject:Re: DispatchAction question !
What do you do with the sectors retrieved? Do
Filters in web application.
Are servlet filters similar to session ie each session will have its own
filter or its like sevlet context ie common to all sessions .
Thanks & Regards
-
Yahoo! Mail - Helps protect you from nasty
What do you do with the sectors retrieved? Do you put it in any scope?
-
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
What changes do I make in struts-config to initialization method is
called like constructor of DispathAction .
from index.jsp I call
subsequent jsp has following lines to call another action
My struts config looks
I'm sorry to get your hopes up but the problem I had was related to IE
caching mime-types and must be different from yours. I thought it might
be related but that seems unlikely now since the change in IE settings
didn't have any effect.
Here's the link if you're curious:
http://groups.google.com
Put your initialization code in method
public ActionForward initialize(ActionMapping mapping,
ActionForm
form, HttpServletRequest request, HttpServletResponse response)
throws
Exception {
sectService = new SectorDaoService(request);
sectOwnerService = new SectorOwnerDaoService();
sectServ
How do I make sure first time DispatchAction is invoked it calls some
initialization code !
I have Business object Dao service class which I want to instantiate
before any of the action forward or any methods from myDispathAction
is called .
My current dispatchAction look like this ...
public
Thanks Leticia.I have tried to deceive the browser by appending a
parameter which has a random number this way
/GetOtherSet.do?rand='+parseInt(Math.random()*);
BUT IT DOES'NT HELP..Surprisingly when I print the elements on the
console using System.out.println in the jsp..
I had a similiar problem with IE. Here goes how I solved it:
*
*
/MyApp/getPedido.do?id=**
The first line is obviously including the bean, while the second is
what comes in my link, calling the action.
As you see I created a auxiliar parameter to make IE think that
something new is coming.
Tha
Thanks for the reply BradyI have cleared the cache and tried all the
options for "Check for newer versions of stored settings." "Every visit
to page" and "Automatically". Even then its not working. If its the Apache
setting problem then why is it working fine in Firefox. Could you pleas
Good Afternoon All
I am attempting to locate RFC2268 (RC2) java security providers for J2SDK 1.42
Suggestions???
Thanks,
Martin-
On 2/7/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> On 2/7/06, Tom Ansley <[EMAIL PROTECTED]> wrote:
> > I guess the big thing I do not understand here is why validator is being
> > called when the form has not even had time to initialize.
> >
> > In my application I rely on the action.execut
On 2/7/06, Tom Ansley <[EMAIL PROTECTED]> wrote:
> I guess the big thing I do not understand here is why validator is being
> called when the form has not even had time to initialize.
>
> In my application I rely on the action.execute() method being the first to
> be called because it allows me to
I guess the big thing I do not understand here is why validator is being
called when the form has not even had time to initialize.
In my application I rely on the action.execute() method being the first to
be called because it allows me to prepopulate the form associated with the
action. This mak
Hey Dave,
Referring to this:
> path="/jsp/camper/addCamper.do" redirect="true"/>
>
The "path" attribute strikes me as being very suspicious, but you might
just be doing something... unexpected with how your application is set up.
Why does the path look a little suspicious to you? I was thinki
The initially easiest solution is to have a init version of that action.
Note that it is a Forward Action, thus bypassing the need for a nearly
empty backing Java class.
ie:
Alternatively, MappingDispatchAction is good here too, where one Action class
can handle all cases, including the init case
Hey Hubert,
But how is anything going to ever validate correctly if I have not had time
to initially populate the form. The action which is being skipped allows me
to prepopulate the form before sending it to the user for them to add
information.
I get the feeling the workflow is something like
On 2/7/06, Tom Ansley <[EMAIL PROTECTED]> wrote:
> > > > > type="com.camp.actions.camper.addCamperAction"
> > > name="CamperForm"
> > > scope="session"
> > > validate="true"
> > > parameter="submit"
> > > input="/addCamper.jsp">
>
> So, it's looking for getFirst
Hey Nick,
Here is an excerpt of my CamperForm:
public final class CamperForm extends ValidatorForm {
private Camper camper = null;
public String getLastName() {
return camper.getLastName();
}
public String getFirstName() {
return camper.getFirstName();
}
He
Tom Ansley wrote:
> Does validator somehow alter the work flow in struts?
Only that it will return to the "input" attribute on a validation error.
> My action doesn't get completely skipped because it does attempt to load a
> jsp page, but I have no idea how it gets this jsp page and why it doesn'
I guess that the big question is:
"What about CamperForm?, what does it look like?"
If it is a Java class that you created, what does the validate()
method look like? If it is a DynaValidatiorForm (make sure that
it is not a DynaActionForm), what does the XML look like?
- Nick
On 2/7/06, Tom An
Hi all,
I am trying to validate server side. I have an action which forwards to
another action. If the original action has validate="true" then the forward
doesn't happen and the validation tries to validate a null form. If
validate="false" in the original action then everything works but no
va
This should probably be marked OT, but I'm not sure yet.
I have a custom tag for JSP form fields (consist of a with two
, one for the prompt and one for the input field). The tag will
inject error messages and do some other stuff depending on whether or
not there's errors etc.
In order to make i
I have a form in a Struts 1.2.7 app that displays a dynamic list of html:checkbox fields, all having the same property value (property=choseRole), which I present using a c:forEach tag. I wish to apply validation to this set of checkboxes, and I am currently using the Validator plugin on all for
On 2/7/06, Pilgrim, Peter <[EMAIL PROTECTED]> wrote:
> You due to teach a course in the UK, but I see it was canceled
> with James Holmes has taking over the spot.
> Are you coming over to the UK in the future anyway?
> I know you wanted to come to JAVAWUG meet up.
Yes, sadly, I developed a confli
On 2/7/06, Raghu Kanchustambham <[EMAIL PROTECTED]> wrote:
> I can start off yet another holy war on merits of "special frameworks"
> for special purposes vs. a utopian one framework for all purposes! But
> instead let me just ask a few simple question:
> What does this integration mean to a develo
I have a table. Have editors in it. and when the user doesn't enter I am
displaying the editors with different border color. hence would like to
display only one message of below above the table.
In message resources I have defined a key
lbl.errormsg=Enter all required fields.
validation.xml
Ted
Congratulations
You due to teach a course in the UK, but I see it was canceled
with James Holmes has taking over the spot.
Are you coming over to the UK in the future anyway?
I know you wanted to come to JAVAWUG meet up.
> -Original Message-
> From: Ted Husted [mailto:[EMAIL PROTECT
Hi
Great. That was what I was hoping for.
Med vennlig hilsen
Hermod Opstvedt
Webmaster
Seiling.org/Norlys.org
-Opprinnelig melding-
Fra: Gary VanMatre [mailto:[EMAIL PROTECTED]
Sendt: 7. februar 2006 15:30
Til: Struts Users Mailing List
Emne: RE: [shale] Clayforeach tag
>From: <[EMA
Hi Ted,
While ideally an announcement like this should bring across "joy",
ironically enough it brings some "concerns" to developers like me!
I am uninitiated in WebWork yet. I have just learnt a bit of struts
some 4 months ago. Just when I thought I learnt a little the "floor
(read framework)" mo
Just try putting this in the jsp
<[EMAIL PROTECTED] contentType="application/vnd.ms-word" %>
On 2/7/06, Anjishnu Bandyopadhyay <[EMAIL PROTECTED]> wrote:
>
>
> Hi all,
>
>
>
> I am generating a HTML screen through JSP. Now, I need to save/export
> the data in the JSP to a Word document.
>
> Any
Hello, Sorry by the text but I speak a little english. I have a problem with
a struts application.
I want capture data to a multiple select. I use a Arraylist into a Bean.
This is a part of my code of the actionform:
private List listEdad = new ArrayList();
public List getListEdad() {
ret
>From: <[EMAIL PROTECTED]>
>
> Hi
>
> So in the case where bodyJsfid is a html template, I could do something like
> this:
>
>
>template jsdid=/news.xml:
>
>
>
Oh, right. I forgot the other half of the story. The snippet will use the
managed-bean-name symbol. So, you should code:
templ
Hi all,
I am generating a HTML screen through JSP. Now, I need to save/export
the data in the JSP to a Word document.
Any pointers in this respect will be very much helpful.
Thanks for your time.
With best regards,
Anjishnu.
CAUTION - Disclaimer *
T
Hi
So in the case where bodyJsfid is a html template, I could do something like
this:
template jsdid=/news.xml:
and then do something like this:
bla bla
??
Hermod
-Original Message-
From: Gary VanMatre [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 07, 2006 2:30 PM
To: Struts
>From: <[EMAIL PROTECTED]>
<
> Hi
>
> I was wondering about the usage of this tag. I see it has a
> shapeValidator,but I
> was wondering what the intended syntax for this tag is, and if the current
> var
> value is somehow passed along to it?
>
The clayForEach uses the "var" attribute lik
See
* http://blogs.opensymphony.com/webwork/2006/02/webwork_221_released.html
A companion release of XWork 1.1 is also available
* http://forums.opensymphony.com/thread.jspa?threadID=16919&tstart=0
-Ted.
-
To unsubscribe, e-mail
I think it can work for the second scenario also because every time the
page is refreshed it sends a request to the server. So in the jsp we can
compare the timestamp in session/request with actual time and print it.
-Original Message-
From: Vilpesh Mistry [mailto:[EMAIL PROTECTED]
Sent
hi all,
I got a problem when I update unicode form :(
so, I have already tested my web application (Struts-ibatis-velocity-tiles) on
my PC (tomcat 5.5.12, mysql 4.1 - utf8 default, JDK 5.0), everything was okie.
I could update 1 unicode form (the form which contains unicode characters -
firstn
hi
Use boolean.
--- Joey Watson <[EMAIL PROTECTED]> wrote:
> Hello everybody.
>
> I think this is a old question. but I can not find a
> good and complete
> example in Google.
> My question is :
>
> I have a Jsp page which will list some datas for
> user. user can choose(by
> click the checkbox
Hello,
Scenario 1>
Time 2:00 pm at which request for page1 was received.
Time 2:01 pm at which request for page2 was received.
If u are talking to show the difference 1 minute(2:01
- 2:00)pm then u will as obvious will have to store
request time of page1 in session/in hidden variable
which u woul
Hi
I was wondering about the usage of this tag. I see it has a shapeValidator,but
I was wondering what the intended syntax for this tag is, and if the current
var value is somehow passed along to it?
Hermod
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
This emai
hi I am working in struts based project.
I want to calculate time of from page1 to page2.I want to display the time in
page2.Once again i refresh the page its also display the time .how to get this
-
To unsubscribe, e-mail: [E
53 matches
Mail list logo