Re: Ready-made function somewhere to escape HTML?

2006-08-17 Thread Laurie Harper

Scott Van Wart wrote:

Frank W. Zammetti wrote:

Hi Scott... have a look at the ResponseHelpers class in Java Web Parts:

http://javawebparts.sourceforge.net

More precisely:

http://javawebparts.sourceforge.net/javadocs/index.html

The encodeEntities() method should do the trick.


Ahh... that class name you mentioned made me think of a class I saw 
while stepping through some code... I think 
org.apache.struts.util.ResponseUtils#filter will do the trick :).


If you want to escape the user-entered data at render time (i.e. when 
you display it), that's already supported by various output-related tags 
(c:out, bean:write, etc.) Escaping at render time is the usual approach, 
since it protects you against malicious inputs from other sources (e.g. 
SQL injection, bad database imports, etc.) I'm not aware of any 
'standard' facilities for doing this to the user's input at submit-time, 
though; if you want to do that, the ResponseUtils.filter() method is 
probably your best bet.


L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ready-made function somewhere to escape HTML?

2006-08-17 Thread Scott Van Wart

Frank W. Zammetti wrote:

Hi Scott... have a look at the ResponseHelpers class in Java Web Parts:

http://javawebparts.sourceforge.net

More precisely:

http://javawebparts.sourceforge.net/javadocs/index.html

The encodeEntities() method should do the trick.


Ahh... that class name you mentioned made me think of a class I saw 
while stepping through some code... I think 
org.apache.struts.util.ResponseUtils#filter will do the trick :).


Thanks,
 Scott


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ready-made function somewhere to escape HTML?

2006-08-17 Thread Frank W. Zammetti
Hi Scott... have a look at the ResponseHelpers class in Java Web Parts:

http://javawebparts.sourceforge.net

More precisely:

http://javawebparts.sourceforge.net/javadocs/index.html

The encodeEntities() method should do the trick.

Frank

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
 (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

On Thu, August 17, 2006 5:14 pm, Scott Van Wart wrote:
> Hello,
>
> I have user-entered input managed by a few custom tags (Java classes,
> not tag files), and I need to encode this stuff to escape any special
> HTML characters the user might type.  Is there a special one in Struts I
> can/should use, or should I write my own? (Struts 1.2.9, Tomcat 5.5.17)
>
> - Scott
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2

2006-08-17 Thread Ted Husted

On 8/17/06, Peter Steil <[EMAIL PROTECTED]> wrote:

Hi, I am trying to get started on Struts2 using the nightly build 
'struts2-core-2.0.0-SNAPSHOT-20060816.jar'. I started with the very basic 
example from 'http://cwiki.apache.org/WW/hello-world.html'


There were several problems with the code on that page. I fixed the
page and checked the working code into a sandbox application, for
reference.

* 
http://svn.apache.org/viewvc/struts/sandbox/trunk/mailreader-course/struts2/hello/src/

HTH, Ted.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Question about Lookup dispatch action

2006-08-17 Thread Scott Van Wart

Christopher Goldman wrote:

On Thu, 2006-08-17 at 14:26 -0700, mosho wrote:
  

Hi All,

I have multiple buttons on my form and I am using LookUpDistpatchAction to
submit the form depending on which button is clicked.

I have another requirement now, I have multiple images that are going to be
links. I need to submit the form using onclick.

So in my javascript, I will have to submit the form. How can I change/ set
the  value for my parameter?

It is giving me error:
Request[/selectLocation] does not contain handler parameter named navigation

Thanks for your help,



In your onclick handler for the images, change the (presumably) hidden
form input field value:

  document.forms["form-name"].elements["navigation"].value = "new-value"

Then, submit the form.

This is in Firefox.  Looks like it works for IE as well.

Not really a Struts question -- just straight Javascript...
  

Doesn't he need to match up the message resource values, like if he had,

 protected Map getKeyMethodMap() {
   Map map = new TreeMap();
   map.put( "form.create", "create" );
   return map;
 }

Then it would take a little trickery in the JSP to get the right values 
in the Javascript:



 


So the web browser passes the correct value, and the lookup map will work:

function onClickCreate() {
 document.someForm.action.value = "${createLabel}";
 document.someForm.submit();
}

That should do it I think...

- Scott


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Question about Lookup dispatch action

2006-08-17 Thread Christopher Goldman
On Thu, 2006-08-17 at 14:26 -0700, mosho wrote:
> Hi All,
> 
> I have multiple buttons on my form and I am using LookUpDistpatchAction to
> submit the form depending on which button is clicked.
> 
> I have another requirement now, I have multiple images that are going to be
> links. I need to submit the form using onclick.
> 
> So in my javascript, I will have to submit the form. How can I change/ set
> the  value for my parameter?
> 
> It is giving me error:
> Request[/selectLocation] does not contain handler parameter named navigation
> 
> Thanks for your help,

In your onclick handler for the images, change the (presumably) hidden
form input field value:

  document.forms["form-name"].elements["navigation"].value = "new-value"

Then, submit the form.

This is in Firefox.  Looks like it works for IE as well.

Not really a Struts question -- just straight Javascript...

Chris

-- 
Christopher D. Goldman
[EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: RE: Struts2

2006-08-17 Thread David Friedman
In your web.xml file, what are you servlet mappings and the URLs they are
mapped to?  Are you sure it is not /helloWorld.action that you need to reach
over the web?  WW (Struts2's core code) used to have the *.action convention
instead of *.do for servlet mapping.  Again, your web.xml file should have
it if you show us the relevant servlet mappings.

Regards,
David


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Question about Lookup dispatch action

2006-08-17 Thread mosho

Hi All,

I have multiple buttons on my form and I am using LookUpDistpatchAction to
submit the form depending on which button is clicked.

I have another requirement now, I have multiple images that are going to be
links. I need to submit the form using onclick.

So in my javascript, I will have to submit the form. How can I change/ set
the  value for my parameter?

It is giving me error:
Request[/selectLocation] does not contain handler parameter named navigation

Thanks for your help,





-- 
View this message in context: 
http://www.nabble.com/Question-about-Lookup-dispatch-action-tf2124092.html#a585
Sent from the Struts - User forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2

2006-08-17 Thread Ted Husted

The default extension for Struts2 is "action". The default makes it
easier to use both Struts 1 and Struts 2 in the same web applications.

To change the default to ".do", add a "struts.properties" file under
classes with the line

struts.action.extension = do

A good starting point is the Struts 2 MailReader application.
Unfortunately, the nightly build doesn't bundle the source, so the
best thing might be to check out the source from Subversion.

* http://struts.apache.org/downloads.html#Source_Code

I'll be updating the wiki tutorials next week with additional
material, adopted from the MailReader Training course.

-Ted.


On 8/17/06, Peter Steil <[EMAIL PROTECTED]> wrote:

Hi, I am trying to get started on Struts2 using the nightly build 
'struts2-core-2.0.0-SNAPSHOT-20060816.jar'. I started with the very basic 
example from 'http://cwiki.apache.org/WW/hello-world.html' and I still get the 
message 'The requested resource (/mystruts/helloWorld.do) is not available.' in 
my browser. My web.xml looks like this:


http://java.sun.com/dtd/web-app_2_3.dtd";>


  My Application
  
action2
org.apache.struts2.dispatcher.FilterDispatcher
  

  
action2
/*
  
  

org.springframework.web.context.ContextLoaderListener
  



Can anybody help me?
Thanks,
Peter
--


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Auto render form bean as hidden fields

2006-08-17 Thread Scott Van Wart

Laurie Harper wrote:

Scott Van Wart wrote:
We have a requirement that the user be prompted if any changes have 
been made on a form, and they try to navigate away.  I've divided 
this up 
Firstly, is the requirement to detect changes to the form compared to 
how it was last rendered, or compared to how it was *originally* 
rendered? I.e. do you have to be able to detect a difference in form 
state across multiple requests?
Originally rendered.  I need to render the hidden fields because it's a 
multi-user system, and I have other mechanisms that maintain 
concurrency--so by passing the fields back and forth as hidden, the 
process doesn't get disrupted by someone else changing it in the 
background (I can use my other methods of notifying the user that this 
has happened).
Even then, all you really need is a Javascript object containing 
key/value pairs describing each form property's starting value. You 
shouldn't need to worry about server-side data types, collections, or 
anything else; just 'form field X has value Y'.


There are a few things I need to worry about by design:
- Child items listed on a page, and their order.
- Multi-select dropdowns.
- Multiple checkboxes (this one actually wasn't as difficult as I 
thought it was going to be).
- Map-based nested beans (someForm.someChild(4).whatever--ahh, a simple 
key=value?  Nope, whatever is a multi-checkbox).


Right now I'm halfway through my implementation of generating a lot of 
stuff myself.  Rather than using beanutils, I just add a @NavPrompt 
annotation to each private member of my ActionForm that I want to 
track.  I've implemented basic ones (where I can just do 
document.form.whatever.value != "..."), multi-selects (with a helper 
method), multi-checkboxes (with a helper method), but I still need to do 
nested beans and map-based beans.


I decided to do it this way rather than simple key/value pairs to keep 
the JavaScript as simple as possible.  It's also possible that with 
better knowledge of JavaScript I could reduce the amount of framework I 
need to write on the server, but writing Java code is far more fun than 
learning--let alone writing--JavaScript IMHO :).


Thanks,
 Scott


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Re: Forwards between webapps

2006-08-17 Thread Mulligan, Scott H
I worked on a project a couple of years ago where I had the need to
forward between different web apps. Thanks to Craig McClanahan's advise
I was able to extend the RequestProcessor to do this. This was done in
Struts 1.1. Basically I set up specific forward name prefixes to
indicate when to switch web applications. When the request dispatcher
identifies one of these special prefixes it gets the context of the web
app and forwards the request. I have attached some sample code.
FYI...Craig warned me that some app servers have a switch that prohibits
or allows context sharing, but I did not have this problem in WebSphere.

/**
 * Forward or redirect to the specified destination, by the
specified
 * mechanism.  This method uses a ForwardConfig object instead of an
 * ActionForward.
 *
 * @param request The servlet request we are processing
 * @param response The servlet response we are creating
 * @param forward The ForwardConfig controlling where we go next
 *
 * @exception IOException if an input/output error occurs
 * @exception ServletException if a servlet exception occurs
 */
protected void processForwardConfig(HttpServletRequest request,
HttpServletResponse response,
ForwardConfig forward)
throws IOException,
ServletException
{
if (forward == null)
{
return;
}

/* Check to see if we need to forward between web
applications.
 * If so, we need to override how the Struts
RequestProcessor handles this.
 * If not, just call the standard Struts
RequestProcessor's processForwardConfig
 * method.
 */
if (forward.getName().startsWith("common_"))
{
systemLogger.debug("Forwarding to common
backend");
String strContext ="/webApp2/common.do";
getServletContext().getContext
(strContext).getRequestDispatcher

("/common.do").forward(request,response); 
return;
}
else if (forward.getName().startsWith("channel_"))
{
/* The parms object contains information about
where webApp2 should
 * return control.
 */
 
Parameters  parms   =
(Parameters)request.getAttribute(FrameworkConstants.PARMS);
String  strChannel  =
(String)parms.get(FrameworkConstants.RETURN_CHANNEL);
String  strAction   =
(String)parms.get(FrameworkConstants.RETURN_ACTION);
String  strMethod   =
(String)parms.get(FrameworkConstants.RETURN_METHOD);


getServletContext().getContext(strChannel).getRequestDispatcher
(strAction + "?method=" +
strMethod).forward(request,response); 
return;
}
else {
super.processForwardConfig(request, response,
forward);
}
}

Hope this helps,

Scott Mulligan


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Thursday, August 17, 2006 4:45 PM
To: user@struts.apache.org
Subject: Re: Forwards between webapps

Scott Van Wart wrote:
> Saeed, Rada wrote:
>> Forwards between webapps are not supported, cuz both have different 
>> contexts, this's what I got from running this :
>> > contextRelative="false" />
>> Is there any other way to achieve this forward between different web 
>> applications ?
>>   
> I think the class 'org.apache.struts.actions.SwitchAction' might do 
> the trick (struts-config.xml):
> 
>   type="org.apache.struts.actions.SwitchAction" />
> 
> And then in your JSP:
> 
>  To
> Portal
> 
> - Scott

SwitchAction helps for switching between Struts modules within the same
webapp, not for switching between different webapps, AFAIK. It's not
possible to *forward* from one webapp to another, but redirecting is
fine.

The OP's  declaration specifies a non-context-relative
redirect, which should result in a client-side (browser) redirect to the
specified URL on the same host/port.

Saeed, what happens when you try to use that forward? How is it failing
for you? It looks like it should work to me.

L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Ready-made function somewhere to escape HTML?

2006-08-17 Thread Scott Van Wart

Hello,

I have user-entered input managed by a few custom tags (Java classes, 
not tag files), and I need to encode this stuff to escape any special 
HTML characters the user might type.  Is there a special one in Struts I 
can/should use, or should I write my own? (Struts 1.2.9, Tomcat 5.5.17)


- Scott


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2.0 GA Production Ready Release

2006-08-17 Thread Ted Husted

Right now, some people are already using Struts 2 in production. The
code itself is sound and feature-complete. We mainly need to mop up
some infrastructure issues with the documentation, and a few loose
ends with the packaging.

If anyone is eager to get started, my best advice is to go with
WebWork 2.2 for now. The migration from WW2 to S2 is very gentle, and
mainly a matter of renaming packages.


-Ted.

On 8/17/06, Garner Shawn <[EMAIL PROTECTED]> wrote:

When is there going to be a Struts 2.0 GA Production Ready Release?
I was looking over it and it looks pretty cool.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts 2.0 GA Production Ready Release

2006-08-17 Thread Garner Shawn

When is there going to be a Struts 2.0 GA Production Ready Release?
I was looking over it and it looks pretty cool.


Shawn

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Auto render form bean as hidden fields

2006-08-17 Thread Laurie Harper

Scott Van Wart wrote:
We have a requirement that the user be prompted if any changes have been 
made on a form, and they try to navigate away.  I've divided this up 


Firstly, is the requirement to detect changes to the form compared to 
how it was last rendered, or compared to how it was *originally* 
rendered? I.e. do you have to be able to detect a difference in form 
state across multiple requests?



into sub tasks:
- Iterating through properties of a bean.
- Render properties as hidden fields.
- Render some JavaScript to check for modifications.

The last one's going to be the tough one, but it's manageable.  Before I 
start writing some custom tags, I was wondering if Struts or its 
dependent libs had any of this functionality already.  I'd likely need 
some type of property class, and a way of discerning, in JSP tags 
(preferable), if a property is nested, a collection, a boolean or a 
string.  I think those four types should cover it.  I've no problem 
writing the facility myself but I'd hate to duplicate work that's 
already there.


I'm not aware of any existing solution for this (though there may well 
be solutions out there), but it sounds like you're over-complicating things.


First, you can detect if any field in a form has changed without having 
reference values to compare against, provided you only need to know if 
they've changed since the form was rendered. The browser keeps track of 
that, so all you need to do is iterate through all form fields and query 
each one to find out if it's changed.


If the form might be submitted and redisplayed one or more times before 
final submit, and you want to compare the current state against the 
original state (before any submit and redisplay), *then* you'll need a 
way to represent the starting state of the form, and make your 
comparison against that.


Even then, all you really need is a Javascript object containing 
key/value pairs describing each form property's starting value. You 
shouldn't need to worry about server-side data types, collections, or 
anything else; just 'form field X has value Y'.


L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Forwards between webapps

2006-08-17 Thread Laurie Harper

Scott Van Wart wrote:

Saeed, Rada wrote:

Forwards between webapps are not supported, cuz both have different
contexts, this's what I got from running this :

Is there any other way to achieve this forward between different web
applications ?
  
I think the class 'org.apache.struts.actions.SwitchAction' might do the 
trick (struts-config.xml):


 

And then in your JSP:

 To 
Portal


- Scott


SwitchAction helps for switching between Struts modules within the same 
webapp, not for switching between different webapps, AFAIK. It's not 
possible to *forward* from one webapp to another, but redirecting is fine.


The OP's  declaration specifies a non-context-relative 
redirect, which should result in a client-side (browser) redirect to the 
specified URL on the same host/port.


Saeed, what happens when you try to use that forward? How is it failing 
for you? It looks like it should work to me.


L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: what's the c.tld in struts-el designed for?

2006-08-17 Thread Laurie Harper

Michael Cheung wrote:

Hi, all;

c.tld in struts-el is not support rtexprssion.
So every flag should be set via action.
I don't think it can finish any job in this style.

What's the taglib designed for? Should I use
c-rt.tld as default?


The 'rt' stands for 'runtime expression' (i.e. <%expr%>). The non-rt TLD 
disables runtime expressions, since you should prefer JSP EL (e.e 
${expr}) type expressions when using JSTL. You would only need to use 
the -rt variant if you have JSPs which are already using a lot of 
runtime expressions and you don't want to minimize the amount you have 
to change them to take advantage of JSTL.


L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RE: Struts2

2006-08-17 Thread Monkeyden

Hmmm, looks like that has changed in Struts2.  I don't know much about it as
of yet.  That error message says it's not defined in the DTD.  I'll shut my
big mouth now.

On 8/17/06, Peter Steil <[EMAIL PROTECTED]> wrote:


If I set the path, I get the following message in the browser:

file:/C:/tomcat-5.5.17/webapps/mystruts/WEB-INF/classes/struts.xml:9:72

com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFile
(XmlConfigurationProvider.java:678)

com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(
XmlConfigurationProvider.java:117)
   com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(
DefaultConfiguration.java:87)

com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
ConfigurationManager.java:46)
   org.apache.struts2.dispatcher.FilterDispatcher.doFilter(
FilterDispatcher.java:215)


Also, Tomcat logs the following:
SEVERE: Attribute "path" must be declared for element type "action". at
(null:9:
72)



 Original-Nachricht 
Datum: Thu, 17 Aug 2006 15:47:54 -0400
Von: Monkeyden <[EMAIL PROTECTED]>
An: "Struts Users Mailing List" 
Betreff: Re: RE: Struts2

> you need a path attribute for the action mapping.
>
> 
>
> On 8/17/06, Peter Steil <[EMAIL PROTECTED]> wrote:
> >
> > The exact same thing happens. I give you some more information. You
know
> > how my web.xml looks like. Here are the other files:
> >
> > struts.xml:
> > 
> >
> >  >"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
> >"http://struts.apache.org/dtds/struts-2.0.dtd";>
> >
> > 
> >   
> >
> >   
> > 
> > helloWorld.jsp
> >  
> >   
> > 
> >
> >
> > helloWorld.jsp:
> > ---
> >
> > <%@ taglib prefix="saf" uri="/tags" %>
> > 
> >   
> >Hello World
> >   
> > 
> >The message generated by my first Action is:
> >
> > 
> > 
> >
> >
> >
> > HelloWorld.java:
> > 
> >
> > import com.opensymphony.xwork2.Action;
> > import java.util.*;
> > import java.text.DateFormat;
> >
> > public class HelloWorld implements Action {
> >
> > private String message;
> >
> > public String execute() {
> >   message = "Hello, World!\n";
> >   message += "The time is:\n";
> >   message += DateFormat.getDateInstance().format(new Date());
> >
> >   return SUCCESS;
> > }
> >
> > public String getMessage() {
> >   return message;
> > }
> >
> > }
> >
> >
> >
> > Thanks,
> > Peter
> >
> >
> >  Original-Nachricht 
> > Datum: Thu, 17 Aug 2006 14:04:52 -0500
> > Von: [EMAIL PROTECTED]
> > An: user@struts.apache.org
> > Betreff: RE: Struts2
> >
> > > It looks like you're requesting a page with suffix mapping
> > > ("helloWorld.do") but you've configured struts to use prefix mapping
> > ("/*").  What happens
> > > if you change to "*.do"?
> > >
> > >  - George
> > >http://www.idiacomputing.com/
> > >
> > >
> > > > -Original Message-
> > > > From: Peter Steil [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, August 17, 2006 2:01 PM
> > > > To: user@struts.apache.org
> > > > Subject: Struts2
> > > >
> > > >
> > > > Hi, I am trying to get started on Struts2 using the nightly
> > > > build 'struts2-core-2.0.0-SNAPSHOT-20060816.jar'. I started
> > > > with the very basic example from
> > > > 'http://cwiki.apache.org/WW/hello-world.html' and I still get
> > > > the message 'The requested resource (/mystruts/helloWorld.do)
> > > > is not available.' in my browser. My web.xml looks like this:
> > > >
> > > > 
> > > >  > > > Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
> > > >
> > > > 
> > > >   My Application
> > > >   
> > > > action2
> > > >
> > > > org.apache.struts2.dispatcher.FilterDispatcher > > filter-class>
> > > >   
> > > >
> > > >   
> > > > action2
> > > > /*
> > > >   
> > > >   
> > > >
> > > > org.springframework.web.context.ContextLoaderL
> > > > istener
> > > >   
> > > > 
> > > >
> > > >
> > > > Can anybody help me?
> > > > Thanks,
> > > > Peter
> > > > --
> > > >
> > > >
> > > > Echte DSL-Flatrate dauerhaft für 0,- Euro*. Nur noch kurze
> > > > Zeit! "Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl
> > > >
> > > >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
-
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > --
> >
> >
> > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> > Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >

--


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Mod

Re: RE: Struts2

2006-08-17 Thread Peter Steil
If I set the path, I get the following message in the browser:

file:/C:/tomcat-5.5.17/webapps/mystruts/WEB-INF/classes/struts.xml:9:72

com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFile(XmlConfigurationProvider.java:678)

com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:117)

com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:87)

com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:46)

org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:215)


Also, Tomcat logs the following:
SEVERE: Attribute "path" must be declared for element type "action". at (null:9:
72)



 Original-Nachricht 
Datum: Thu, 17 Aug 2006 15:47:54 -0400
Von: Monkeyden <[EMAIL PROTECTED]>
An: "Struts Users Mailing List" 
Betreff: Re: RE: Struts2

> you need a path attribute for the action mapping.
> 
> 
> 
> On 8/17/06, Peter Steil <[EMAIL PROTECTED]> wrote:
> >
> > The exact same thing happens. I give you some more information. You know
> > how my web.xml looks like. Here are the other files:
> >
> > struts.xml:
> > 
> >
> >  >"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
> >"http://struts.apache.org/dtds/struts-2.0.dtd";>
> >
> > 
> >   
> >
> >   
> > 
> > helloWorld.jsp
> >  
> >   
> > 
> >
> >
> > helloWorld.jsp:
> > ---
> >
> > <%@ taglib prefix="saf" uri="/tags" %>
> > 
> >   
> >Hello World
> >   
> > 
> >The message generated by my first Action is:
> >
> > 
> > 
> >
> >
> >
> > HelloWorld.java:
> > 
> >
> > import com.opensymphony.xwork2.Action;
> > import java.util.*;
> > import java.text.DateFormat;
> >
> > public class HelloWorld implements Action {
> >
> > private String message;
> >
> > public String execute() {
> >   message = "Hello, World!\n";
> >   message += "The time is:\n";
> >   message += DateFormat.getDateInstance().format(new Date());
> >
> >   return SUCCESS;
> > }
> >
> > public String getMessage() {
> >   return message;
> > }
> >
> > }
> >
> >
> >
> > Thanks,
> > Peter
> >
> >
> >  Original-Nachricht 
> > Datum: Thu, 17 Aug 2006 14:04:52 -0500
> > Von: [EMAIL PROTECTED]
> > An: user@struts.apache.org
> > Betreff: RE: Struts2
> >
> > > It looks like you're requesting a page with suffix mapping
> > > ("helloWorld.do") but you've configured struts to use prefix mapping
> > ("/*").  What happens
> > > if you change to "*.do"?
> > >
> > >  - George
> > >http://www.idiacomputing.com/
> > >
> > >
> > > > -Original Message-
> > > > From: Peter Steil [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, August 17, 2006 2:01 PM
> > > > To: user@struts.apache.org
> > > > Subject: Struts2
> > > >
> > > >
> > > > Hi, I am trying to get started on Struts2 using the nightly
> > > > build 'struts2-core-2.0.0-SNAPSHOT-20060816.jar'. I started
> > > > with the very basic example from
> > > > 'http://cwiki.apache.org/WW/hello-world.html' and I still get
> > > > the message 'The requested resource (/mystruts/helloWorld.do)
> > > > is not available.' in my browser. My web.xml looks like this:
> > > >
> > > > 
> > > >  > > > Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
> > > >
> > > > 
> > > >   My Application
> > > >   
> > > > action2
> > > >
> > > > org.apache.struts2.dispatcher.FilterDispatcher > > filter-class>
> > > >   
> > > >
> > > >   
> > > > action2
> > > > /*
> > > >   
> > > >   
> > > >
> > > > org.springframework.web.context.ContextLoaderL
> > > > istener
> > > >   
> > > > 
> > > >
> > > >
> > > > Can anybody help me?
> > > > Thanks,
> > > > Peter
> > > > --
> > > >
> > > >
> > > > Echte DSL-Flatrate dauerhaft für 0,- Euro*. Nur noch kurze
> > > > Zeit! "Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl
> > > >
> > > >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > --
> >
> >
> > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> > Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >

-- 


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [

Re: RE: Struts2

2006-08-17 Thread Monkeyden

you need a path attribute for the action mapping.



On 8/17/06, Peter Steil <[EMAIL PROTECTED]> wrote:


The exact same thing happens. I give you some more information. You know
how my web.xml looks like. Here are the other files:

struts.xml:


http://struts.apache.org/dtds/struts-2.0.dtd";>


  

  

helloWorld.jsp
 
  



helloWorld.jsp:
---

<%@ taglib prefix="saf" uri="/tags" %>

  
   Hello World
  

   The message generated by my first Action is:
   





HelloWorld.java:


import com.opensymphony.xwork2.Action;
import java.util.*;
import java.text.DateFormat;

public class HelloWorld implements Action {

private String message;

public String execute() {
  message = "Hello, World!\n";
  message += "The time is:\n";
  message += DateFormat.getDateInstance().format(new Date());

  return SUCCESS;
}

public String getMessage() {
  return message;
}

}



Thanks,
Peter


 Original-Nachricht 
Datum: Thu, 17 Aug 2006 14:04:52 -0500
Von: [EMAIL PROTECTED]
An: user@struts.apache.org
Betreff: RE: Struts2

> It looks like you're requesting a page with suffix mapping
> ("helloWorld.do") but you've configured struts to use prefix mapping
("/*").  What happens
> if you change to "*.do"?
>
>  - George
>http://www.idiacomputing.com/
>
>
> > -Original Message-
> > From: Peter Steil [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 17, 2006 2:01 PM
> > To: user@struts.apache.org
> > Subject: Struts2
> >
> >
> > Hi, I am trying to get started on Struts2 using the nightly
> > build 'struts2-core-2.0.0-SNAPSHOT-20060816.jar'. I started
> > with the very basic example from
> > 'http://cwiki.apache.org/WW/hello-world.html' and I still get
> > the message 'The requested resource (/mystruts/helloWorld.do)
> > is not available.' in my browser. My web.xml looks like this:
> >
> > 
> >  > Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
> >
> > 
> >   My Application
> >   
> > action2
> >
> > org.apache.struts2.dispatcher.FilterDispatcher filter-class>
> >   
> >
> >   
> > action2
> > /*
> >   
> >   
> >
> > org.springframework.web.context.ContextLoaderL
> > istener
> >   
> > 
> >
> >
> > Can anybody help me?
> > Thanks,
> > Peter
> > --
> >
> >
> > Echte DSL-Flatrate dauerhaft für 0,- Euro*. Nur noch kurze
> > Zeit! "Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

--


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: RE: Struts2

2006-08-17 Thread Peter Steil
The exact same thing happens. I give you some more information. You know how my 
web.xml looks like. Here are the other files:

struts.xml:


http://struts.apache.org/dtds/struts-2.0.dtd";>


   

   
 
 helloWorld.jsp
  
   
  


helloWorld.jsp:
---

<%@ taglib prefix="saf" uri="/tags" %>
 
   
Hello World
   
  
The message generated by my first Action is:
  
  
 



HelloWorld.java:


import com.opensymphony.xwork2.Action;
import java.util.*;
import java.text.DateFormat;

public class HelloWorld implements Action {

private String message;

 public String execute() {
   message = "Hello, World!\n";
   message += "The time is:\n";
   message += DateFormat.getDateInstance().format(new Date());

   return SUCCESS;
 }

 public String getMessage() {
   return message;
 }

}



Thanks,
Peter


 Original-Nachricht 
Datum: Thu, 17 Aug 2006 14:04:52 -0500
Von: [EMAIL PROTECTED]
An: user@struts.apache.org
Betreff: RE: Struts2

> It looks like you're requesting a page with suffix mapping
> ("helloWorld.do") but you've configured struts to use prefix mapping ("/*").  
> What happens
> if you change to "*.do"?
> 
>  - George
>http://www.idiacomputing.com/
> 
> 
> > -Original Message-
> > From: Peter Steil [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday, August 17, 2006 2:01 PM
> > To: user@struts.apache.org
> > Subject: Struts2
> > 
> > 
> > Hi, I am trying to get started on Struts2 using the nightly 
> > build 'struts2-core-2.0.0-SNAPSHOT-20060816.jar'. I started 
> > with the very basic example from 
> > 'http://cwiki.apache.org/WW/hello-world.html' and I still get 
> > the message 'The requested resource (/mystruts/helloWorld.do) 
> > is not available.' in my browser. My web.xml looks like this:
> > 
> > 
> >  > Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
> > 
> > 
> >   My Application
> >   
> > action2
> > 
> > org.apache.struts2.dispatcher.FilterDispatcher filter-class>
> >   
> > 
> >   
> > action2
> > /*
> >   
> >   
> > 
> > org.springframework.web.context.ContextLoaderL
> > istener
> >   
> > 
> > 
> > 
> > Can anybody help me?
> > Thanks,
> > Peter
> > -- 
> > 
> > 
> > Echte DSL-Flatrate dauerhaft für 0,- Euro*. Nur noch kurze 
> > Zeit! "Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts2

2006-08-17 Thread George.Dinwiddie
It looks like you're requesting a page with suffix mapping ("helloWorld.do") 
but you've configured struts to use prefix mapping ("/*").  What happens if you 
change to "*.do"?

 - George
   http://www.idiacomputing.com/


> -Original Message-
> From: Peter Steil [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 17, 2006 2:01 PM
> To: user@struts.apache.org
> Subject: Struts2
> 
> 
> Hi, I am trying to get started on Struts2 using the nightly 
> build 'struts2-core-2.0.0-SNAPSHOT-20060816.jar'. I started 
> with the very basic example from 
> 'http://cwiki.apache.org/WW/hello-world.html' and I still get 
> the message 'The requested resource (/mystruts/helloWorld.do) 
> is not available.' in my browser. My web.xml looks like this:
> 
> 
>  Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
> 
> 
>   My Application
>   
> action2
> 
> org.apache.struts2.dispatcher.FilterDispatcher
>   
> 
>   
> action2
> /*
>   
>   
> 
> org.springframework.web.context.ContextLoaderL
> istener
>   
> 
> 
> 
> Can anybody help me?
> Thanks,
> Peter
> -- 
> 
> 
> Echte DSL-Flatrate dauerhaft für 0,- Euro*. Nur noch kurze 
> Zeit! "Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts and Jsessionid control

2006-08-17 Thread Michael Rush

http://tomcat.apache.org/tomcat-5.0-doc/config/context.html says:

Set to true if you want cookies to be used for session identifier  
communication if supported by the client (this is the default). Set  
to false if you want to disable the use of cookies for session  
identifier communication, and rely only on URL rewriting by the  
application.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts2

2006-08-17 Thread Peter Steil
Hi, I am trying to get started on Struts2 using the nightly build 
'struts2-core-2.0.0-SNAPSHOT-20060816.jar'. I started with the very basic 
example from 'http://cwiki.apache.org/WW/hello-world.html' and I still get the 
message 'The requested resource (/mystruts/helloWorld.do) is not available.' in 
my browser. My web.xml looks like this:


http://java.sun.com/dtd/web-app_2_3.dtd";>


  My Application
  
action2
org.apache.struts2.dispatcher.FilterDispatcher
  

  
action2
/*
  
  

org.springframework.web.context.ContextLoaderListener
  



Can anybody help me?
Thanks,
Peter
-- 


Echte DSL-Flatrate dauerhaft für 0,- Euro*. Nur noch kurze Zeit!
"Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RE : Page contentType

2006-08-17 Thread Monkeyden

So ignore it in the JSP and set the HTTP Header conditionally in the
Action.  You have the response object available.  The ultimate goal, after
all, is for the JSP to be a passive actor.  The generated JSPs make no
assumptions about content type, so it will be whatever you say it is.

On 8/17/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote:



Thanks, my application is struts based.

-Message d'origine-
De: Monkeyden [mailto:[EMAIL PROTECTED]
Envoyé: jeudi 17 août 2006 17:08
À: Struts Users Mailing List
Objet: Re: Page contentType

Sure, flatter us so we don't notice you're breaking a rule.

Is it a straight JSP application or do you have a controller?

On 8/17/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> Excuse-me, I know it is not the right forum to ask this question but
> there are the best developper registered on this mailing list ... ;-)
>
> My web application has to use 2 differents content type according to
> user language.
> I would like to change dynamically the <[EMAIL PROTECTED] contentType=
> "text/html;charset=windows-1250" language= "java" pageEncoding=
> "windows-1250"%> declaration.
>
> Have you got an idea ?
>
> Thanks,
> Regards Jean-Marie.
>
>
> ---
> Email Disclaimer
> http://www.cofidis.be/emaildisclaimer.php
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: What's the difference between struts-base and struts-el?

2006-08-17 Thread Karr, David
One comment inline. 

> -Original Message-
> From: Scott Van Wart [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 16, 2006 5:53 PM
> To: Struts Users Mailing List
> Subject: Re: What's the difference between struts-base and struts-el?
> 
> Michael Cheung wrote:
> > Hi, all;
> >
> > What's the difference between struts-base to struts-el.
> >   
> My general understanding is:
> - struts-el is so you can use EL expressions in your Struts 
> tags without having to use servlet 2.4.  The JSP compiler 
> won't compile the EL, so it's up to Struts to do it.  Use the 
> regular Struts taglib if you know your JSP compiler supports EL.
> - Servlet 2.3 supports EL, but is disabled by default (you 
> need isELIgnored="false" or something like that at the top of 
> every JSP).

No, servlet 2.3 does not support the EL in any way, except to completely
ignore it so that the tag code itself (in struts-el) can process it.

> - Servlet 2.4 has it enabled by default.
> - You can disallow <% (java) %> stuff in your JSPs by 
> specifying it in your web.xml in Servlet 2.4
> - JSTL 1.0 is used when you don't have EL support--same 
> reason why Struts provides struts-el.
> - JSTL 1.1 is used when you DO have EL support, so the JSTL 
> doesn't need to handle EL itself.
> - Not sure about the c-rt.tld you refer to, I haven't encountered it.
> 
> I suspect all these confusing differences are the result of 
> an emerging technology.  Java's resisted this whole dynamic 
> programming thing (I hear Mustang's going to push the 
> envelope, however), so the EL was a bit of a workaround 
> that's now being adopted as people update their servlet containers.
> 
> - Scott
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE : Page contentType

2006-08-17 Thread Jean-Marie Pitre

Thanks, my application is struts based.

-Message d'origine-
De : Monkeyden [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 17 août 2006 17:08
À : Struts Users Mailing List
Objet : Re: Page contentType

Sure, flatter us so we don't notice you're breaking a rule.

Is it a straight JSP application or do you have a controller?

On 8/17/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> Excuse-me, I know it is not the right forum to ask this question but
> there are the best developper registered on this mailing list ... ;-)
>
> My web application has to use 2 differents content type according to
> user language.
> I would like to change dynamically the <[EMAIL PROTECTED] contentType=
> "text/html;charset=windows-1250" language= "java" pageEncoding=
> "windows-1250"%> declaration.
>
> Have you got an idea ?
>
> Thanks,
> Regards Jean-Marie.
>
>
> ---
> Email Disclaimer
> http://www.cofidis.be/emaildisclaimer.php
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Page contentType

2006-08-17 Thread Monkeyden

Sure, flatter us so we don't notice you're breaking a rule.

Is it a straight JSP application or do you have a controller?

On 8/17/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote:



Hi,

Excuse-me, I know it is not the right forum to ask this question but
there are the best developper registered on this mailing list ... ;-)

My web application has to use 2 differents content type according to
user language.
I would like to change dynamically the <[EMAIL PROTECTED] contentType=
"text/html;charset=windows-1250" language= "java" pageEncoding=
"windows-1250"%> declaration.

Have you got an idea ?

Thanks,
Regards Jean-Marie.


---
Email Disclaimer
http://www.cofidis.be/emaildisclaimer.php


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Page contentType

2006-08-17 Thread Jean-Marie Pitre

Hi,

Excuse-me, I know it is not the right forum to ask this question but
there are the best developper registered on this mailing list ... ;-)

My web application has to use 2 differents content type according to
user language.
I would like to change dynamically the <[EMAIL PROTECTED] contentType=
"text/html;charset=windows-1250" language= "java" pageEncoding=
"windows-1250"%> declaration.

Have you got an idea ?

Thanks,
Regards Jean-Marie.


---
Email Disclaimer
http://www.cofidis.be/emaildisclaimer.php


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Reload Message resources i.e Resource Bundle

2006-08-17 Thread Rahul Akolkar

On 8/17/06, Harsh Gupta <[EMAIL PROTECTED]> wrote:


How to Reload Message resources i.e Resource Bundles in struts 1.1???




Create a "reloadable" message resources factory, see factory attribute
[1] of 

-Rahul

[1] http://struts.apache.org/1.x/userGuide/configuration.html#resources_config

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Reload Message resources i.e Resource Bundle

2006-08-17 Thread Monkeyden

I usually just touch the web.xml, to redeploy the app, but this isn't always
feasible in production.

On 8/17/06, Harsh Gupta <[EMAIL PROTECTED]> wrote:


How to Reload Message resources i.e Resource Bundles in struts 1.1???



___
Harsh Gupta
Software Engineer
MPS Technologies (A Macmillan company)

Email: h  [EMAIL PROTECTED]
Web:   www.mpstechnologies.com

Tel:  + 91 124 2704 111 (Direct Line)

  + 91 124 2704 100 (Board)
Fax:+ 91 124 288  1052

Mail: MPS Technologies, 3A, 4th & 5th Floors, DLF Corporate Park, Gurgaon
122 002, Haryana, India







RE: retrieve image from database

2006-08-17 Thread George.Dinwiddie
Your image is probably being cached in the browser.

> -Original Message-
> From: Gomathi [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 17, 2006 9:41 AM
> To: Struts Users Mailing List
> Subject: retrieve image from database
> 
> 
> hai,
> thanks in advance.
> when we edit image logo we are not getting newly uploaded 
> image.But it is perfectly stored in the database(the path of 
> the image). whenever we add new image to db.its perfectly 
> working. But when we go for edit its not working properly(ie) 
> we not getting the newly edited image logo in jsp(view).Once 
> we refresh  the jsp we are getting the newly added image.
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



retrieve image from database

2006-08-17 Thread Gomathi
hai,
thanks in advance.
when we edit image logo we are not getting newly uploaded image.But it is 
perfectly stored in the database(the path of the image).
whenever we add new image to db.its perfectly working. But when we go for edit 
its not working properly(ie) we not getting the newly edited image logo in 
jsp(view).Once we refresh  the jsp we are getting the newly added image.


RE: Hi

2006-08-17 Thread Medicherla Lakshmi
Thank you for the information.
   
  Lakshmi.

David Friedman <[EMAIL PROTECTED]> wrote:
  What is wrong with the documentation information at:
http://jsptags.com/tags/navigation/pager/pager-taglib-2.0.html#param

Which shows you can override the url and parameters if you have problems by
setting the url with pg:pager (so it would show "/Applcn
name/getVendorInfo.do" and pg:param to set a parameter named "method" to
pass "getVendors"?

Unless you mean some other "pager-taglib" than that one I'm guessing above.

Regards,
David

-Original Message-
From: Medicherla Lakshmi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 16, 2006 3:07 AM
To: user@struts.apache.org
Subject: Hi

Hi All,

Am trying to use pager-taglib for pagination. I specified the url for
that as the action being called. My action is a Dispatch Action, so i
specified for the url attribute as

url="/Applcn name/getVendorInfo.do?method=getVendors"

I got the page index, but when am trying to access second page its giving
an error saying NoSuchMethodException.

When i tried to check for the cause, i found that its sending
getVendors?pager.offset=2 as method for the action instead of only
getVendors.

Please give me idea how to resolve this.

Thanks and Regards,
Lakshmi MSV.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
 Here's a new way to find what you're looking for - Yahoo! Answers 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it 
NOW