Hi Dave,
i have almost the same code and it works,
ActionForward forward = new
ActionForward("/remoteAccess.do?server=irqpa&entry=potentialCost"
+ "&idExtraCostType=" + ExtraCostType.MEDICAL_TEST.getOrdinal());
return forward;
But i also have such one:
ActionForward forwar
>
> The getter-method for the referer property returns something like
> "http://localhost:9001/welcome.action";, cos the search-form is included in
> my welcome-page. I've got the feeling, that Tomcat's ApplicationDispatcher
> makes some request string modifications in accordance to the servlet con
Hi All,
Please use following code in struts.xml file.
This is one of the solutions. Please try it.
Thank you,
Seshagiri V
seshagi...@kensium.com.
US Main: 877 KENSIUM (536.7486)
US Fax: 312.242.3029
Kensium
200 S Wacker Dr, Suite 3100
Chicago, IL 60606
Confidentiality Note:
--
hi all
am getting no.of users from DAO class and all username are in the form of
User Object.
ArrayList list = new ArrayList();
while(rs.next()){
User user = new User();
user.setUsername("abc");
list.add(user);
}
this is my code .
Is there a way to disable i18n support on respectively Struts1 and Struts2?
cheers
-nodje
--
View this message in context:
http://www.nabble.com/Disabling-i18n-support-on-Struts1-Struts2-tp21028365p21028365.html
Sent from the Struts - User mailing list archive at Nabble.com.
Can somebody tell me, whether I can dispatch to a non-servlet resource, e.g.
make a forward to a URI like "/foo.action" rather than to a JSP like
"/jsp/foo.jsp". It's important to me to use the dispatcher result with
"forward actions" like in Struts 1.
newton.dave wrote:
>
> You may be able to
got solved the problem ,I update my jar to 2..0.14
On Tue, Dec 16, 2008 at 12:34 AM, Oscar Alvarez
wrote:
> What interceptor stack are you using?
>
> The names you are using in form is present in your action???
>
> 2008/12/15 srinivasa_v .
>
> > I have problem in uploading files,
> > I have cre
Hi All,
I have sistutation where I need to return to entryForm, if there any
validation errors,but before going to entryform for second time,
I need to get some prepopulated data , for this I am using preparable
inceptor,
I am able to get my prepopulated data fine,
but the I am not able to see m
I got the problem solved,even I had an issue with file upload,I have update
my jar to 2.0.14
now its working fine.
regards
srini.
On Mon, Dec 15, 2008 at 11:57 PM, Richa Pandharikar <
richa.pandhari...@tdktech.com> wrote:
> Can you please send the tag entry you have in your JSP?
>
> -Origin
It is good to hear some one started and done some thing reg gui console.
Well I got the below error when I tried to run the Struts2GUI-0.1-alpha.jar
from Struts2GUI-0.1-alfa-fulldist.zip
java.lang.NullPointerException
at struts2gui.Struts2GUIView.(Struts2GUIView.java:46)
at struts
getProtocol and/or isSecure?
--- On Mon, 12/15/08, cpanon wrote:
> From: cpanon
> Subject: Re: howto get useable protocol string
> To: "Struts Users Mailing List"
> Date: Monday, December 15, 2008, 10:04 PM
> Hi
> Sorry to repeat, however I still can figure this out. I am
> using property="
Hi
Sorry to repeat, however I still can figure this out. I am using to get at the serverName, serverPort and
contextPath. I want to get at whether it is http/https. Is there a way to do
that? tia.
--- On Mon, 12/15/08, cpanon wrote:
> From: cpanon
> Subject: howto get useable protocol s
I had encountered similar problem a while back in Webwork.I believe its
OGNL's problem as well. However, in most of my other projects using WebWork,
I had no performance problem. I believe it has something to do with some jar
files included in the project. I have not got a chance to find out which
Hi,
I am using Struts 2.0.14 without Ajax theme since its end-of-life now
with 2.1 in the works. I still want to use Dojo but as a standalone.
What work arounds are there to add dojoType to a
Thanks,
Oleg
-
To unsubscribe, e-ma
2008/12/15 hello_everyone :
> Is it possible to connect two scroll, when user scrolls one the other one
> also scrolls.
Use JavaScript, not real Struts issue
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail
--- On Mon, 12/15/08, Marsman wrote:
> And using a super class seems to me only like a workaround for
> the specified problem. Any other ideas?
I don't really see it as a problem, quite frankly; it sounds like your package
layout is either too tightly-coupled or you're trying to make your messag
Hi,
I'm using Struts 1 and trying to figure out the mysterious world of
forwarding. I have
String path = new
String("/npsim/appGroupsAdmin.do?addAppGroup=Add+New+Group&submitted=submit&task=add&appName="
+ URLEncoder.encode(appName));
return new A
Hello
Using the struts bean tags, how/syntax to get at the protocol that I can use
rather than parse, either http or https. What I am getting is HTTP/1.1. Is
there any way to get it "cleaner"? tia.
-
To unsubscribe, e-mail: us
newton.dave wrote:
>
> --- On Mon, 12/15/08, Marsman wrote:
>> How can I solve this problem? Do I really have to code a
>> second file like AddCustomerForm.properties with the same
>> properties as in AddCustomer.property?
>
> There are several solutions; the easiest is to create a
> "package
I've added a new zip file to the package including all the necessary
dependencies. I hope I'm not breaking any laws in doing it :rules:
--
View this message in context:
http://www.nabble.com/Graphical-Configuration-Utility-tp21019003p21020145.html
Sent from the Struts - User mailing list archive
Thanks!
On Mon, Dec 15, 2008 at 12:59 PM, Oscar Alvarez
wrote:
> 2008/12/15 James Carr
>
>> is there a way to provide default values for action parameters without
>> having to set defaults in the actual target objects?
>
>
> May be Preparable interface meets your requirement.
>
> http://struts.a
What interceptor stack are you using?
The names you are using in form is present in your action???
2008/12/15 srinivasa_v .
> I have problem in uploading files,
> I have created a class with modle driven.and in jsp i mentioned form as
> encyrpt
>
> when i submit form I am getting form value
2008/12/15 James Carr
> is there a way to provide default values for action parameters without
> having to set defaults in the actual target objects?
May be Preparable interface meets your requirement.
http://struts.apache.org/2.0.6/struts2-core/apidocs/com/opensymphony/xwork2/Preparable.html
All depends on Licences of the dependencies i think.
Spring brings all its dependencies in the full distribution.
2008/12/15 mpeccorini
>
> Hi Oscar,
>
> The Release Notes
> (
> https://sourceforge.net/project/shownotes.php?group_id=247875&release_id=647398
> )
> show the list of dependencies
I think, you need to put a hiperlink or a button for start your action. Then
you need to retrieve the data from the db, generate the csv Stream or File
as you wish to call it. Then the only diference between a Servlet.doGet
method an Action.execute method is 2 parameters ActionMapping and
ActionFor
Hi Oscar,
The Release Notes
(https://sourceforge.net/project/shownotes.php?group_id=247875&release_id=647398)
show the list of dependencies. You're probably missing one or some of them.
I think the best way to avoid this problem would be to release a "fat jar"
with all the classes the application
is there a way to provide default values for action parameters without
having to set defaults in the actual target objects? I have an action
with a request type object (provided from an API jar) that is
populated via the GET params and submitted... however, for everyone's
use they usually only mod
Hi!
I try to run the dot jar, but does not run...
C:\>java Struts2GUI-0.1-alpha.jar
Exception in thread "main" java.lang.NoClassDefFoundError:
Struts2GUI-0/1-alpha/jar
Caused by: java.lang.ClassNotFoundException: Struts2GUI-0.1-alpha.jar
at java.net.URLClassLoader$1.run(Unknown Source)
Can you please send the tag entry you have in your JSP?
-Original Message-
From: srinivasa_v . [mailto:srinivas...@sify.com]
Sent: Monday, December 15, 2008 5:51 AM
To: Struts Users Mailing List
Subject:
regards
srinivas
--
Hi everyone,
I looked for a struts 2 graphical configuration utility and couldn't
find one, you guys probably remember Struts Console created by James Holmes
(www.jamesholmes.com/struts/console/).
So I've started a new project in sourceforge.net to develop one. I've
also imported a first
--- On Mon, 12/15/08, elyes sallem wrote:
> do you have an other solution? the html:file doesn't
> work for saving a new file
Stream the result (a servlet example was given, it's the same for an action-you
just return null instead of an ActionForward). The *BROWSER* opens a "save as"
dialog box.
2008/12/15 Dave Newton
> *boggled*
>
> --- On Mon, 12/15/08, elyes sallem wrote:
> > i used a filechooser class (swing), if any one have an
> > others solution, i'm interested here is the code :
> >
> > String wd = System.getProperty("user.dir");
> > JFileChooser fc = new JFileChooser(wd);
> >
*boggled*
--- On Mon, 12/15/08, elyes sallem wrote:
> i used a filechooser class (swing), if any one have an
> others solution, i'm interested here is the code :
>
> String wd = System.getProperty("user.dir");
> JFileChooser fc = new JFileChooser(wd);
> int rc = fc.showDialog(null, "Select Data
i used a filechooser class (swing), if any one have an others solution, i'm
interested
here is the code :
String wd = System.getProperty("user.dir");
JFileChooser fc = new JFileChooser(wd);
int rc = fc.showDialog(null, "Select Data File");
if (rc == JFileChooser.APPROVE_OPTION)
{
File file = fc.g
/jsps/showResult.jsp
/jsps/inputPage.jsp
/jsps/successPage
Above is my struts mapping. And yes i am using struts2.
On Mon, Dec 15, 2008 at 10:44 AM, Martin Gainty wrote:
>
> can we see the struts action mappings and result mappings from struts.xml
> e.g.?
> i assume you're using Str
in fact, i will not do it in a servlet, but in an action (execute method)
Regards
Elyes
2008/12/15 Robert Graf-Waczenski
> Here's an example:
>
> public class Downloader extends HttpServlet
> {
> private void doGet(HttpServletRequest req, HttpServletResponse resp) throws
> IOException
> {
>
Here's an example:
public class Downloader extends HttpServlet
{
private void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException
{
resp.setHeader("Pragma", "no-cache");
resp.setHeader("Cache-control", "no-cache");
resp.setIntHeader("Expires", -1);
the data will be generated dynamically , depending on others selected fields
and based on a select to a database table, i will generate a csv file
2008/12/15 Robert Graf-Waczenski
> Hm. Sounds more like a download, not like an upload. Is that what you're
> after?
>
> Robert
>
>
> elyes sallem
ok, do you have an example?
Thanks
Regards
Elyes
2008/12/15 Dave Newton
> --- On Mon, 12/15/08, elyes sallem wrote:
> > the problem is that with the html:file you must browse to an
> > existant file, but in my case, i wanna browse to a new file,
> > and then in the action i will make some trea
Hm. Sounds more like a download, not like an upload. Is that what you're
after?
Robert
elyes sallem wrote:
the problem is that with the html:file you must browse to an existant file,
but in my case, i wanna browse to a new file, and then in the action
i will make some treatment, generate data
That's what the "Save As" dialog is for.
Nils-H
On Mon, Dec 15, 2008 at 3:03 PM, elyes sallem wrote:
> the problem is that with the html:file you must browse to an existant file,
> but in my case, i wanna browse to a new file, and then in the action
> i will make some treatment, generate data an
--- On Mon, 12/15/08, elyes sallem wrote:
> the problem is that with the html:file you must browse to an
> existant file, but in my case, i wanna browse to a new file,
> and then in the action i will make some treatment, generate
> data and export them to this file
That's not how you do that.
Y
the problem is that with the html:file you must browse to an existant file,
but in my case, i wanna browse to a new file, and then in the action
i will make some treatment, generate data and export them to this file
2008/12/15 Dave Newton
> --- On Mon, 12/15/08, elyes sallem wrote:
> > it is no
--- On Mon, 12/15/08, elyes sallem wrote:
> it is not to export the file content , i want juste get back in the
> action, the *selected file path*
Oh, I thought you said "[...] struts tag to export file [...]"
>> --- On Mon, 12/15/08, elyes sallem wrote:
>>> all i want, is what is the struts tag
There is no reliable way to get the selected file path. This has been
discussed a few days ago on this list.
Robert
elyes sallem wrote:
it is not to export the file content
, i want juste get back in the action, the *selected file path*
2008/12/15 Dave Newton
--- On Mon, 12/15/08, elyes
it is not to export the file content
, i want juste get back in the action, the *selected file path*
2008/12/15 Dave Newton
> --- On Mon, 12/15/08, elyes sallem wrote:
> > all i want, is what is the struts tag to export file [...]
>
> There is no tag to export a file.
>
> Dave
>
>
>
--- On Mon, 12/15/08, elyes sallem wrote:
> all i want, is what is the struts tag to export file [...]
There is no tag to export a file.
Dave
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands,
Shekher wrote:
>
> I am planing to use interceptor for this but not sure how to plan this
>
> as using interceptor can not gurantee a robust authenticate mechanism
> what i planned is as below
>
> if user provide the valid information store the user object in the session
> scoped map and for a
I've been looking into it, and the spec is a bit vague about this.
According to the spec, and the implementations I've look into, form
fields are not required to be namespaced. So that leaves encoding of
html id attributes and javascript variables/functions, which can be
done "by hand".
Nils-H
On
all i want, is what is the struts tag to export file
with html:file, if i browse to unexistant file, (which is the case for me,
because i will export data in this new file)
i get a warning "file doesn't exist"
so what is the struts tag i must use to export a new file
Regards
Elyes
-- For
I agree with Andy Law, Interceptors is much better, and you can
implement your security as you want. To my applications I use an
object in a Session Scope and check if it still exists... if not...
redirect to login action.. simple and easy.
On Mon, Dec 15, 2008 at 10:35 AM, shekher awasthi
wrote:
Is this req still open?
From: "stew...@owd.com"
To: user@struts.apache.org
Sent: Friday, November 28, 2008 1:23:44 AM
Subject: Re: Re: JSR268 - Portlet Plugin - does it support
I will be out of the office, and mostly without email access, until Dec 1.
Please
Hi,
Read about Prepare Interceptor [1]
[1] http://struts.apache.org/2.x/docs/prepare-interceptor.html
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional com
I am planing to use interceptor for this but not sure how to plan this
as using interceptor can not gurantee a robust authenticate mechanism
what i planned is as below
if user provide the valid information store the user object in the session
scoped map and for all incoming request to secure regi
Shekher wrote:
>
> Hi All,
>
> We are developing an application based on Struts2 framework. We are on way
> to develop application based security so that the unauthorized user can
> not
> access the secure area,it needs the request to be from the authorized
> person.We can have the Below mentio
--- On Mon, 12/15/08, Marsman wrote:
> How can I solve this problem? Do I really have to code a
> second file like AddCustomerForm.properties with the same
> properties as in AddCustomer.property?
There are several solutions; the easiest is to create a "package.properties"
file in the appropria
Thanks for the detailed reply, i fear we don't know much about Spring frame
work but can use the approach for our application
other suggestions are also most welcomed
On Mon, Dec 15, 2008 at 5:26 PM, Fogleson, Allen <
allen.fogle...@daugherty.com> wrote:
> We have a similar system of application
We have a similar system of application security. What we do is create session
scoped user object in our spring application.xml, then use a servlet filter to
see if the user is there. The servlet filter redirects to login.action if the
user is attempting to access a protected resource. Here are
I have problem in uploading files,
I have created a class with modle driven.and in jsp i mentioned form as
encyrpt
when i submit form I am getting form values as null from bean, and file
name as correct or sometimes viceversa
jar i am using is 2.0.6
On Mon, Dec 15, 2008 at 5:23 PM, sriniva
Hi!
I'm new to Struts 2 and trying out the new hierarchival message property
system. I've defined a message file on action level for a page with a form
(AddCustomer.property). Displaying the localized text for the page works
fine. But in my case, the form will be performed by another action
(AddC
Hi alll,
Did any one had any idea for file upload in ModelDriven case.
when I try to use multi part with modledriven,my form values i am getting
as null
regards
srinivas
On Sun, Dec 14, 2008 at 9:40 PM, srinivasa_v . wrote:
> pls find the page that i have created and pls help me
>
> On Fri, De
Hi All,
I am using
regards
srinivas
2008/12/15 Lukasz Lenart :
>> where should i use this, this should be in ActionClass or it can be
>> in DAO. give me an idea to implement this .
>
> In action, but you shouldn't use that, it's deprecated solution,
> instead implemented Hibernate or JPA layer.
Or a simple JNDI call, configuri
--- On Mon, 12/15/08, m.harig wrote:
> how do i implement then . because i need pooled
> connections . could anyone tell me about that
You may want to ask that on a DB/persistence-oriented forum since it's not
really Struts-related.
Dave
Thanks Lukasz
how do i implement then . because i need pooled
connections . could anyone tell me about that
--
View this message in context:
http://www.nabble.com/struts-data-source-tp21011491p21012275.html
Sent from the Struts - User mailing list archive at Nabble.com.
--
2008/12/15 m.harig :
> and i've gone through with struts. and i've seen an
> example of this.
>
> javax.sql.DataSource dataSource;
> java.sql.Connection myConnection=null;
>
> dataSource = getDataSource(request);
> myConnection = dataSource.getConnection();
>
>
> 25:<% adminIndex = "%{#idx.index}" + 3; %>
Would you normally assume that a String could be assigned to an int variable?
See if you can use the 'set' tag [1] instead.
Nils-H
[1] - http://struts.apache.org/2.0.14/docs/set.html
--
Hello,
i want to use a formfile in jsp page, where once i browse to file , i want
to laucnh directly the action, export data to this file
(without a submit button near the fromfile)
how can i make it?
Regards
Elyes.
hello all
am newbie to struts . am developing a login application . this is my
java package structure
Action - Helper - DAO . my ActionClass calls Helper method
and it'll call DAO method for accessing database . is this correct???
and i've gone through with str
Hi,
I'm working with an application where i should convert the code that written
using (i.e struts 1.2) with (struts 2.1).
Below i show the struts1.2 code and also the code which i replaced with
tag
Old code:
//Sub Menu for 2nd Main Menu Item ("Admin"):
Hi All,
We are developing an application based on Struts2 framework. We are on way
to develop application based security so that the unauthorized user can not
access the secure area,it needs the request to be from the authorized
person.We can have the Below mentioed approach
1) For Secure area th
Thank you for your help, but I already know how to implement dynamic results
and how to use parameters in my results as well. And this is also not the
point. I wanna make a "forward" rather than a "redirect" to the same page.
But it doesn't work. I have a search-form on different pages. If validat
72 matches
Mail list logo