Hi all ,
sorry , this is not related to struts but this is an urgent
requirement for me can any one pls send the code to convert the Html files
to Pdf
file. pls
thanks
Jalaludeen
Look here: http://www.javaworld.com/javaworld/jw-04-2006/jw-0410-html.html
jalal udeen pravi:
Hi all ,
sorry , this is not related to struts but this is an urgent
requirement for me can any one pls send the code to convert the Html
files
to Pdf
file. pls
thanks
Jalaludeen
2007/6/14, Peter Valencic <[EMAIL PROTECTED]>:
Look here:
http://www.javaworld.com/javaworld/jw-04-2006/jw-0410-html.html
You googled "html to pdf java" right? :-)
Jalal, learn using Google, take Peter as example :-)
Antonio
yes.. sometimes (90%) google give you the right answer ;)
Antonio Petrelli pravi:
2007/6/14, Peter Valencic <[EMAIL PROTECTED]>:
Look here:
http://www.javaworld.com/javaworld/jw-04-2006/jw-0410-html.html
You googled "html to pdf java" right? :-)
Jalal, learn using Google, take Pe
Thanks, Laurie.
Your OGNL expression does work!
In fact, I have been trying in many ways. Here is the most similar
expression as yours which seems to be right at all:
But it does not work! I quite not understan
Hey Musachy,
Thanks a lot for the replying :) Finally I've found a solution through
Apache + Tomcat way (rewrite rules).
Cheers!
On 6/1/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:
The url has an 'includeContext' param:
http://struts.apache.org/2.x/docs/url.html
As for the form, if it fi
- Original Message -
From: "goodprogram" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, June 13, 2007 9:37 PM
Subject: avoiding resetting of values
>
> Hi
>
> I have 7 textbox fields, when i enter the values for all those and submit
> the form, the clientside and server side validations are
hello all
i do what mentioned below
but it fails in initialization, and whent i comment
<%@ taglib prefix="tt" uri="/tabletags"%>
it run correctly ,
any suggestion.
Bye.
Mansour <[EMAIL PROTECTED]> wrote: I think you are asking about the taglib
difinition so that you can use
tabletags.
If thi
Hi all,
Can anyone please point me please in the S2 example applications to
an implementation of the Page-by-Page Iterator pattern? any ideas
otherwise whether there is a reusable interceptor/plugin/etc?
TIA,
regards,
Giovanni
Hi all,
Does any one has list of security issues we have to take while using
struts framework.
Regards,
Prabhakar
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Good Day,
I have been trying to use the datetimepicker in 2.0.6 and 2.0.8 to display a
field that should display the date and the time. I have tried to do this
with the datetimepicker as one field and as two fields (i.e. date field and
time field) with no luck. In 2.0.8 I cannot even get the pick
My question is if the datetimepicker is only going to be ready in 2.1 then
how should I implement this in my application?
As mentioned previously in this thread, a work-around for the current
datetimepicker issues is to convert the date value to and from an
RFC3339 string within your actio
What do you mean by it fails? I need more details.
What do you get ?
Do you have the jar file in your "WEB-INF/lib" ?
amir nasr wrote:
hello all
i do what mentioned below
but it fails in initialization, and whent i comment
<%@ taglib prefix="tt" uri="/tabletags"%>
it run correctly ,
any sug
Basically, because of the performance issue. It takes a while to
initialize the facade with every single request.
What's the problem with this ?
Frank W. Zammetti wrote:
It may be OK, but my experience tells me its atypical... the question
I would ask is why you need to cache the reference to
On 02/06/07, Mansour <[EMAIL PROTECTED]> wrote:
Hello every one:
I am trying to access my business layer from Actions. However, I need
to hold a reference to the business layer facade and access it from any
Actions classes. I am saving the reference to servicesFacade in a
session and retrieving
What do your log files tell you? It sounds like you've introduced an
error in your validation.xml (either a syntax error, or a semantic error
such as referencing a class that doesn't exist or specifying the method
signature incorrectly).
L.
So,there is a attribute like "maskif"!
Log files
What do your log files tell you? It sounds like you've introduced an
error in your validation.xml (either a syntax error, or a semantic error
such as referencing a class that doesn't exist or specifying the method
signature incorrectly).
L.
So,there is a attribute like "maskif"!
Log files
What do your log files tell you? It sounds like you've introduced an
error in your validation.xml (either a syntax error, or a semantic error
such as referencing a class that doesn't exist or specifying the method
signature incorrectly).
L.
So,there is a attribute like "maskif"!
Log files s
sorry!
--
View this message in context:
http://www.nabble.com/Struts-validator-%22maskif%22-tf3913144.html#a8601
Sent from the Struts - User mailing list archive at Nabble.com.
--- "M. Bitner" <[EMAIL PROTECTED]> wrote:
> [...] Spring is picking up the beans defined in
> applicationContext and instantiating them. How do I
> get them into my actions to use them for data
access?
Two main ways:
1) Wire them up by hand (define your actions as beans
in a Spring context file
Maybe http://struts.apache.org/2.x/docs/spring-plugin.html can be of some
help.
Cheers,
Peter
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: den 14 juni 2007 13:59
To: Struts Users Mailing List
Subject: Re: [S2] Getting DAO from Spring in Struts Action
--- "M. Bit
I know of two general categories of security issues:
First, all security issues that apply to Web Applications apply to
Struts. Fortunately, there is lots of documentation in the web, a few
books, and quite a few tools that test the security of your web
application.
Second, *use a recent versio
Hello everbody,
I'm faciong the following problem. In my OrderForm I have got a list with
order items: private List wrappedOrderItemList = new
ArrayList();
Now I have got a jsp with a list of all order items. I iterate over the list
to display the values:
Now I need a textfield where the user
I'm getting the same warning setting the constant in the struts.xml
file. Didn't test using struts.properties.
Upgrading to v2.0.8 didn't solve the problem either.
2007/6/13, Danny Hurlburt <[EMAIL PROTECTED]>:
I was getting the same warning. I was able to remove the warning by
creating a
/WEB-
Good Day,
Thank you for the help.
I found a javascript calendar that has date and time functionality. Is there
a way I can use this with a normal s:textfield?
http://sourceforge.net/projects/jscalendar/
I want to use the following format in the text field.
2007-06-14 20:41
Must I create a co
Updated struts from 2.0.6 to 2.0.8 (that fixed "FilterDispatcher not cleaning
up correctly") but nothing changes. Maybe it's not a FilterDispatcher
problem...
totojack wrote:
>
> I've deployed a webapp with struts2 on weblogic 8.1/java 1.4.1_02.
> It works fine, but when I make a redeploy it t
On 6/14/07, Roger Varley <[EMAIL PROTECTED]> wrote:
On 02/06/07, Mansour <[EMAIL PROTECTED]> wrote:
> Hello every one:
> I am trying to access my business layer from Actions. However, I need
> to hold a reference to the business layer facade and access it from any
> Actions classes. I am saving
I am a bit confused now:
- It seems when the app starts in the course of Tomcat starting up,
there is no warning
- When the app starts in the course of stopping/starting or reloading in
Tomcat Manager, the warning still appears
- However my the locale I set as constant in struts.xml seems to apply
Make sure the inputName matches the name of the setter method, I assume you
have a getAnuncio() in your action whose result has a setDataInicial()
method right?
musachy
On 6/13/07, Diego Yasuhiko Kurisaki <[EMAIL PROTECTED]> wrote:
I'm using saveFormat=rfc and java.util.Date as my object
My d
I upgraded to the latest version of struts 2.0.8 which comes with a
newer version of tiles...
I am using JDK 1.4, so I had to reto-translate the following jars on top
of the struts2 j4 distribution
struts2-tiles-plugin-2.0.8.jar
tiles-api-2.0.3.jar
tiles-core-2.0.3.jar
On weblogic 8.1, on start
2007/6/14, Charbel Abdul-Massih <[EMAIL PROTECTED]>:
java.lang.ClassNotFoundException:
org.apache.tiles.jsp.context.JspTilesContextFactory
Whoops! Maybe we need to add it in the assembly. For the moment, you can add
it manually:
http://www.apache.org/dyn/closer.cgi/tiles/v2.0.3/
Thanks a lo
Hello,
I am having some problems with getting a session attribut in my JSP.
A have a JSP where the user can make a search based on information he must
enter in a form.
The result of the search must be displayed in a table.
To display the result I do:
On 6/14/07, Wesslan <[EMAIL PROTECTED]> wrote:
Maybe http://struts.apache.org/2.x/docs/spring-plugin.html can be of some
help.
You have to give your spring actions (those you want dependency
injection for) the same value for the "name" attribute as the value
you give for your spring bean's "id"
hello all
i do what mentioned below
but it fails in initialization, and whent i comment
<%@ taglib prefix="tt" uri="/tabletags"%>
it run correctly ,
any suggestion.
Bye.
Mansour <[EMAIL PROTECTED]> wrote: I think you are asking about the taglib
difinition so that you can use
tabletags.
If thi
Help me on the below error
[6/14/07 9:48:11:304 EDT] 152c2ad5 WebGroup E SRVE0026E: [Servlet
Error]-[com/opensymphony/oscache/base/NeedsRefreshException]:
java.lang.NoClassDefFoundError:
com/opensymphony/oscache/base/NeedsRefreshException at
java.lang.Class.forName1(Native Method) at java.lang.Cl
Seems like you don't have oscache jar on your lib folder.
musachy
On 6/14/07, Sachin <[EMAIL PROTECTED]> wrote:
Help me on the below error
[6/14/07 9:48:11:304 EDT] 152c2ad5 WebGroup E SRVE0026E: [Servlet
Error]-[com/opensymphony/oscache/base/NeedsRefreshException]:
java.lang.NoClassDefFoundE
What concerns me is the loading time of a page that contains one or more
datetimepickers. Especially in the company network here (very fast but
behind a proxy), it sometimes takes a minute or more to load such a page
while my little Linux box here almost freezes. More or less the same
happens on th
Sorry forgot to mention
I have oscache-2.1.1.jar inside WEB-INF\Lib which is working fine in windows
and failing in unix.
I extracted the jar in from my unix server and it contains the jar which
fine and having the NeedsRefreshException class.
I did check the case sense between windows and unix.
Rename the folder from WEB-INF\Lib to WEB-INF\lib...
> Sorry forgot to mention
>
> I have oscache-2.1.1.jar inside WEB-INF\Lib which is working fine in
> windows
> and failing in unix.
> I extracted the jar in from my unix server and it contains the jar which
> fine and having the NeedsRefreshExce
sorry that is typo error...
lib is fine.
On 6/14/07, Rainer Hermanns <[EMAIL PROTECTED]> wrote:
Rename the folder from WEB-INF\Lib to WEB-INF\lib...
> Sorry forgot to mention
>
> I have oscache-2.1.1.jar inside WEB-INF\Lib which is working fine in
> windows
> and failing in unix.
> I extrac
Sorry for the unjustified criticism. It is going to be difficult for people to
get the correct jar, as it is not a link on the Tiles site. I had to guess
that the 2.0.3 download url was a mod of the 2.0.4 url, and fortunately, it was.
- rc
> - Original Message -
> From: "Al Sutton" <[E
Yes thats right...
When i have the following signature for the setter method
setDataInicial(java.util.Date data){
}
The method is called properly and my date is setted, but it changes dd/MM
for MM/dd, so if my date is 01/12 (first of december) in my bean it turns to
12/01 (twelveth of january
I am getting the following errors and I am not sure where they are
coming from. I do not have any fields on my form named "x" or "y". Any
ideas?
ERROR - ParametersInterceptor.setParameters(198) | ParametersInterceptor
- [setParameters]: Unexpected Exception catched: Error setting
expression 'x'
I'm preparing my Struts app for Internationalization and am moving all
strings to .properties files.
How do I do this:
"/>
Obviously, that doesn't work, but you can probably see what I want to do.
How do I do that?
--
View this message in context:
http://www.nabble.com/-S1--Properties-Argumen
I added setters for "x" and "y" in my action class. They are set to
different integer values each time. I have no idea where this is coming
from. Is this some strange bug in Struts 2?
-Original Message-
From: Hoying, Ken [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 14, 2007 1:48 PM
--- "Hoying, Ken" <[EMAIL PROTECTED]> wrote:
> I added setters for "x" and "y" in my action class.
> They are set to different integer values each time.
> I have no idea where this is coming from. Is this
> some strange bug in Struts 2?
I'll bet if you move your mouse to the right x gets
big
You appear to be correct. Care to clue me in?
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 14, 2007 2:12 PM
To: Struts Users Mailing List
Subject: RE: [S2] Parameter Interceptor Error
--- "Hoying, Ken" <[EMAIL PROTECTED]> wrote:
> I added setters
I see... Now.. Using
-Original Message-
From: Hoying, Ken [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 14, 2007 2:18 PM
To: Struts Users Mailing List
Subject: RE: [S2] Parameter Interceptor Error
You appear to be correct. Care to clue me in?
-Original Message-
From: Dave
On 6/14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hello,
I am having some problems with getting a session attribut in my JSP.
A have a JSP where the user can make a search based on information he must
enter in a form.
The result of the search must be displayed in a table.
To display the
Hi,
I'm trying to develop my app following the redirect-after-post
pattern. Of course s:actionmessages do not survive between requests,
but this is the main paradigm behind the pattern (showing the page by
doing _other_ request).
The question is which are my options to make my actionMessages dis
In one of my forms the validation error messages are piling up every
time the submit button is pressed. This only occurs in Firefox and only
with this form. I have other form working well both in IE and FF.
Anyone can help me?
The form:
<%@ page language="java" contentType="text/html; charset=UT
Can you verify that the struts.xml is in the WAR file, and the location
of it?
/Ian
Danny Hurlburt wrote:
Hello,
I am new to Struts2 and am running into some problems. I have read
much of the
documentation on the wiki but I am still stuck.
I have added the filter declaration and filter ma
Generally this occurs if there is no method defined for the
action...guess struts.xml is missin for indicatin the default
method.
try addin method="execute()" to the definition..if it works...some
problem with struts.xml
Animesh
On 6/13/07, Danny Hurlburt <[EMAIL PROTECTED]> wro
Actually I figured it out. I didn't realize that S2 was expecting
struts.xml to be on the
classpath. I put it in WEB-INF. The wiki page
http://cwiki.apache.org/WW/strutsxml.html
didn't make it clear that it is required to be on the classpath. It does
however state that
the struts-plugin.xml need
I am trying to perform validation using an xml file that follows the
format Action-method-validation.xml. However, it does not appear that
the validation is being executed. I am not sure how to debug this to
determine why. Anyone have a good set of steps on how to debug this
issue?
Thank you.
On which field are they piling up?
musachy
On 6/14/07, Rafael Dittberner <[EMAIL PROTECTED]> wrote:
In one of my forms the validation error messages are piling up every
time the submit button is pressed. This only occurs in Firefox and only
with this form. I have other form working well both i
If I uncheck the Tools|Options|Content|Enable Javascript option in FF it
works ok. But it does not answer the question why one form works and the
other don't.
Rafael Dittberner
Rafael Dittberner escreveu:
In one of my forms the validation error messages are piling up every
time the submit bu
One way to know if the validation is detected by struts is using the config
browser plugin (http://struts.apache.org/2.x/docs/config-browser-plugin.html),
is the "validation" interceptor being applied to your action? In any case,
posting the action mapping and the class would help.
musachy
On 6/
If you have validate="true" on the form, javascript validation will be
performed before submitting the form, do you have that in both forms?
musachy
On 6/14/07, Rafael Dittberner <[EMAIL PROTECTED]> wrote:
If I uncheck the Tools|Options|Content|Enable Javascript option in FF it
works ok. But i
The first one.
Rafael Dittberner
Musachy Barroso escreveu:
On which field are they piling up?
musachy
On 6/14/07, Rafael Dittberner <[EMAIL PROTECTED]> wrote:
In one of my forms the validation error messages are piling up every
time the submit button is pressed. This only occurs in Firefox
Yes, both forms have validate="true".
required="true" >
This is the one that works, it is only a test I did while learning S2,
so it is much simplier than the other.
Rafael Dittberner
Musachy Barroso escreveu:
If you have validate="true" on the form, javascript validation will be
perfor
Thanks for the pointer on the plugin.
My Validation XML file (UploadFile-uploadXls-validation.xml) is as
follows:
http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>
Can anyone tell me why this is happening to me. I am using jdeveloper 10g
as my development platform.
I want to call a action with a url parameter.
ex: someaction.action?id=123
but in my action where i have a getter and setter for id it is not being
picked up.
Could this be a issue with oc4j
Hi.
I have done a simple application to learn struts2. The user only insert is
name and hit "OK" button. The result is the error.jsp or success.jsp with a
message that was set on the class.
This class have the execute() method and all gets and sets need to capture
the values introduce by the use
I am trying to run the blank-struts application in jdeveloper 10.1.3.1 and
the application is not recognizing the url parameters passed to the action.
Is anyone else having this issue?
I noticed there's only two bundled numeric data type validator (int, double).
Is there any reason the S2 "int" validator can't be used for long field
validations (or other data types w/out decimals)?
p.s. The http://struts.apache.org/2.x/docs/validation.html page is missing a
link for the doub
On 6/14/07, l1nk <[EMAIL PROTECTED]> wrote:
Hi.
I have done a simple application to learn struts2. The user only insert is
name and hit "OK" button. The result is the error.jsp or success.jsp with a
message that was set on the class.
This class have the execute() method and all gets and sets n
> I'll be replacing that with the one Torsten
> emailed about earlier at the first opportunity I get:
>
> http://www.mattkruse.com/javascript/calendarpopup/
>
I just gave that a try myself and I ran into a few issues:
- The placement of the popup is not as smart as with
datetimepicker, in my c
The DTD (http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd) for the
xml validation file definition doesn't appear to support error message
parameters. How does one pass msg parameters when using the message key (which
I assume is a i18n message file key)?
Using the example on http://
--- Danny Hurlburt <[EMAIL PROTECTED]> wrote:
> The wiki page didn't make it clear that it is
> required to be on the classpath.
Does now :)
(Or will once it propagates, anyway.)
d.
Building a websit
Sure. Here it's the code:
ERROR [ParametersInterceptor] ParametersInterceptor - [setParameters]:
Unexpected Exception catched: Error setting expression 'age' with value
'[Ljava.lang.String;@73327332'
ERROR [ParametersInterceptor] ParametersInterceptor - [setParameters]:
Unexpected Exception catc
What exactly the tag you are using,
Better to use the url tag with param which does the
encoding properly
Thanks
--- Mike Jennings <[EMAIL PROTECTED]> wrote:
> Can anyone tell me why this is happening to me. I
> am using jdeveloper 10g
> as my development platform.
>
> I want to call a action w
Good Evening George or Mike
go to 'Project'
select 'Run/Debug'
Edit
Add the necessary Program Arguments
Tool Settings/Debugger/Remote
Attach to OJVM should be selected
Host should be fully qualified dns name
Port leave as 4000 unless you changed it
verify the 'To Launch A Remote Debugee' (comma
I am following the instructions here:
http://www.servlets.com/archive/servlet/ReadMsg?msgId=427231&listName=struts-user
But unfortunately I cannot get my browser to send the
"If-Modified-Since" header. Instead, I am always receiving the
"cache-control=max-age=0" in the request, which HTTP dicta
I really appreciate the input - I've been struggling with this for a
while. It's still not quite working though, and I'm sure the problem
is that there's something fundamental about the process that I don't
quite understand yet.
My applicationContext.xml looks like this:
http://www.springframew
Torsten Römer wrote:
I'll be replacing that with the one Torsten
emailed about earlier at the first opportunity I get:
http://www.mattkruse.com/javascript/calendarpopup/
I just gave that a try myself and I ran into a few issues:
Thanks for this. You've saved me a lot of time!
---
Dear All,
I am new to struts so would need your help here.
My client has an enterprise application(struts1.0 based) with :
1 WAR (virtual host www.abc.com)
1 EJB module
Now, the client want the same application(almost same business rules..i.e
same EJB module) but in different look and feel
Hi
Is there a way out in struts 2 as in struts1.2 for not submitting the form
twice even is the submit button
is pressed more than once.
Your reply will be welcomed
sudeep srivastava
[EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/In-struts-2-can-we-stop-form-submiti
Hi,
I have tried using request.getRequestDispatcher.forward() and returning the
actionforward to null
I used the below code
String customURL = getcustomURL();
RequestDispatcher req = request.getRequestDispatcher(customURL);
req.forward(request, response);
But it is not working. it always pre-
the WEB-INF should be in capital letters to run a web application in linux.
actually i have faced the same problem . windows in not case sensetive but
linux ,it is only for WEB-INF,. Your can mention lib, classes or other folders
names in lower case
best of luck
Hi all,
Can anybody tell me how to get the real path of a file from an action class?
I'm using struts 1.2.9.
Thank you,
AM
getServlet.getContextPath.getRealPath(File);
Regards
Srinivas Gurram
IT Consultant
LogicaCMG - Releasing your potential
Divyasree Technopolis
124 - 125 Yemlur Main Road,
Off Airport Road
Yemlur P.O
Bangalore 560 037
India
Tel: +91 80 4194 extn 20195
M: +91 99001
Hi,
You can get it by using the code:
//Get the servers upload directory real path name
String filePath = getServlet().getServletContext().getRealPath("/")
+"upload";
Have a look at
http://www.roseindia.net/struts/strutsfileuploadandsave.shtml.
Here you will find the code to save the file
No worries, It's useful to bring issues like this up so that people can
search the mailing list archives and get the solution if the hit the same
problem.
-Original Message-
From: Ray Clough [mailto:[EMAIL PROTECTED]
Sent: 14 June 2007 17:17
To: Struts Users Mailing List
Subject: RE: Str
You'll need
http://struts.apache.org/2.0.8/docs/message-store-interceptor.html
Be aware though, if you have the validation interceptor in your stack you
will encounter problems if you're redirecting to an action.
-Original Message-
From: Gabriel Belingueres [mailto:[EMAIL PROTECTED]
Sen
Hi
I have a page that allows users to create 100 records at the same time (100
is the limit that we have set). The screen works this way, the user can
upload the information for those hundred rows and then click on "Save" to
save all the information. The form has formfile element in it (to enable
Please use TokenInterceptor; you need to configure it in you action
configuration.
sudeepj2ee wrote:
>
> Hi
>
> Is there a way out in struts 2 as in struts1.2 for not submitting the form
> twice even is the submit button
> is pressed more than once.
>
> Your reply will be welcomed
>
> sud
Hi
Thanks for replying can you send a small sample or a link that would be
helpful for me
sudeep
Strut_developer wrote:
>
>
> Please use TokenInterceptor; you need to configure it in you action
> configuration.
>
>
>
> sudeepj2ee wrote:
>>
>> Hi
>>
>> Is there a way out in struts 2 as in
Thank you Deepak,
It works fine.
-Original Message-
From: Deepak Kumar [mailto:[EMAIL PROTECTED]
Sent: Friday, June 15, 2007 11:22 AM
To: Struts Users Mailing List
Subject: RE: get real path of a file from action class
Hi,
You can get it by using the code:
//Get the servers upload dir
First of all let me know how to post problems here; I am registered user but
when I post problems ; I cant see it in list. I just can see it in my
account summary. How can I make sure that my queries listed in list like
yours.
and ya you can see java doc of that interceport there is example given,
90 matches
Mail list logo