Hi,
You can get any resource path wich is under context path using
ServeletContext.getRealPath().
The usage of this method is here,
String iniFilePath =
request.getSession().getServletContext().getRealPath("test.ini");
you can use the 'iniFilePath' to instatiate FileOutStream, and
Hi all,
I have this web app that allows user to change the config (.ini) file via a
form. When the user submits the form, it goes into the action class and the
action class is supposed to update the ini file accordingly.
The ini file is lumped together with my action class.
FileInputStream in =
Please keep discussion on the mailing list, so others have the chance
to respond and/or benefit. Comments in-line:
On 5-Dec-06, at 8:51 AM, Sridhar Raman wrote:
This is how the the getter and setter of the category property
looks like:
public void setCategory(String[] category)
{
th
The snapshot you're using may still use the parameter name
'definitions-config' instead of org.apache.tiles.DEFINITION_CONFIG
Grr. . .lesson learned, don't release with a snapshot!
Dave Newton wrote:
From: David H. DeWolf [mailto:[EMAIL PROTECTED] On Behalf Of David H.
What stack trace and/or
The trick is to use the target="xx" parameter in the generated
tag. Try something like this: In your jsp you will have . In your struts-config you will
have
http://struts.apache.org/1.2.7/userGuide/struts-html.html#link
http://www.onjava.com/pub/a/onjava/2002/10/30/jakarta.html?page=3
-ed
On
Did you try adding a public Map getChecklistItemNoteIds() method to your
form bean, and access it with the JSTL syntax Paul provided?
L.
Gundersen, Richard wrote:
Hi
Thanks for replying. I have tried that actually and it didn't work. In
fact that particular example wont work for me unfortunat
Hello, Strusters !
My question is quite simple. As you should have guessed : is there a way, in
Struts / Tomcat to display a JSP, not in the main browser window but rather
in a pop-up window ?
This would but great for confirm requests, errors displaying and such.
Regards,
Pierre
--
"L'une de
I'm developping a new web app with struts 2 using eclipse and I would like
to organize my code like I am used to do with struts 1.
I mean putting Interfaces, beans, actions in separate folders/packages.
It seems impossible to add a package/source floder under the main packages
given with example a
On 12/5/06, Thom Burnett <[EMAIL PROTECTED]> wrote:
I need to set up my first page with a sequence of database interactions
before the execute() method is called (I think). What's the recommended
struts way of doing so.
All requests go through the controller, never straight to the JSP.
Once t
Hi,
I'm developping a new web app with struts 2 using eclipse and I would like
to organize my code like I am used to do with struts 1.
I mean putting Interfaces, beans, actions in separate folders/packages.
It seems impossible to add a package/source floder under the main packages
given with exam
Look at org.apache.struts.tiles.Controller
I couldnt find a decent example though.
Here is an article.
http://www.theserverside.com/tt/articles/article.tss?l=Tiles101
That of course means that you will have to use Tiles.
-Original Message-
From: Thom Burnett [mailto:[EMAIL PROTECTED]
Se
How are you inserting your XML/HTML into the JSP?
I don't think the filter method is causing your problem. I think you're
not expressing that the output should not be filtered. If you're using
you might want to add 'escapeXml="false"', for example.
> -Original Message-
> From: Hehl, Th
Actually org.apache.struts.tiles.Controller is called just before the tile is
inserted, and that would be after the action forwards to the JSP.That may not
satisfy your requirement.
-Original Message-
From: Asthana, Rahul [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 05, 2006 3:13 PM
Could it be done in a regular Custom Tag?
> -Original Message-
> From: Thom Burnett [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 05, 2006 2:59 PM
> To: Struts Users Mailing List
> Subject: The first request
>
> I need to set up my first page with a sequence of database
> interac
I need to set up my first page with a sequence of database interactions
before the execute() method is called (I think). What's the recommended
struts way of doing so.
When a first request to my jsp page arrives, I need to read some key
parameters of the request, contact my database, and then fi
From: Rick Schumeyer [mailto:[EMAIL PROTECTED]
> On the other end, I have a jsp page that displays the result. I know
> that the jsp can access beans using tags like logic:iterate and
> bean:write.
I would just use JSTL c:forEach with the list in scope.
In general I avoid the S1 tags except the
From: David H. DeWolf [mailto:[EMAIL PROTECTED] On Behalf Of David H.
> What stack trace and/or specific error message do you get?
No exception, just the startup message saying that it couldn't find the
definition in the web.xml so it's looking for tiles.xml.
I'll wait until the 2.0.2 drop; I bel
I'm slowly improving with struts, but have a basic question.
I query a database using hibernate, which returns a List.
On the other end, I have a jsp page that displays the result. I know
that the jsp can access beans using tags like logic:iterate and bean:write.
(Here is the dumb question:
On 12/5/06 11:29 AM, "walidito" <[EMAIL PROTECTED]> wrote:
>
> Hi, I have a problem with aligning my form's fields to the right using struts
> 2.
> Here is my code :
>
>
>
>
> I have tried requiredposition="right" and the "size" attritbute, but it
> doesn't work neither.
>
> Could sbdy help
On 12/5/06 12:25 PM, "Mark Shifman" <[EMAIL PROTECTED]> wrote:
> 2. The textfield seems to get a String[] rather than a String and I
> don't have any idea how to do it differently.
I don¹t know if you can do this because I've never really worked with Struts
1. Can you make the Map in your form a
Dave Newton wrote:
From: David H. DeWolf [mailto:[EMAIL PROTECTED] On Behalf Of David H.
Yes, the context init parameter org.apache.tiles.DEFINITION_CONFIG
takes a comma separated list of files/resources.
org.apache.tiles.DEFINITION_CONFIG
/WEB-INF/tiles.xml,/WEB-INF/tiles-foo.xml
i've use sysdeo plugin in debug mode time ago, but IMHO wtp has better
integration with eclipse.
I don't remember if sysdeo can debug jsps, but wtp does.
Checkout a new eclipse with WTP and tell us.
El mar, 05 de 12 de 2006 a las 18:57, Jared Blitzstein escribió:
> I honestly didn't even know t
Hi all,
I'm using struts 1.2.7 with commons-validator 1.1.4
I've this DynaValidatorActionForm which has the following properties:
I have the corresponding rules defined:
minlength
I honestly didn't even know the sysdeo plugin still worked, I thought
it died out a while ago. Like Jorge said, look into moving to WPT, it
has it built in already.
http://www.eclipse.org/webtools/
On Dec 5, 2006, at 12:52 PM, Lim Hock-Chai wrote:
I'm able to access my computer at home to
I'm able to access my computer at home to know the version yet. Sees
like there might be a problem with Eclipse. See link below:
http://www.eclipseplugincentral.com/PNphpBB2-printview-t-1244-start-0.ht
ml
-Original Message-
From: Jared Blitzstein [mailto:[EMAIL PROTECTED]
Sent: Tuesday
Nope. This is a struts 2 thing and I'm on 1.2.x.
-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 05, 2006 11:21 AM
To: Struts Users Mailing List
Subject: Re: Filter problem
Hi Thomas-
Perhaps an implementation where you register your own listener
Some folks may be as pig-headed as me or may need to use LazyDynaBeans
as they are translating
from struts1 to struts2. After fooling around, I figured it out but it
is pretty clear to me this is not the way to go.
Below is a simple example.
public final class MyAction extends ActionSupport im
What version of everything are you using?
On Dec 5, 2006, at 12:05 PM, Lim Hock-Chai wrote:
When I try to debug my application by starting tomcat using tomcat
eclipse plug-in, eclipse keeps telling me that it can not find the
source.
I'm not sure if there is a setting problem in eclipse, tomca
Try to use wtp from eclipse. Remember to start tomcat in debug mode.
http://www.eclipse.org/webtools/
El mar, 05 de 12 de 2006 a las 18:05, Lim Hock-Chai escribió:
> When I try to debug my application by starting tomcat using tomcat
> eclipse plug-in, eclipse keeps telling me that it can not fin
When I try to debug my application by starting tomcat using tomcat
eclipse plug-in, eclipse keeps telling me that it can not find the
source.
I'm not sure if there is a setting problem in eclipse, tomcat or struts.
Can somebody give me some pointer?
thanks.
I am currently using dispatchaction with good success however I recently
encountered a situation that I hope someone has a suggestion for.
I am implementing dependent drop down lists in one of my pages. I would like to
use the onchange attribute with the html:select tag.
My question is wha
Hi, I have a problem with aligning my form's fields to the right using struts
2.
Here is my code :
I have tried requiredposition="right" and the "size" attritbute, but it
doesn't work neither.
Could sbdy help please?
thanks in advance
--
View this message in context:
http://www.nabble.com/
Well, I got it working defining the 'pgList' attribute at top level
(in the 'standard' definition) and using 'importAttribute' in the
standard layout page to put it into the request scope, for the
'multiPane' content page to use it.
IMHO, it is a bit annoying to have do define it for all pages de
Hi Thomas-
Perhaps an implementation where you register your own listener
(example located at)
http://struts.apache.org/2.x/docs/can-we-access-an-actions-result.html
Anyone else?
M-
This e-mail communication and any attachments may contain confidential and
privileged information for the use of
From: David H. DeWolf [mailto:[EMAIL PROTECTED] On Behalf Of David H.
> Yes, the context init parameter org.apache.tiles.DEFINITION_CONFIG
> takes a comma separated list of files/resources.
org.apache.tiles.DEFINITION_CONFIG
/WEB-INF/tiles.xml,/WEB-INF/tiles-foo.xml
Like that? Start
See inline comments...
Jean-Baptiste Lièvremont ha scritto:
* File: /WEB-INF/tiles-defs.xml
File: /WEB-INF/tiles/multiPane/content.jsp
http://www.w3.org/1999/xhtml";
xmlns:jsp="http://java.sun.com/JSP/Page";
xmlns:html="/tags/struts-html"
xmlns
On 12/5/06, Sakari Isoniemi <[EMAIL PROTECTED]> wrote:
Where detailed tag desc ( http://struts.apache.org/2.x/tagreference.html )
can be downloaded ?
I didn't found this information from struts-2.0.1-docs.zip (2006-11-06)
That looks like it was generated by the Maven Taglib Plugin. It's
da
It's a NoClassDef. It's referencing a package I don't have. Am I
supposed to have that there or is that supposed to be in the core
libraries?
2006-12-05 10:08:05 StandardContext[/struts2]Error configuring
application listener of class
org.apache.struts2.tiles.StrutsTilesListener
java.lan
OK, I've collided with struts over an issue and would like to know if people
have suggestions on how to solve.
I am reading stuff from an XML file and building parts of my UI from for use
in a JSP. I thought it would be good for some of them to have HTML markup in
them, so I put <, etc in the html
Hi,
I'm using tiles component in my .jsp page (eg. main.jsp). It is a poll
component, which user can submit the vote.
Commons validator framework is used to validate the poll submission.
When the validation failed on the tiles component, the tiles component's jsp
(e.g. poll.jsp) is showed, instea
Great to hear, thanks for the update! Docs definitely need to be
flushed out. Once we get the TLP resolution finalized, we should have
some more cycles to get this thing documented and out the door :)
David
Dave Newton wrote:
Yes, the context init parameter org.apache.tiles.DEFINITION_CONF
Pierre Goupil wrote:
Ho yes ! Here's a clean way to fill a map in a JSP ! By clean, I mean
without a scriptlet that a Web developper wouldn't understand. Great !
I doubt whether web developer with no programming background would
understand JSTL solution either...
--
Mikolaj Rydzewski <[EMAIL P
Hi all again, and thank you for the fast support ! ^ ^
link
Ho yes ! Here's a clean way to fill a map in a JSP ! By clean, I mean
without a scriptlet that a Web developper wouldn't understand. Great !
This is something t
> Yes, the context init parameter org.apache.tiles.DEFINITION_CONFIG
> takes a comma separated list of files/resources.
>
> Are you having issues with it or just couldn't find the documentation
> for it? Either way, enter a bug for it in jira so that we can get it
> resolved (even if it's a docum
Hi i have a question about validators (struts2), i was using fileld
validator, and when i have an error (filling some filed) the error appears
on top of the input box, now i change to visitor validator and the erros all
appear in the top of the page.
Anyone knows why is happening this, only changin
Hi folks,
I am using Tiles with Struts 1.2.9. I have a 'standard' JSP defining
the global layout used by all pages, as in the snippets below:
#
* File: /WEB-INF/tiles-defs.xml
#
* File: /WEB-INF/tiles/standard.jsp
http://www.w3.org/1999/xhtml
David H. DeWolf ha scritto:
Just to avoid confusion, I don't think Antonio meant to imply that the
Container.render returns a ComponentContext.
Err... right, my confusion was due to wrong cut'n'paste :-)
And the confusion continues, since I posted the same email to Struts
Developers list...
A
Yes, the context init parameter org.apache.tiles.DEFINITION_CONFIG takes
a comma separated list of files/resources.
Are you having issues with it or just couldn't find the documentation
for it? Either way, enter a bug for it in jira so that we can get it
resolved (even if it's a documentation
Start here, it doesn't get much clearer than this, and google for
unfamiliar terms: http://www.learntechnology.net/struts-lesson-1.do
On 12/5/06, Jagaran Bubai Das <[EMAIL PROTECTED]> wrote:
I hav done that...
but how to install and run the sample application i am not clear..
it would be gre
Moving to Struts Users list, please reply there.
Antonio Petrelli wrote:
First of all this is a typical question to be submitted in Struts Users
mailing list.
Anyway, since Tiles 2 is under development, I will answer anyway.
Stone, Sam ha scritto:
I can instantiate the DefinitionsFactory. I c
Howdy,
Is it possible to split up tile definition files using the startup
listener under S2?
Thanks,
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi All,
Am trying to display a radio button according to the value in the
database.
The way am trying is ...
<%=TIMKeys.IM_ACTIVE_STATUS%>
<%=TIMKeys.IM_INACTIVE_STATUS%>
Where detailed tag desc ( http://struts.apache.org/2.x/tagreference.html )
can be downloaded ?
I didn't found this information from struts-2.0.1-docs.zip (2006-11-06)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additi
Hi i have a question about validators (struts2), i was using fileld
validator, and when i have an error (filling some filed) the error appears
on top of the input box, now i change to visitor validator and the erros all
appear in the top of the page.
Anyone knows why is happening this, only changin
I hav done that...
but how to install and run the sample application i am not clear..
it would be great if could get some simple steps and some simple application
"Narayanaswamy, Mohan" <[EMAIL PROTECTED]> wrote:
First download the struts from http://struts.apache.org/downloads.html
and pl
org.apache.commons.dbcp.BasicDataSourceFactory we are using JNDI data
source and it is configured in server.xml file
in web.xml; we have configured as
Oracle Datasource
jdbc/ORA_IPRICE
javax.sql.DataSource
Container
Apache-Axis
..
Hi Chandra How are uu and how is ur life?
May i know what Open Source Technologies u are using now?
With Best Regards,
I.Hari krishna.
--
Franklin Templeton Investments(FTT-CInternet)
First download the struts from http://struts.apache.org/downloads.html
and play with the sample programs.
-Original Message-
From: Jagaran Bubai Das [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 05, 2006 5:38 PM
To: user@struts.apache.org
Subject: NEW t oStruts
Hi,
Please let me kn
First download the struts from http://struts.apache.org/downloads.html
and play with the sample programs.
-Original Message-
From: Jagaran Das [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 05, 2006 5:04 PM
To: user@struts.apache.org
Subject: Query
Hi all,
How to install a simple
Hi,
This is something to do with url rewriteing and how the session is handleing
happens on your server.., tag will do the proper url re-writeing
according to my understanding.. so i dont think there would be any issue in
that, i am not sure plese try it and see..
Regards,
Nuwan
- Orig
Pierre Goupil wrote:
Yes, of course, but it seems that doign things this way, you loose all
other
parameters of the request like, in particular, the jsessionid. Am I
right or
wrong ?
Wrong. c:url rewrites url if necessary. Unfortunately it's not xhtml
aware and will produce & as param separato
Hi again !
Yes, of course, but it seems that doign things this way, you loose all other
parameters of the request like, in particular, the jsessionid. Am I right or
wrong ? If right, is there a workaround ?
Regards,
Pierre
eg:
My Link
Thanks,
Nuwan
--
"L'une des raisons pour les
Hi,
Please let me know what is right point to start off with Struts.
Please point me to a good tutorial to start off.
Thanks in Advance
Jagaran
-
Find out what India is talking about on - Yahoo! Answers India
Send FR
Hi all,
How to install a simple application in Struts?
I am new to this field.
Please let me know what is good way to start exploring STRUTS.
Thanks in Advance
Jagaran
CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION
Pierre Goupil wrote:
http://localhost/myApp/myAction.do?type=2&id=12
Of course, I could use a Map from my bean. But the problem is that, in my
case, the bean have no way to know which value to give to the JSP :
it's the
JSP and it only who knows the values...
link
--
Mikolaj Rydzewski <[E
If you are using an ActionForm, you could modify your getter to do the
formatting. Or, have an additional getter method e.g.
Double amount;
Double getAmount() {
// bog standard method
}
String getFormattedAmount() {
// do some formatting
}
Then, in the form, do something like
Hi
Thanks for replying. I have tried that actually and it didn't work. In
fact that particular example wont work for me unfortunately because my
property isn't part of a map inside a DynaActionForm - it's just a
normal member variable of a class that extends ActionForm.
I don't think the problem
Hi,
Is there a way display numbers in a text field in a
formatted way.
For example I want to display 100 as 1,000 in a text
field.
My form field attribute type is Double.
Thanking You,
Chamal.
Do you Yahoo
68 matches
Mail list logo