Re: Context path errors

2025-05-18 Thread Lukasz Lenart
śr., 14 maj 2025 o 23:54 Deborah White napisał(a): > > Updating to Struts 7 and I am receiving context path errors like: > > 13:46:46,495 WARN [org.apache.struts2.dispatcher.Dispatcher] (default > task-1) Could not find action or result: /SOTAS/sotas/storeUserName.action: >

Context path errors

2025-05-14 Thread Deborah White
Updating to Struts 7 and I am receiving context path errors like: 13:46:46,495 WARN [org.apache.struts2.dispatcher.Dispatcher] (default task-1) Could not find action or result: /SOTAS/sotas/storeUserName.action: There is no Action mapped for namespace [/sotas] and action name [storeUserName

Re: Action path prefix rules?

2020-08-14 Thread Lukasz Lenart
pt., 14 sie 2020 o 10:48 Heikki Hyyrö napisał(a): > I am a bit confused about the rules concerning mapping URL paths to > actions. Let's say that I have a Struts application running at > example.com with the app name "myApp". Then the usual path to access a > Stru

Re: Action path prefix rules?

2020-08-14 Thread Heikki Hyyrö
Sorry, my post obviously had a typo. I was supposed to write the link open tag as . -Heikki Heikki Hyyrö kirjoitti 14.8.2020 klo 11.47:     Link to bar-action - To unsubscribe, e-mail: user-unsubscr...@struts.apache.or

Action path prefix rules?

2020-08-14 Thread Heikki Hyyrö
Hi, I am a bit confused about the rules concerning mapping URL paths to actions. Let's say that I have a Struts application running at example.com with the app name "myApp". Then the usual path to access a Struts action named "foo" would presumably be example.com/

Re: Tiles upgrade Path

2020-03-30 Thread Lukasz Lenart
pon., 30 mar 2020 o 16:16 amit vijayvargee napisał(a): > Whilst building the struts 2.5.20 with struts tiles plug-in, I'm getting > apache tiles 3.0.8 version jars. As you aware of apache tiles project is out > of support now. Is there any future plan to remove these dependency from > struts?

Re: Tiles upgrade Path

2020-03-30 Thread amit vijayvargee
Thanks Lukasz for your quick response. Whilst building the struts 2.5.20 with struts tiles plug-in, I'm getting apache tiles 3.0.8 version jars. As you aware of apache tiles project is out of support now. Is there any future plan to remove these dependency from struts? Due to this apache tiles

Re: Tiles upgrade Path

2020-03-25 Thread Ken McWilliams
Tiles and sitemesh are for traditional (non - single page applications) development. Tiles has performance advantages over sitemesh. I don't think the OP should experience any blockers with respect to tiles migration and will gain version 3 benefits as well. On Wed., Mar. 25, 2020, 10:40 a.m. M Hu

Re: Tiles upgrade Path

2020-03-25 Thread M Huzaifah
Hii Got the differencea in here http://tiles.apache.org/framework/tutorial/pattern.html I have to try using tiles. When i need a Single Page Application approach, currently i use one single jsp page that have iframe in it. So the page literally have header, footer, sidebar, and iframe for body co

Re: Tiles upgrade Path

2020-03-25 Thread M Huzaifah
Hii I am not use tiles before, it seems like site mesh. Currently we use sitemesh to decorate page based on url. I checked the tiles its retired. I suggest you to use sitemesh. I dont know what is plus using tiles. With sitemesh you don't even use plugin in struts. Thank you... On Mon, Mar 2

Re: Tiles upgrade Path

2020-03-23 Thread Lukasz Lenart
pon., 23 mar 2020 o 10:41 amit vijayvargee napisał(a): > We are currently looking to migrate struts 2.3 and tiles 2 to newer version. > As per the security scan, existing tiles (2.0) version is deprecated and > reported some vulnerability in it. > Could you please help to answer following querie

Tiles upgrade Path

2020-03-23 Thread amit vijayvargee
Hi, We are currently looking to migrate struts 2.3 and tiles 2 to newer version. As per the security scan, existing tiles (2.0) version is deprecated and reported some vulnerability in it. Could you please help to answer following queries? • Possible options to migrate to newer version, we

Re: s:form does not output the correct path to action

2014-11-12 Thread Lukasz Lenart
2014-11-12 12:22 GMT+01:00 Lukasz Lenart : >> > "multipart/form-data" method="post"> > > this missing "namespace" attribute This is the key problem here - you must specify this attribute when referencing action outside its package Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ --

Re: s:form does not output the correct path to action

2014-11-12 Thread Lukasz Lenart
2014-11-10 15:22 GMT+01:00 Peter Björkman : > Hi! Just changed my config to enable regex in action names. In struts.xml: > > > > Works great! But as a side effect, s:forms no longer outputs the correct > path to my actions. > > The code below: > > "multip

Re: s:form does not output the correct path to action

2014-11-12 Thread Lukasz Lenart
2014-11-10 15:45 GMT+01:00 Peter Björkman : > Thanks for your reply! Yes I've read that, and I have those other two > configs also: > > > > > > The action that the form is pointing to is completely unrelated and has no > wildcards in the action name, so I don't think it should be affected by > t

Re: s:form does not output the correct path to action

2014-11-10 Thread Peter Björkman
:22 GMT+01:00 Peter Björkman : > > Hi! Just changed my config to enable regex in action names. In > struts.xml: > > > > > > > > Works great! But as a side effect, s:forms no longer outputs the correct > > path to my actions. > > > > The code be

Re: s:form does not output the correct path to action

2014-11-10 Thread Lukasz Lenart
In struts.xml: > > > > Works great! But as a side effect, s:forms no longer outputs the correct > path to my actions. > > The code below: > > "multipart/form-data" method="post"> > > used to output: > > action="/mycontext/news/up

s:form does not output the correct path to action

2014-11-10 Thread Peter Björkman
Hi! Just changed my config to enable regex in action names. In struts.xml: Works great! But as a side effect, s:forms no longer outputs the correct path to my actions. The code below: used to output: but now I only get: The context and namespace is stripped out. I verified that just

RE: No action instance for path /welcomeAction could be created

2014-04-10 Thread Christoph Nenning
> > Anything in the logs? > No, nothing at all > Is your logging setup properly? can you see any log messages like server startup? This Email was scanned by Sophos Anti Virus

RE: No action instance for path /welcomeAction could be created

2014-04-09 Thread Etingin, Eugene
, 2014 2:25 PM To: Struts Users Mailing List Subject: Re: No action instance for path /welcomeAction could be created A 500 error means server error. I bet your configuration has a typo or something. Struts won't service anything until you review your logs and correct what's wrong. On

RE: No action instance for path /welcomeAction could be created

2014-04-09 Thread Etingin, Eugene
No, nothing at all Thank you Eugene Etingin 212-815-3393 Land line 646-886-7790 Cell -Original Message- From: Lukasz Lenart [mailto:lukaszlen...@apache.org] Sent: Wednesday, April 09, 2014 2:51 PM To: Struts Users Mailing List Subject: Re: No action instance for path /welcomeAction

Re: No action instance for path /welcomeAction could be created

2014-04-09 Thread Lukasz Lenart
Anything in the logs? 2014-04-09 20:19 GMT+02:00 Etingin, Eugene : > The problem is that when I try to access URL > http://localhost:7001/RDM/welcomeAction.do > > I receive an error 500 HTTP > > No action instance for path /welcomeAction could be created > > Thank you &g

Re: No action instance for path /welcomeAction could be created

2014-04-09 Thread Paul Benedict
t; > 2014-04-09 18:24 GMT+02:00 Etingin, Eugene : > > Dear Struts Experts > > > > > > Can somebody please help me with this problem? I am deploying war file > on Weblogic. The application is done with Struts, > > > > struts-config > > > > > &

RE: No action instance for path /welcomeAction could be created

2014-04-09 Thread Etingin, Eugene
The problem is that when I try to access URL http://localhost:7001/RDM/welcomeAction.do I receive an error 500 HTTP No action instance for path /welcomeAction could be created Thank you Eugene Etingin 212-815-3393 Land line 646-886-7790 Cell -Original Message- From: Lukasz Lenart

Re: No action instance for path /welcomeAction could be created

2014-04-09 Thread Lukasz Lenart
What's the problem? Do you see anything in the logs? 2014-04-09 18:24 GMT+02:00 Etingin, Eugene : > Dear Struts Experts > > > Can somebody please help me with this problem? I am deploying war file on > Weblogic. The application is done with Struts, > > struts-config &

RE: No action instance for path /welcomeAction could be created

2014-04-09 Thread Etingin, Eugene
Thank you Eugene Etingin -Original Message- From: Eric Reed [mailto:ere...@mail.nysed.gov] Sent: Wednesday, April 09, 2014 12:40 PM To: Struts Users Mailing List Subject: Re: No action instance for path /welcomeAction could be created Looks like a struts 1 applicati

Re: No action instance for path /welcomeAction could be created

2014-04-09 Thread Eric Reed
Looks like a struts 1 application, why not struts 2? It appears you are capturing request element instead of using the framework, which will work fine but is just a bad practice. Certain versions of Weblogic hiccup on comments in html and config files. Also try port 7101 which is the default on

No action instance for path /welcomeAction could be created

2014-04-09 Thread Etingin, Eugene
Dear Struts Experts Can somebody please help me with this problem? I am deploying war file on Weblogic. The application is done with Struts, struts-config WelcomAction.java /** * .  * * *  * Name Date Description * --  *  */ pac

Re: Result template relative path

2011-04-14 Thread Paweł Wielgus
Hi Ilya, maybe this will help: Best greetings, Paweł Wielgus. 2011/4/11 Ilya Kazakevich : > Hello, > > I store all my jspx templates in /WEB-INF/templates// > I am tired of copy/paste like > > /WEB-INF/templates/foo/success.jspx > /WEB-INF/templates/foo/foo.jspx > > All my templates are in WEB-

Result template relative path

2011-04-11 Thread Ilya Kazakevich
Hello, I store all my jspx templates in /WEB-INF/templates// I am tired of copy/paste like /WEB-INF/templates/foo/success.jspx /WEB-INF/templates/foo/foo.jspx All my templates are in WEB-INF/templates/ Could I set it in one place for the whole package? I briefly looked into the code and found

Re: Absolute Path for result

2010-07-22 Thread Dale Newfield
On 7/22/10 10:59 AM, Amol Ghotankar wrote: So I can conclude if we give w/error.jsp it takes path relative to namespace. If we give /w/error.jsp it take absolute path from web content folder. This is true, but can be stated more generally, not related to struts: A path starting with "

Re: Absolute Path for result

2010-07-22 Thread Amol Ghotankar
Dear Dale, Yes it works perfectly, thanks. So I can conclude if we give w/error.jsp it takes path relative to namespace. If we give /w/error.jsp it take absolute path from web content folder. Regards, Amol On Thu, Jul 22, 2010 at 7:54 PM, Amol Ghotankar wrote: > Dear Dale, > > i

Re: Absolute Path for result

2010-07-22 Thread Amol Ghotankar
Dear Dale, i have used relative path of ../../../w/error.jsp Can't i directly give w/error.jsp - if i give so I struts searches it in x/y/z/w/error.jsp i.e relative to the namespace. I will have to try with /w/error.jsp Regards, Amol On Thu, Jul 22, 2010 at 7:38 PM, Dale Newfield

Re: Absolute Path for result

2010-07-22 Thread Dale Newfield
On 7/22/10 3:40 AM, Amol Ghotankar wrote: Can't i directly give w/error.jsp "w/error.jsp" is a relative path. What happens if you specify "/w/error.jsp"? -Dale - To unsubscribe, e-mail: user-unsu

Absolute Path for result

2010-07-22 Thread Amol Ghotankar
Dear List member, How can I give absolute path to my result page. web content - |---x |:-y | :-z |--w Eg: My namespace is /x/y/z and I want my error page which is in w folder in web content then i have to give relative path of ../../../w/error.jsp Can't i directly g

Re: Base Path for Page Resources Incorrect

2010-05-15 Thread Paweł Wielgus
Hi Dane, are You calling resources with absolute path? < img src="/absolute/path/to/image.jpg /> or relative? < img src="relative/path/to/image.jpg /> If relative then it is working like You described, if absolute then post your code. Best greetings, Paweł Wielgus 2010/5/1

Re: Base Path for Page Resources Incorrect

2010-05-14 Thread Dane
On 10-05-14 10:52 AM, Dane wrote: I'm testing a Struts 2 application; resources included in the page--images, stylesheets--do not point to their absolute location, but instead adopt the path of the current page's URL and simply append their location to the end of it. I discovered tha

Base Path for Page Resources Incorrect

2010-05-14 Thread Dane
I'm testing a Struts 2 application; resources included in the page--images, stylesheets--do not point to their absolute location, but instead adopt the path of the current page's URL and simply append their location to the end of it. I discovered that if I use the tag in the of th

Struts 2.1.8.1 custom freemarker template path

2010-02-04 Thread GF
Hello. is anyone using successfully Struts 2.1.8.1 using a CUSTOM freemarker template path (placed in the Web Application and not in the classpath)? I mean: It seems that if I just extract the themes from the struts jar and I put it in the Web Application paths it stops work

Path page.logon does not start with a "/" character" Problem

2010-01-07 Thread Andy T
words just use the Tiles that comes with Struts 1.3. I added the Tiles Plug-In and changed everything back from tiles.apache.org . . . to struts.apache.org . . . Now, I'm getting the "Path page.logon does not start with a "/" character". I have researched this issue some but

Missing configuration resource for path /org/apache/struts/tiles/chain-config.xml when deploying on jboss using struts 1.3.8

2009-09-22 Thread David Sharp
ssage: "Missing configuration resource for path /org/apache/struts/tiles/chain-config.xml". I've modified the ActionServlet class to spit out some debugging data and here is what I got: 14:23:12,019 INFO splitting and resolving paths: '/org/apache/struts/tiles/chain-config.xml

Re: realtive path and absolute path

2009-09-11 Thread Stephen Turner
On Fri, 11 Sep 2009 07:59:38 -0400, Martin Gainty wrote: (i dont know what a realtive path is) Martin Gainty I think he spelt it like that to confuse bots... Steve - To unsubscribe, e-mail: user-unsubscr

Re: realtive path and absolute path

2009-09-11 Thread suhas kokal
hi,      The raltive path is jsp/abc.jsp  The absolute path is  http://localhost:8080/test/jsp/abc.jsp   Thanks Suhas Kokal --- On Fri, 11/9/09, srinu salnki wrote: From: srinu salnki Subject: Re: realtive path and absolute path To: "Struts Users Mailing List" Date: Friday, 11

RE: relative path and absolute path

2009-09-11 Thread C N Davies
Relative path is a path relative to the current directory, for instance if you home directory was c:\temp and you wanted to use an absolute path to the "documents" subdirectory of c:\temp you would use c:\temp\documents, a relative path would be "documents" assuming your curre

RE: realtive path and absolute path

2009-09-11 Thread Martin Gainty
A full path or absolute path is a path that points to the same location on one file system regardless of the working directory or combined paths. It is usually written in reference to a root directory. A relative path is a path relative to the working directory of the user or application

Re: realtive path and absolute path

2009-09-11 Thread srinu salnki
Thanks suhas for more clarification : Say I had deplayed a application nammed test in jboss so there i have one link: http://localhost:8080/test/jsp/abc.jsp for this what is the relative path and the absolute path. regards Sunil On Fri, Sep 11, 2009 at 2:19 PM, suhas kokal wrote: >

Re: realtive path and absolute path

2009-09-11 Thread suhas kokal
hi,   Absolute path starts from /ContextName/... Relative path does not start from / but with the URL u declare in the configuration path   Thanks Suhas Kokal --- On Fri, 11/9/09, srinu salnki wrote: From: srinu salnki Subject: realtive path and absolute path To: user@struts.apache.org Date

realtive path and absolute path

2009-09-11 Thread srinu salnki
Hi I am new to struts..pls.can u tell me this difference. what is the difference b/w relative path and absolute path. srinu

Re: how to correctly generate "path" and "type" in structs-config.xml file?

2009-06-19 Thread Nils-Helge Garli Hegvik
package line in the file, ant couldn't generate > any content in all *.xml files. > If I remove the package line from the java source code, all xml files > are generated, but without path (that come after the word of > "package"). > > Please see below for the sourc

how to correctly generate "path" and "type" in structs-config.xml file?

2009-06-18 Thread Sam Wun
Hi, I have an Action java source code with package at the top of the file. When I put the package line in the file, ant couldn't generate any content in all *.xml files. If I remove the package line from the java source code, all xml files are generated, but without path (that come afte

The path of an ForwardConfig cannot be null

2009-05-26 Thread RameshKesavanarayanan
+ ",height=" + (screen.height-5); properties += ",scrollbars"; newwin=window.open(targeturl,"",properties) } } But somehow when this page1.jsp is hit I get the following exception The path of an ForwardConfig cannot be null Is there a reason why t

Re: Block accessing in some path with filter.

2009-05-21 Thread Andy Sykes
Read the section on the config file elements in struts.xml on the Struts2 docs site. Also read the Interceptors guide[1]. You have to specify the interceptor stack on the action. You can use the element to specify what stack to use by default. And what you've defined is not an intercepto

Re: Block accessing in some path with filter.

2009-05-21 Thread Stefano Tranquillini
Big problem folks. i already have an interceptor form the ejb. so i need to use both of these interceptors. i've to update the DEFAULT PACKAGE in this way: i can't simply a

Re: Block accessing in some path with filter.

2009-05-21 Thread Stefano Tranquillini
thanks, but i definide in struts my interceptors in this way: in order to use the interceptors only when namespace is /admin/* but the interceptor is never called! And: where i've to put the globalforward? i putted a the end of the sturts.xml something like tha

Re: Block accessing in some path with filter.

2009-05-21 Thread Stefano
2009/5/21 Paweł Wielgus : > global forward thanks, but i definide in struts my interceptors in this way: in order to use the interceptors only when namespace is /admin/* but the interceptor is never called! ideas? thanks -- Stefano

Re: Block accessing in some path with filter.

2009-05-21 Thread Paweł Wielgus
>>> message /WAP-Shop-war/denied.action >>> >>> description The requested resource (/WAP-Shop-war/denied.action) is >>> not available. >>> >>> but is available! >>> >>> ideas? >>> >>> >>> >>>

Re: Block accessing in some path with filter.

2009-05-21 Thread Stefano Tranquillini
ot available. >> >> but is available! >> >> ideas? >> >> >> >> On Wed, May 20, 2009 at 13:35, Andy Sykes wrote: >>> >>> Put the mapping for the admin filter above the struts2 filter. Filters >>> are

Re: Block accessing in some path with filter.

2009-05-20 Thread Andy Sykes
first and dispatching it before it ever reaches the admin filter. On 20 May 2009, at 09:37, Stefano Tranquillini wrote: Hi all. i need to block the path /admin/ for all the pepole. only the people logged in as root can access it. i've done a filter, but struts see

Re: Block accessing in some path with filter.

2009-05-20 Thread Stefano Tranquillini
he struts filter is catching the request first and dispatching it before it > ever reaches the admin filter. > > On 20 May 2009, at 09:37, Stefano Tranquillini wrote: > >> Hi all. >> i need to block the path /admin/ for all the pepole. only the people >> logged in as

Re: Block accessing in some path with filter.

2009-05-20 Thread Andy Sykes
all. i need to block the path /admin/ for all the pepole. only the people logged in as root can access it. i've done a filter, but struts seems to dosen't works with its struts2 org.apache.struts2.dispatcher.FilterDispatcherfilter-class>

Block accessing in some path with filter.

2009-05-20 Thread Stefano Tranquillini
Hi all. i need to block the path /admin/ for all the pepole. only the people logged in as root can access it. i've done a filter, but struts seems to dosen't works with its struts2 org.apache.struts2.dispatcher.FilterDispatcher a

Re: getRequestURI() returns query parameters for path="/submit.do?my=Update

2009-05-15 Thread mule_user
only when I use forward in Struts and append query string in the path of forward in struts-config.xml. As such, my question is; is this the expected behavior in Struts 1.1 to also append the query string; when getRequestURI is alled? mule_user wrote: > > In WebSphere 5.1 test server for Stru

getRequestURI() returns query parameters for path="/submit.do?my=Update

2009-05-14 Thread mule_user
According to specification, getRequestURI() should not return the query string my=Update. According to specification, getRequestURI() should only return /MyProjWeb/submit.do. Is it correct behavior for Struts to return query string also path is appended with query string? Please note that the same

Re: How to set base context path?

2009-02-05 Thread Dave Newton
David C. Hicks wrote: ChadDavis wrote: "Harvey" is nice though. Great movie. There's a scene with this slightly chubby lady singing that cracks me up completely. Amazing, but you're the first person I've encountered who got the reference to the movie. I had to explain it to everyone else

Re: How to set base context path?

2009-02-05 Thread David C. Hicks
Most excellent! I just served that up to the team on our chat channel. They're lovin' it. ChadDavis wrote: You want this one: http://www.imdb.com/title/tt0042546/ On Thu, Feb 5, 2009 at 3:14 PM, Musachy Barroso wrote: Ah, now you made curious... musachy On Thu, Feb 5, 2009 at 5:13 PM

Re: How to set base context path?

2009-02-05 Thread ChadDavis
You want this one: http://www.imdb.com/title/tt0042546/ On Thu, Feb 5, 2009 at 3:14 PM, Musachy Barroso wrote: > Ah, now you made curious... > > musachy > > On Thu, Feb 5, 2009 at 5:13 PM, David C. Hicks wrote: >> >> ChadDavis wrote: >>> >>> "Harvey" is nice though. Great movie. There's a sce

Re: How to set base context path?

2009-02-05 Thread Musachy Barroso
Ah, now you made curious... musachy On Thu, Feb 5, 2009 at 5:13 PM, David C. Hicks wrote: > > ChadDavis wrote: >> >> "Harvey" is nice though. Great movie. There's a scene with this >> slightly chubby lady singing that cracks me up completely. >> > > Amazing, but you're the first person I've en

Re: How to set base context path?

2009-02-05 Thread David C. Hicks
ChadDavis wrote: "Harvey" is nice though. Great movie. There's a scene with this slightly chubby lady singing that cracks me up completely. Amazing, but you're the first person I've encountered who got the reference to the movie. I had to explain it to everyone else - the magical, invisi

Re: How to set base context path?

2009-02-05 Thread ChadDavis
"Harvey" is nice though. Great movie. There's a scene with this slightly chubby lady singing that cracks me up completely. On Thu, Feb 5, 2009 at 3:00 PM, David C. Hicks wrote: > I think we've got the problem solved now. One of the developers found that > in one

Re: How to set base context path?

2009-02-05 Thread David C. Hicks
I think we've got the problem solved now. One of the developers found that in one case the path was actually hard-coded in a JSP. Ugh! We also had not provided a namespace for our struts package, and so apparently it was defaulting to the package name. Just little details that get

Re: How to set base context path?

2009-02-05 Thread ChadDavis
> 2) Is it possible to not have to have the base path defined in Struts at > all? It seems to me that this would be the ideal solution. If you deploy the app as the root app in the servlet container, then your struts namespaces are essentially doing this. I think the net effect is what y

Re: How to set base context path?

2009-02-05 Thread Musachy Barroso
> 1) How would I go about changing that base context path "/harvey" into > "/somethingelse"? It depends on the container that you are using > 2) Is it possible to not have to have the base path defined in Struts at > all? It seems to me that this would be the

How to set base context path?

2009-02-05 Thread David C. Hicks
ard to this. 1) How would I go about changing that base context path "/harvey" into "/somethingelse"? 2) Is it possible to not have to have the base path defined in Struts at all? It seems to me that this would be the ideal solution. Thanks, Dave ---

RE: get file path from FormFile

2008-12-17 Thread Givler, Eric
, why copy it again, especially if it's big - it just adds another step. -Original Message- From: Dave Newton [mailto:newton.d...@yahoo.com] Sent: Wednesday, December 17, 2008 12:52 PM To: Struts Users Mailing List Subject: RE: get file path from FormFile It hardly seems necessary

RE: get file path from FormFile

2008-12-17 Thread Dave Newton
It hardly seems necessary to make a framework change when you can just write the file. --- On Wed, 12/17/08, Givler, Eric wrote: > From: Givler, Eric > Subject: RE: get file path from FormFile > To: "'Struts Users Mailing List'" > Date: Wednesday, December

RE: get file path from FormFile

2008-12-17 Thread Givler, Eric
) { String path = null; Class formClass=CommonsMultipartRequestHandler.CommonsFormFile.class; Field fileItemField = formClass.getDeclaredField("fileItem"); fileItemField.setAccessible(true); Object o = fileItemField.get( file ); if ( o instanceof Defau

Re: Invalid path was requested

2008-12-16 Thread laredotornado
Thanks for your example. It helped me realize that when I edited my path so that it was relative to the context path of my app, instead of cutting and pasting everything after the domain, everything worked just fine. - Dave Paweł Wielgus wrote: > > Hi Dave, > i have almost the same

Re: get file path from FormFile

2008-12-16 Thread elyes sallem
Elyes 2008/12/16 Nils-Helge Garli Hegvik > So... are you: > > 1) Trying to upload a file to the server? > 2) Trying to send a file the browser? > 3) Both? > > If 1) See if http://wiki.apache.org/struts/StrutsFileUpload can help. > If your API only accepts a file pat

Re: get file path from FormFile

2008-12-16 Thread Nils-Helge Garli Hegvik
So... are you: 1) Trying to upload a file to the server? 2) Trying to send a file the browser? 3) Both? If 1) See if http://wiki.apache.org/struts/StrutsFileUpload can help. If your API only accepts a file path, save the file as a temp file locally on the server. If 2) The solution has been

Re: get file path from FormFile

2008-12-16 Thread Dave Newton
--- On Tue, 12/16/08, elyes sallem wrote: > to avoid any confusion, Too late! > 1- i have data in a file, so through the formfile, i get > the file path (now i make the test locally, but after it > will be deployed on a server) and i load this data in a > database, depending on

Re: get file path from FormFile

2008-12-16 Thread elyes sallem
to avoid any confusion, all i want to do is that : 1- i have data in a file, so through the formfile, i get the file path (now i make the test locally, but after it will be deployed on a server) and i load this data in a database, depending on the file's meta data, and its content 2- i allo

Re: get file path from FormFile

2008-12-16 Thread Nils-Helge Garli Hegvik
t;> after this (so as a constraint, i can't modify the class in >> this jar) > > So... you're *uploading* a file to the server (from the user of the browser > to the web application)??? Then you need to save the FormFile locally and use > *t

Re: get file path from FormFile

2008-12-16 Thread Dave Newton
ile to the server (from the user of the browser to the web application)??? Then you need to save the FormFile locally and use *that* path when you call your library methods. Dave - To unsubscribe, e-mail: user-unsubscr...@strut

Re: get file path from FormFile

2008-12-16 Thread elyes sallem
e user. > > Nils-H > > On Tue, Dec 16, 2008 at 12:24 PM, elyes sallem > wrote: > > Hello, > > after publishing this question, i conclude that it is not possible de get > > back the absolute path from FormFile > > but the problem is that i import a jar file, in

Re: get file path from FormFile

2008-12-16 Thread Robert Graf-Waczenski
ou get *EXACTLY* the behavior you desire. No applet. No fumbling around with FormFile properties. No file upload. Robert elyes sallem wrote: Hello, after publishing this question, i conclude that it is not possible de get back the absolute path from FormFile but the problem is that i import a j

Re: get file path from FormFile

2008-12-16 Thread Dave Newton
--- On Tue, 12/16/08, elyes sallem wrote: > after publishing this question, i conclude that it is not > possible de get back the absolute path from FormFile but > the problem is that i import a jar file, in which i call > a method that accept only path of file so what do you propo

Re: get file path from FormFile

2008-12-16 Thread Nils-Helge Garli Hegvik
be downloaded by the user. Nils-H On Tue, Dec 16, 2008 at 12:24 PM, elyes sallem wrote: > Hello, > after publishing this question, i conclude that it is not possible de get > back the absolute path from FormFile > but the problem is that i import a jar file, in which i call a

get file path from FormFile

2008-12-16 Thread elyes sallem
Hello, after publishing this question, i conclude that it is not possible de get back the absolute path from FormFile but the problem is that i import a jar file, in which i call a method that accept only path of file so what do you propose, i get the inputstream , then i create temporarly a file

Re: Invalid path was requested

2008-12-15 Thread Paweł Wielgus
us. 2008/12/15 laredotornado : > > 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&a

Invalid path was requested

2008-12-15 Thread laredotornado
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));

No action instance for path [/path] could be created

2008-12-08 Thread Evert Lammerts
ica versa using: and The links do work - they do load the other JSP - but also generate the following error: ERROR [RequestProcessor:296] No action instance for path /my/namespace/submit/view could be created java.lang.NullPointerException Why is this happening, can anybody explain?

Re: Get path to the webapp

2008-08-13 Thread Dave Newton
--- On Wed, 8/13/08, Struts Two wrote: > Assuming you have a file named "test.txt" at the > root of your webapp, you can get the absolute path name to > the file with the following code snippet in ur interceptor. >     ActionContext context = actionInvocatio

Re: Get path to the webapp

2008-08-13 Thread Struts Two
Assuming you have a file named "test.txt" at the root of your webapp, you can get the absolute path name to the file with the following code snippet in ur interceptor.     ActionContext context = actionInvocation.getInvocationContext();     HttpServletRequest request = (HttpServ

Re: Get path to the webapp

2008-08-12 Thread Paul Benedict
Vasyl, The attempt is very iffy. Some things you need to know: 1) No Servlet API provides the path to your files. 2) If running in a WAR file that is never expanded, there will be no such file directory that will exist. 3) You can use the classloader of the web context to get the root of your

Get path to the webapp

2008-08-12 Thread Vasyl Skrypij
Hi all I have Struts 2.0.9 I need to get the path to the directory in which my web application is situated during interceptor's asking. How can I do this been using ActionInvocation class object which passes into intercept method, or maybe i should try some other way? -- View this messa

Re: question about acton path

2008-07-08 Thread Lukasz Lenart
Maybe this will help, inside execute() request.getRequestURI() or request.getContextPath() + "/" + mapping.getModuleConfig().getPrefix() + "/" + mapping.getPath()); Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscrib

Re: question about acton path

2008-07-08 Thread shrimpywu
and i forgot to say that i am useing struts 1 shrimpywu wrote: > > hi guys, > if i can get the actionform, > how can i get the action path > > u know, for the page, we have to specify a path for the page in the > struts-config > > so that we can use that path >

question about acton path

2008-07-08 Thread shrimpywu
hi guys, if i can get the actionform, how can i get the action path u know, for the page, we have to specify a path for the page in the struts-config so that we can use that path /mywebsit/mymodule/myform.do to visit a page for some reason from development side, i want to know this path

Re: How to get Web Application path at Run-Time

2008-07-02 Thread Lukasz Lenart
> I am developing a web application using the struts 2 framework. In one > of the actions, I need to create a file at the run-time at a particular > location relative to the path where my web-application is deployed. How > can I retrieve the path at which my Web-app is deployed at run-

Re: How to get Web Application path at Run-Time

2008-07-02 Thread Paweł Wielgus
s 2 framework. In one > of the actions, I need to create a file at the run-time at a particular > location relative to the path where my web-application is deployed. How > can I retrieve the path at which my Web-app is deployed at run-time in > my action class? > > > > An

  1   2   3   4   5   6   >