XML To Database

2003-07-21 Thread Konstantina Stamopoulou
Hello everyone,
I have the following problem. I need for my application to use a database which is in 
form of .xml.
I want  to convert this database to a real database such us ORACLE.
 I have a .dtd but I cannot find a way to do this transformation automatically. 
Can anyone help by giving me some reference docs?
I couldn't find anything in the archives.

Thank you in advance
Konstantina




bean:cookie tag question

2003-02-04 Thread Konstantina Stamopoulou
Hello all,
I'm  wondering if any of U that have used the bean:cookie tag had any problems. 
I'm facing the following problem. I have created a cookie in one of my Action classes  
with the following code:

Cookie logged=null;
logged = new Cookie("username",username);
logged.setMaxAge(300);
logged.setPath("/");
response.addCookie(logged);

The cookie is created successfully - I can get its info from any place of the code- 
but when I tried to get its value from my jsp with the following code:

 
 <%System.out.println("=Have found the 
cookie==");%> 
  
   Bean Name:  
   Bean Value:
  

I fail. The condition is never satisfied.
 Has anyone any idea of what I'm doing wrong?


Thank U in advance,
Konstantina




Results in multiple pages

2003-02-27 Thread Konstantina Stamopoulou
Hello,
I have the following problem and I'm not sure how I can solve it.
The resultset returned from a query I'm making to the database has many records. What 
I want to do is to display each time 10 of these records in my page.
How can i do this? I have searched the archive but I couldn't find anything similar. 
Any ideas or redirections to places where I could find a solution?

Thank you in advance.




Re: Results in multiple pages

2003-02-28 Thread Konstantina Stamopoulou
Richard ,
Many thanx!! With all these resourses I sould be able to find the solution.
I knew I could count on the mailing list!

Konstantina

- Original Message -
From: "Richard Raquepo" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 10:15 AM
Subject: Re: Results in multiple pages


> www.javanovic.com - see articles. i'm sure it can help you and try
going
> browsing to  this thread
>
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=58&t=
> 000767
>
> hope this helps
>
> - Original Message -
> From: "Konstantina Stamopoulou" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, February 28, 2003 3:59 PM
> Subject: Results in multiple pages
>
>
> Hello,
> I have the following problem and I'm not sure how I can solve it.
> The resultset returned from a query I'm making to the database has many
> records. What I want to do is to display each time 10 of these records in
my
> page.
> How can i do this? I have searched the archive but I couldn't find
anything
> similar.
> Any ideas or redirections to places where I could find a solution?
>
> Thank you in advance.
>
>
>
>
>
> -
> 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: Localisation

2003-03-05 Thread Konstantina Stamopoulou


> You could set a group of forwards up, based on the locale ie
>
> 
> 
> 
>within 


Does this mean  that someone has to implement a different .jsp for each
language? I need to implement something similar and I'm not sure that I
understand the answer. Don't you use the  to display text in
different languages? I'm I missing something here?
James what is exactly the solution you are going to follow?

> Cheers
>
> Simon

Thank you in advance
Konstantina


> - Original Message -
> From: "James" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, March 05, 2003 8:11 PM
> Subject: Localisation
>
>
> > I have a LocaleActionClass that sets the locale according to which wee
> flag
> > the user clicks, my question is how in the struts-config.xml do i
specify
> it
> > to forward to the page they changed locale on (i.e their original page).
> >
> > James
> >
> >
> >
> >
> >
> > -
> > 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]
>
>


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



Re: Nesting

2003-03-05 Thread Konstantina Stamopoulou
I have used the following:



   
   

and it works find.
You have to give in each case the property that will get the collection on
which the iteration will occur.

Konstantina
- Original Message -
From: "Heiko Jürgens" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 05, 2003 2:00 PM
Subject: Nesting 


> Hi all,
>
> is it possible to nest iterate-tags with Struts 1.1?
>
> I have an ArrayList rows which contains ArrayLists.
>
> I tried this in a JSP:
>
>
>
>   
>   
>   
>
> 
>
> But I always get an error, saying _jspx_field_1 is already defined in
> the JSP.
>
> Is there something wrong with my code or isn't this possible?
>
> TIA
>
> Heiko
>
>
>
> --
>
>
> -
> 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]



Another sslext-struts question

2003-03-17 Thread Konstantina Stamopoulou
Hello all,

I'm trying to install the sslext-struts to toggle between https and http requests. I 
have downloaded the sslext-struts-1.1RC1 and I have copied the /web directory-which 
contains the demo app-  into my webapps. I have enabled  the SSL in Tomcat, copied the 
jnet.jar,jcert.jar,jsse.jar into /web/WEB-INF/lib dir,  and I try to run the /web app 
of sslext. When I give the request http://localhost:8080/web -or 
https://localhost:8443/web- and  I get the following error in my browser:

HTTP Status 503

Servlet action is currently unavailable

The requested service (Servlet action is currently unavailable) is not currently 
available.

In  Tomcat console i don't get any detailed exception. What am I doing wrong? Any help 
would be appriciated!!! - I have already searched the archive and I couldn't find any 
answer. -

Also I would like to ask a more general question regarding SSL. Suppose someone has 
configured SSL on Apache server. When a http request for struts app is given to the 
server, this request is transformed into https and then send to tomcat? Or we should 
always use https? 

Thank you,

Konstantina







Re: Another sslext-struts question

2003-03-17 Thread Konstantina Stamopoulou
Hello James,

If you mean the RSA certification  using the "keytool", yes I have done
it -as part of tomcat SSL configuration .

Konstantina

- Original Message -
From: "Jamesey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 17, 2003 3:16 PM
Subject: Re: Another sslext-struts question


> have you done the RSA certification bit??
>
>
>
> "Konstantina Stamopoulou" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> Hello all,
>
> I'm trying to install the sslext-struts to toggle between https and http
> requests. I have downloaded the sslext-struts-1.1RC1 and I have copied the
> /web directory-which contains the demo app-  into my webapps. I have
enabled
> the SSL in Tomcat, copied the jnet.jar,jcert.jar,jsse.jar into
> /web/WEB-INF/lib dir,  and I try to run the /web app of sslext. When I
give
> the request http://localhost:8080/web -or https://localhost:8443/web- and
I
> get the following error in my browser:
>
> HTTP Status 503
>
> Servlet action is currently unavailable
>
> The requested service (Servlet action is currently unavailable) is not
> currently available.
>
> In  Tomcat console i don't get any detailed exception. What am I doing
> wrong? Any help would be appriciated!!! - I have already searched the
> archive and I couldn't find any answer. -
>
> Also I would like to ask a more general question regarding SSL. Suppose
> someone has configured SSL on Apache server. When a http request for
struts
> app is given to the server, this request is transformed into https and
then
> send to tomcat? Or we should always use https?
>
> Thank you,
>
> Konstantina
>
>
>
>
>
>
>
>
>
> -
> 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:Another sslext-struts question

2003-03-18 Thread Konstantina Stamopoulou
Hello,
Concerning my problem of using the sslext I would like to mention the I get
the following exception - I should have mentioned it into my first e-mail
but I didn't know which app was causing it -

EXCEPTION

SEVERE: Parsing error processing resource path
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
at java.net.Socket.connect(Socket.java:425)
at java.net.Socket.connect(Socket.java:375)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:366)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:582)
at sun.net.www.http.HttpClient.(HttpClient.java:292)
at sun.net.www.http.HttpClient.(HttpClient.java:253)
at sun.net.www.http.HttpClient.New(HttpClient.java:321)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:301)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.j
ava:463)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:4
54)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection
.java:556)
at java.net.URL.openStream(URL.java:955)
at
org.apache.xerces.readers.DefaultReaderFactory.createReader(DefaultReaderFac
tory.java:149)




...

at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
Starting service Tomcat-Apache
Apache Tomcat/4.0.6

Any clue what am I  missing? As said before, all the jars are in the lib dir
and tomcat is SSL enabled.

Thank you,
Konstantina









- Original Message -
From: "Jamesey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 17, 2003 3:16 PM
Subject: Re: Another sslext-struts question


> have you done the RSA certification bit??
>
>
>
> "Konstantina Stamopoulou" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> Hello all,
>
> I'm trying to install the sslext-struts to toggle between https and http
> requests. I have downloaded the sslext-struts-1.1RC1 and I have copied the
> /web directory-which contains the demo app-  into my webapps. I have
enabled
> the SSL in Tomcat, copied the jnet.jar,jcert.jar,jsse.jar into
> /web/WEB-INF/lib dir,  and I try to run the /web app of sslext. When I
give
> the request http://localhost:8080/web -or https://localhost:8443/web- and
I
> get the following error in my browser:
>
> HTTP Status 503
>
> Servlet action is currently unavailable
>
> The requested service (Servlet action is currently unavailable) is not
> currently available.
>
> In  Tomcat console i don't get any detailed exception. What am I doing
> wrong? Any help would be appriciated!!! - I have already searched the
> archive and I couldn't find any answer. -
>
> Also I would like to ask a more general question regarding SSL. Suppose
> someone has configured SSL on Apache server. When a http request for
struts
> app is given to the server, this request is transformed into https and
then
> send to tomcat? Or we should always use https?
>
> Thank you,
>
> Konstantina
>
>
>
>
>
>
>
>
>
> -
> 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: Populating form fields

2003-03-20 Thread Konstantina Stamopoulou
Try the following:


I believe it will work.

Konstantina


- Original Message -
From: "Karl Stenerud" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 20, 2003 10:48 AM
Subject: Populating form fields


> How do you populate form fields in struts?
>
> I have a page with a form ContractSetupForm, which then forwards to
another
> page that contains a ContractForm, which has some fields the same, some
> different.  In my action class leading to this form, I made a
> ContractSetupData bean and populated it, then put it into the request
> context.
>
> Now I want to have the data from the ContractSetupData put into specific
> fields in the new page.  I tried it like this:
>
>  type="view.ContractForm">
> 
> 
> Name
> 
> "/>
> 
> 
> 
> 
> 
> 
>
> where "contractData" is the ContractSetupData from the previous action.
> Unfortunately, this doesn't work since I can't embed a tag within a quoted
> field.  Is there some other way to do this?
>
>
> -
> 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: error in my struts config

2003-03-24 Thread Konstantina Stamopoulou
Hello Richard,

I'm not sure if it is allowed to give the stuts-configs as comma delimited
parameters. Try the following in your web.xml



  config
  /WEB-INF/struts-config-tm.xml


  config
  /WEB-INF/struts-config.xml


  config
  /WEB-INF/struts-config-manager.xml


Konstnatina



- Original Message -
From: "Richard Raquepo" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, March 24, 2003 8:17 AM
Subject: error in my struts config


My web-app is working fine in resin but when i switched to tomcat i got this
error.

2003-03-24 14:13:57 StandardContext[/]: Servlet / threw load() exception
javax.servlet.UnavailableException: Parsing error processing resource path
/WEB-INF/struts-config-tm.xml,/WEB-INF/struts-config-manager.xml
 at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
52)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
4)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3420)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)


my web.xml looks like this
.

  config
  

/WEB-INF/struts-config.xml,/WEB-INF/struts-config-tm.xml,/WEB-INF/struts-con
fig-manager.xml
   


it works fine in resin but this seems not allowed in tomcat...

guys, what do you think is the error.

thanks a lot...


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



HTTP response as XML

2003-04-03 Thread Konstantina Stamopoulou
Hello everyone,
I have been using STruts for a while and it has solved a lot of my previous problems 
for example having long .jsps that included all the logic. Now I have been asked to 
use struts, which will receive the requst and will generate .xml   instead of html as 
a response. This .xml will be parsed by another application. First of all is this 
possible? Make an http requset which will be handled by struts which will return xml 
code? If yes how is this possible? Do I have to implement my own custom tags? Has 
anyone implemented something similar? 
An xml file that I might generate will have the following form:









http://www.news.com";> 
This is a 
test. 


I could use any available help!

Thank U in advance!
Konstantina


Re: HTTP response as XML

2003-04-04 Thread Konstantina Stamopoulou
Thank you David.
I think I will forward to xml directly from my Action class

Konstantina
- Original Message -
From: "David Graham" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 03, 2003 6:06 PM
Subject: Re: HTTP response as XML


> It is possible.  It's commonly referred to as XML over HTTP.  HTTP is the
> protocol or language that clients and servers speak and XML, HTML, GIFs,
> JPEGs, etc. can be delivered over that protocol.  HTTP responses set a
> Content-Type header like Content-Type: text/html or Content-Type: text/xml
> in your case.  There are JSTL tags that generate XML in JSPs or you can
> generate the XML in an Action and send it back.
>
> David
>
>
>
> >From: "Konstantina Stamopoulou" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: HTTP response as XML
> >Date: Thu, 3 Apr 2003 17:25:09 +0300
> >
> >Hello everyone,
> >I have been using STruts for a while and it has solved a lot of my
previous
> >problems for example having long .jsps that included all the logic. Now I
> >have been asked to use struts, which will receive the requst and will
> >generate .xml   instead of html as a response. This .xml will be parsed
by
> >another application. First of all is this possible? Make an http requset
> >which will be handled by struts which will return xml code? If yes how is
> >this possible? Do I have to implement my own custom tags? Has anyone
> >implemented something similar?
> >An xml file that I might generate will have the following form:
> >
> >
> >
> >
> > >action="TVCatalog" target="displayarea"/>
> > >txt="E-mail" action="showEmail" target="displayarea"/>
> > >action="musicCatalog" target="displayarea"/>
> >
> >
> > >bgcolor="transparent" href="http://www.news.com";> 
> > >name="displayarea">This is a test. 
> >
> >
> >I could use any available help!
> >
> >Thank U in advance!
> >Konstantina
>
>
> _
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> -
> 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: HTTP response as XML

2003-04-04 Thread Konstantina Stamopoulou
Hello Ted,


> You might want to look at the digester for this. It is very good at
> converting JavaBeans to XML and back. See the RSS package for an example.
>
>
http://jakarta.apache.org/commons/digester/api/org/apache/commons/digester/r
ss/package-frame.html
>
I'm aware of Digester but I haven't used it to lean in details its
functionality. I think it is time to do so.

> You can then do your response up as a JavaBean, have the Digester
> convert that to XML, return XML as the response just as you would from a
> servlet (and return null to the Struts controller).

You mean that in my Action class I will write " return (new
ActionForward("null"))" and I will use the PrintWriter to send the response?
Shouldn't  I do the following --> "return (new ActionForward("my.xml"))"
where .xml is the file constructed in the Action class.


>
>  From what you said, there's little reason to get a page involved, since
> the output is going to another application.

Exactly!

>
> -Ted.
>
Thank you!


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



Populate bean values to my form

2002-10-29 Thread Konstantina Stamopoulou
Hello,

I know that my question might sound naive but I realy need your help.
Unfortunately I couldn't  find out from the archieves what I'm doing wrong.
So here I go.
I need to submit a form (SearchForm) retrieve some data from the database depending on 
the values entered in the SearchForm
(SearchFormAction)and then edit the data returned by the query in the 
database(userform.jsp). This is how I have implemented the previous.

struts-config
==

 

  

 
  

 
 
 
SearchFormAction


 data.createpool();
 data.open("SELECT * FROM "+role+" WHERE username='"+id+"'"); //get the data form 
database
 .
 
 servlet.getServletContext().setAttribute(Constants.USER_KEY,usef); //set the bean to 
the values returned by the query
  
 return (mapping.findForward("/editUser")); //call the EditUserAction befor displaying 
the userform.jsp  
 
EditUserAction 
==

 UserBean user=(UserBean) servlet.getServletContext().getAttribute(Constants.USER_KEY);
 HttpSession session = request.getSession();
 
 
 // Populate the user registration form
 if (form == null) {

 form = new UserForm();
if ("request".equals(mapping.getScope()))
request.setAttribute(mapping.getAttribute(), form);
else
session.setAttribute(mapping.getAttribute(), form);
 }
 UserForm userform = (UserForm) form;
try {
 PropertyUtils.copyProperties(userform, user); // Shouldn't this populate the 
user to the form?
 

} catch (InvocationTargetException e) {//Handle the exception   }

  return (new ActionForward("/userform.jsp"));
  

userform.jsp


 
 
  
   ...   

UserForm

.
  public void setFname(String name){
this.fname=name;
}

   public String getFname(){
return this.fname;
}
   
   
   public void setSname(String myname){
this.sname=myname;
} 
 .
 
 UserBean
 =
 
 public class UserBean {
 String fname;
 String sname;
 String bdate; 
 String address;
 String region;
 String post;
 String phone;
 String faculty;
 String dregister;
 String email;
 String username;
 String password; 
   
 
 public void setFname(String first){
  this.fname=first;
 }
 
 public String getFname(){
  return this.fname;
 }
 
   
   
   After doing all the above I get an empty userform.jsp. Can someome please tell me 
what I'm missing?
   
   Thank you in advance,
   Konstantina



Stxx opencode

2002-07-16 Thread Konstantina Stamopoulou

Hello,
I have just downloaded the stxx package and I tried to run the stxx-example 
application. But unfortunately I had no luck. I run it with tomcat-4.0.4
and tomcat-3.2.4 but I got the following exception.

Apache Tomcat/4.0.4 - HTTP Status 503 - Servlet action is currently unavailable



type Status report

message Servlet action is currently unavailable

description The requested service (Servlet action is currently unavailable) is not 
currently available.






I find stxx very flexible and since I have worked with struts I would be very 
interetsed in using it for my application development. So if anyone can help me I 
would be gradeful.

Thank you in advance,
Konstantina





Re: Stxx opencode

2002-07-16 Thread Konstantina Stamopoulou

You were right Andrew,
I got the following exception:

2002-07-16 15:38:09 StandardContext[/stxx-example]: Servlet /stxx-example
threw load() exception
javax.servlet.ServletException: Servlet.init() for servlet action threw
exception
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:94
6)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
..

The problem is that I don't know what causes it. It is the first time that I
come across to such an error.
Any help would be really appreciated.

Konstantina



- Original Message -
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, July 16, 2002 2:59 PM
Subject: RE: Stxx opencode


> Have a look in the log file to see if you can pin down the actual error
that
> occured, as if an exception is thrown when initialising stuff, thats the
> message you get.
>
> -Original Message-
> From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 20:00
> To: Struts Users Mailing List
> Subject: Stxx opencode
>
>
> Hello,
> I have just downloaded the stxx package and I tried to run the
stxx-example
> application. But unfortunately I had no luck. I run it with tomcat-4.0.4
> and tomcat-3.2.4 but I got the following exception.
>
> Apache Tomcat/4.0.4 - HTTP Status 503 - Servlet action is currently
> unavailable
>
> --
--
> 
>
> type Status report
>
> message Servlet action is currently unavailable
>
> description The requested service (Servlet action is currently
unavailable)
> is not currently available.
>
>
> --
--
> 
>
>
>
> I find stxx very flexible and since I have worked with struts I would be
> very interetsed in using it for my application development. So if anyone
can
> help me I would be gradeful.
>
> Thank you in advance,
> Konstantina
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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




Re: Stxx opencode

2002-07-16 Thread Konstantina Stamopoulou

Well, verything else is working.
I will try to figure out what is wrong but I don't think I will find
something since I have no experience in conf files of tomcat.
Anyway.

Thanks for sharing your ideas with me,
Konstantina
- Original Message -
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, July 16, 2002 4:09 PM
Subject: RE: Stxx opencode


> Hmmm...
> Yep. Out of the frying pan into the fire!
>
> I havent played with stxx before, but normally when Ive had the servlet
not
> available error it is because I have a problem with a config file, or am
> missing some resource.
>
> Your best bet is probably to have a look at your stxx config files (if it
> uses config files!). Since its the example app, you probably have all the
> config files and resources you need to run already so it is probably
> something specific to your system. Have a look at any config files that
are
> with that example, and see if you have to set any paths or other
> installation specific info in there.
>
> I presume other apps, (such as the struts example) already work in your
> tomcat?
>
> -Original Message-
> From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 21:01
> To: Struts Users Mailing List
> Subject: Re: Stxx opencode
>
>
> You were right Andrew,
> I got the following exception:
>
> 2002-07-16 15:38:09 StandardContext[/stxx-example]: Servlet /stxx-example
> threw load() exception
> javax.servlet.ServletException: Servlet.init() for servlet action threw
> exception
>  at
>
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:94
> 6)
>  at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
> ..
>
> The problem is that I don't know what causes it. It is the first time that
I
> come across to such an error.
> Any help would be really appreciated.
>
> Konstantina
>
>
>
> - Original Message -
> From: "Andrew Hill" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, July 16, 2002 2:59 PM
> Subject: RE: Stxx opencode
>
>
> > Have a look in the log file to see if you can pin down the actual error
> that
> > occured, as if an exception is thrown when initialising stuff, thats the
> > message you get.
> >
> > -Original Message-
> > From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 16, 2002 20:00
> > To: Struts Users Mailing List
> > Subject: Stxx opencode
> >
> >
> > Hello,
> > I have just downloaded the stxx package and I tried to run the
> stxx-example
> > application. But unfortunately I had no luck. I run it with tomcat-4.0.4
> > and tomcat-3.2.4 but I got the following exception.
> >
> > Apache Tomcat/4.0.4 - HTTP Status 503 - Servlet action is currently
> > unavailable
> >
>
> --
> --
> > 
> >
> > type Status report
> >
> > message Servlet action is currently unavailable
> >
> > description The requested service (Servlet action is currently
> unavailable)
> > is not currently available.
> >
> >
>
> --
> --
> > 
> >
> >
> >
> > I find stxx very flexible and since I have worked with struts I would be
> > very interetsed in using it for my application development. So if anyone
> can
> > help me I would be gradeful.
> >
> > Thank you in advance,
> > Konstantina
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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




Re: Stxx opencode

2002-07-16 Thread Konstantina Stamopoulou

Hi Jeff,
I have tried everything. I used Tomcat4.0.4 and I got the error that I wote
in my previous mail.
I used Tomcat4.1.7 and while it was loading the apps I got the following
error in the console:

WebappClassLoader:
validateJarFile(C:\jakarta\jakarta-tomcat-4.1.7\webapps\stxx-
example\WEB-INF\lib\orion.jar) - jar not loaded. See Servlet Spec 2.3,
section 9
.7.2. Offending class: javax/servlet/Servlet.class
WebappClassLoader:
validateJarFile(C:\jakarta\jakarta-tomcat-4.1.7\webapps\stxx-
example\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3,
section
 9.7.2. Offending class: javax/servlet/Servlet.class

and in the browser I got the following exception.

java.lang.NoSuchMethodError
 at
com.oroad.stxx.action.ActionServlet.processApplicationResources(ActionServle
t.java:814)
 at com.oroad.stxx.action.ActionServlet.initStxx(ActionServlet.java:760)
 at com.oroad.stxx.action.ActionServlet.init(ActionServlet.java:104)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)

I' using servlet2.3 API- I though that caused the problem - but obviously it
is something else. I haven't change the tomcat's conf files and I have put
the stxx.jar in lib dir webapps. What am I missing?

Konstantina




- Original Message -
From: "Jeff Pennal" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, July 16, 2002 10:14 PM
Subject: Re: Stxx opencode


> Konstantina,
>
> People have had this error message before and it is usually the caused
> by one of two things.
>
> 1. Use only Tomcat 3.3+ or 4.04+
> 2. If you are putting the stxx-example.jar file in the Tomcat webapps
> directory, you will need to make sure that all the correct JAR's that
> stxx needs to run are in a "lib" direction under tomcat.
>
> For details on the required JAR's check out
> http://www.openroad.ca/opencode/stxx/download.html
>
> Andrew Hill wrote:
> > Have a look in the log file to see if you can pin down the actual error
that
> > occured, as if an exception is thrown when initialising stuff, thats the
> > message you get.
> >
> > -Original Message-
> > From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 16, 2002 20:00
> > To: Struts Users Mailing List
> > Subject: Stxx opencode
> >
> >
> > Hello,
> > I have just downloaded the stxx package and I tried to run the
stxx-example
> > application. But unfortunately I had no luck. I run it with tomcat-4.0.4
> > and tomcat-3.2.4 but I got the following exception.
> >
> > Apache Tomcat/4.0.4 - HTTP Status 503 - Servlet action is currently
> > unavailable
> >
>
> --
--
> > 
> >
> > type Status report
> >
> > message Servlet action is currently unavailable
> >
> > description The requested service (Servlet action is currently
unavailable)
> > is not currently available.
> >
> >
>
> --
--
> > 
> >
> >
> >
> > I find stxx very flexible and since I have worked with struts I would be
> > very interetsed in using it for my application development. So if anyone
can
> > help me I would be gradeful.
> >
> > Thank you in advance,
> > Konstantina
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> >
>
>
> --
> Jeff Pennal p:604-694-0554(x107)
> Senior Software Developer   f:604-694-0558
> Openroad Communications e:[EMAIL PROTECTED]
> Vancouver, BC
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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




Re: Stxx opencode

2002-07-17 Thread Konstantina Stamopoulou

Hi,

The packages that I have in my lib dir are the following:

Xerces.jar,xalan.jar,stxx-.1.0.0.jar,struts.jar,servlet.jar,orion.jar,logkit
.jar,jdom.jar,jaxp.jar,fop.jar,batik.jar,avalon.jar.

I had to rename some of these because they had a different name from the
ones that it was refered in the specifications of stxx, but I don't beleive
that the problem has to do with the names of jars. For most of them I have
downloaded the latest versions. The orion.jar and avalon.jar were totally
new to me and I downloaded from the following sites:

orion: http://www.orionserver.com
avalon: http://jakarta.apache.org/avalon/framework/

Sorry for the inconvinience that I cause you but I can't find any reference
to the problem that I'm facing.

Thanx for your time,
Konstantina



- Original Message -
From: "Jeff Pennal" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 17, 2002 9:53 PM
Subject: Re: Stxx opencode


> Konstantina,
>
> What JAR's do you have in the stxx-example webapp lib folder? You not
> only need stxx-1.0.0.jar but also every other JAR listed on stxx's
> download page.
>
> Jeff
>
> Konstantina Stamopoulou wrote:
> > Hi Jeff,
> > I have tried everything. I used Tomcat4.0.4 and I got the error that I
wote
> > in my previous mail.
> > I used Tomcat4.1.7 and while it was loading the apps I got the following
> > error in the console:
> >
> > WebappClassLoader:
> > validateJarFile(C:\jakarta\jakarta-tomcat-4.1.7\webapps\stxx-
> > example\WEB-INF\lib\orion.jar) - jar not loaded. See Servlet Spec 2.3,
> > section 9
> > .7.2. Offending class: javax/servlet/Servlet.class
> > WebappClassLoader:
> > validateJarFile(C:\jakarta\jakarta-tomcat-4.1.7\webapps\stxx-
> > example\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3,
> > section
> >  9.7.2. Offending class: javax/servlet/Servlet.class
> >
> > and in the browser I got the following exception.
> >
> > java.lang.NoSuchMethodError
> >  at
> >
com.oroad.stxx.action.ActionServlet.processApplicationResources(ActionServle
> > t.java:814)
> >  at com.oroad.stxx.action.ActionServlet.initStxx(ActionServlet.java:760)
> >  at com.oroad.stxx.action.ActionServlet.init(ActionServlet.java:104)
> >  at javax.servlet.GenericServlet.init(GenericServlet.java:258)
> >
> > I' using servlet2.3 API- I though that caused the problem - but
obviously it
> > is something else. I haven't change the tomcat's conf files and I have
put
> > the stxx.jar in lib dir webapps. What am I missing?
> >
> > Konstantina
> >
> >
> >
> >
> > - Original Message -
> > From: "Jeff Pennal" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, July 16, 2002 10:14 PM
> > Subject: Re: Stxx opencode
> >
> >
> >
> >>Konstantina,
> >>
> >>People have had this error message before and it is usually the caused
> >>by one of two things.
> >>
> >>1. Use only Tomcat 3.3+ or 4.04+
> >>2. If you are putting the stxx-example.jar file in the Tomcat webapps
> >>directory, you will need to make sure that all the correct JAR's that
> >>stxx needs to run are in a "lib" direction under tomcat.
> >>
> >>For details on the required JAR's check out
> >>http://www.openroad.ca/opencode/stxx/download.html
> >>
> >>Andrew Hill wrote:
> >>
> >>>Have a look in the log file to see if you can pin down the actual error
> >>
> > that
> >
> >>>occured, as if an exception is thrown when initialising stuff, thats
the
> >>>message you get.
> >>>
> >>>-Original Message-
> >>>From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
> >>>Sent: Tuesday, July 16, 2002 20:00
> >>>To: Struts Users Mailing List
> >>>Subject: Stxx opencode
> >>>
> >>>
> >>>Hello,
> >>>I have just downloaded the stxx package and I tried to run the
> >>
> > stxx-example
> >
> >>>application. But unfortunately I had no luck. I run it with
tomcat-4.0.4
> >>>and tomcat-3.2.4 but I got the following exception.
> >>>
> >>>Apache Tomcat/4.0.4 - HTTP Status 503 - Servlet action is currently
> >>>unavailable
> >>>
> >>
>
>>--
> >
> > --
> >
>

Can you advice me on this?

2002-08-28 Thread Konstantina Stamopoulou

Hello,
I have been using struts for a few months and I'm very pleased with the things it 
offers and with the fact that it keeps growing thanks to the dynamic team of apache. 
Recently, I have come to the dilemma of choosing between struts and expresso. 
My company is intrested in building a e-learning system where each person has its own 
role and can view informatioons depending on his/her privileges. 
I believe that struts can do all the work, but then, reading some things about 
expresso I realized that it is a framework which is used when the application 
communicates with databases often, which in our case is true. 
So my question is the following.  If we begin development using struts, is it possible 
to move to  expresso if we find out that this is necessary? 

Thank you in advance,
Konstantina



Database Servlet

2002-02-05 Thread Konstantina Stamopoulou

Hello,

I apologize if my question sounds naive but I really need your help on this.
 I have a servlet that during initialization parses an .xml file using
Digester. Then I access the data in  my jsps through JavaBeans. What I need
to do, is to have my main page which displays the data from the .xml to be
updated with the new data each time the .xml is modified.
In order to do this, do I have to put the code of the init() method of my
servlet in the Action class of the main page or is it a more elegant way to
do this?

Thank you  in advance,
Konstantina


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Form bean -> null

2002-02-14 Thread Konstantina Stamopoulou

Hello,
I need to use a  form bean  in struts and this is the first time I'm doing that .So as 
newbie I feel I'm missing something basic. Can U help me? This is my case.
I have my struts-config :

 
   



 
  



I have MyForm Bean with set and get methods and I have MyForm Action   which just 
initializes my form:


.

if (form == null) {
  
  System.out.println("Form is null");

 form = new MyForm();
if ("request".equals(mapping.getScope()))
request.setAttribute(mapping.getAttribute(), form);
else
session.setAttribute(mapping.getAttribute(), form);
 }
 MyForm strmform = (MyForm) form;

and finally my .jsp is the following:


 Destination IP Address :  
  . 
  . 
  . 
  . 

  
  
 

   
  


When I callthis page I get a :

javax.servlet.ServletException: Cannot retrieve definition for form bean null

error, and I cannot fingure out what I 'm doing wrong.

I would appriciated if U could provide me with any info regarding this problem.

Thank U in advance,
Konstantina





Re: Form bean -> null

2002-02-14 Thread Konstantina Stamopoulou

Well,
Actually my error was that I was associating MyForm with the wrong action.
Thank U for pointing that out.

Konstantina

>
> On Thu, 14 Feb 2002 11:36:14 +0200 "Konstantina Stamopoulou"
<[EMAIL PROTECTED]>
> wrote:
> >Hello,
> >I need to use a  form bean  in struts and this is the first time I'm
doing
> that .So as newbie
> I feel I'm missing something basic. Can U help me? This is my case.
> >I have my struts-config :
> >
> > 
> >   
> >
> >
> >
> >  >type="provider.test.MyFormAction"
> >name="MyForm"
> >scope="request"
> >validate="false">
> >  
> > 
> >
> >
> >I have MyForm Bean with set and get methods and I have MyForm Action
which
> just initializes
> my form:
> >
> >
> >.
> >
> >if (form == null) {
> >
> >  System.out.println("Form is null");
> >
> > form = new MyForm();
> >if ("request".equals(mapping.getScope()))
> >request.setAttribute(mapping.getAttribute(), form);
> >else
> >session.setAttribute(mapping.getAttribute(), form);
> > }
> > MyForm strmform = (MyForm) form;
> >
> >and finally my .jsp is the following:
> >
> >
> > Destination IP Address : 
> >  .

> >  .

> >  .

> >  .

> >   
> > 

> > 

> > 
> 
> >
> >
> > 
> >
> >
> >When I callthis page I get a :
> >
> >javax.servlet.ServletException: Cannot retrieve definition for form bean
null
> >
> >error, and I cannot fingure out what I 'm doing wrong.
> >
> >I would appriciated if U could provide me with any info regarding this
problem.
> >
> >Thank U in advance,
> >Konstantina
> >
> >
> >
> >
> >
>
>
> --
> Get your firstname@lastname email at http://Nameplanet.com/?su
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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




Re: logic:iterate question

2002-02-14 Thread Konstantina Stamopoulou

Hi ,

>From what I understand you want to create links for each headline and pass
the head line as a parameter.
So inside the logic:iterate tag U should put :

 
   <%info.put("HeadLineID", "X"); %>

   Headline 


U can replace the one line of code with 

It worked for me.

Konstantina


---Original Message -
From: "Oliver Kiessler" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 14, 2002 12:58 PM
Subject: logic:iterate question


> hello,
> i have a problem on one of my "views" with a logic:iterate tag. i have
> an "action" that fetches news headlines from a database
> (headline,headlineID) and stores them in a bean
> (headlines->Arraylist,headlinedID->Vector) which is appended to
> request/session. On the "view" i want to iterate through the Arraylist
> with the headlines which basically works fine. but i need to create
> links like this: XYZ
>
> how would i use the iterate tag? do i have to use the nested tag? (i am
> currently using struts 1.0.2) i dont want to use any "java code" in my
> view, only tags...
>
> thanks, oli
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: taglibs documentation (whered it go)?

2002-02-21 Thread Konstantina Stamopoulou

Hello,
The tag lib documentation is now accessible trough the link "Release Notes".
I realized that yesterday!

cheers,
Konstantina


- Original Message -
From: "keithBacon" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "rob"
<[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 11:51 AM
Subject: Re: taglibs documentation (whered it go)?


> so that why i couldn't find it! Please can we have it back pronto!
>
> =
> ~~
> Search the archive:-
> http://www.mail-archive.com/struts-user%40jakarta.apache.org/
> ~~
> Keith Bacon - Looking for struts work - South-East UK.
> phone UK 07960 011275
>
> __
> Do You Yahoo!?
> Yahoo! Sports - Coverage of the 2002 Olympic Games
> http://sports.yahoo.com
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




html:submit button

2002-02-21 Thread Konstantina Stamopoulou

Hello,
I have a problem and I can't fingure out the solution to it. Here is my case:

I have a list of products (PoductBean) on my .jsp and each one of it have two buttons 
(html:submit)  :

Button1 --> Display Information for this product
Button2 --> Use the information to do something else

My question is: How can I decide which product has been selected so as to display its 
information on my next page? 
>From what I have seen the html:submit tag does not contain any attributes to pass 
>request parameters.

Thank U in advance,
Konstantina








Re: html:submit button

2002-02-21 Thread Konstantina Stamopoulou

Hi  Rob,

I tried this solution but the thing is that the "value" is set as the label
of the button. Isn't there a more elegant way to do this? As far as the
radio buttons concerned, my submit buttons do not apply only to the name of
product but to some other configuration parameters too. So I have 10 lines
of config parameters and two buttons under these.

Thank you for your instant reply,
Konstantina

- Original Message -
From: "rob" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 12:32 PM
Subject: Re: html:submit button


> You can setup a property in your form bean to receive the value of the
> button and just pack the button value with the product id (since if I
> understand correctly you have a button for every product entry)
>
> ie. 
> and 
>
> in your action you can retrieve the property and compare it.
>
> if (form.getButton().startsWith("view product list")) {
> String value = form.getButton();
> tokenize out the id with StringTokenizer or something.
>.. do the view product list stuff ...;
> }
> if (form.getButton().equals("do something else")) {
> same as above just do the something else
> }
>
> If I understand correctly the above is one solution although I might
suggest
> using a radio button(s) for product selection and then only one pair of
> buttons.
>
>
> - Original Message -
> From: "Konstantina Stamopoulou" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, February 21, 2002 9:02 PM
> Subject: html:submit button
>
>
> Hello,
> I have a problem and I can't fingure out the solution to it. Here is my
> case:
>
> I have a list of products (PoductBean) on my .jsp and each one of it have
> two buttons (html:submit)  :
>
> Button1 --> Display Information for this product
> Button2 --> Use the information to do something else
>
> My question is: How can I decide which product has been selected so as to
> display its information on my next page?
> From what I have seen the html:submit tag does not contain any attributes
to
> pass request parameters.
>
> Thank U in advance,
> Konstantina
>
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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




Re: html:submit button

2002-02-21 Thread Konstantina Stamopoulou

Thank U for your reply and for the code details!
I used this approach to see which button was pressed and the 
tag  to pass the product id.

Thank U all for your help!
Konstantina

- Original Message -
From: "Maturo, Larry" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 5:30 PM
Subject: RE: html:submit button


> Hi Konstantina,
>
> Since you haven't supplied enough details, I'll assume that
> you have a table, and each row contains info on one product,
> plus two buttons, one for displaying info and one for do
> something with the product.
>
> In this case you then make each button look like an array, in
> your form bean, declare something like:
>
> private int editIndex = -1;
> private int infoIndex = -1;
> private String editString = "";
> private String infoString = "";
>
> public String getEditString(int index) {
> return editString;
> }
>
> public final void setEditString(int index, String editString){
> this.editString = editString;
> this.editIndex = index;
> }
>
>public int getEditIndex () {
> return editIndex;
>}
>
> public String getInfoString(int index) {
> return infoString;
> }
>
>public final void setInfoString(int index, String infoString){
> this.infoString = infoString;
> this.infoIndex = index;
>}
>
>public int getInfoIndex() {
>return infoIndex;
>}
>
> In your jsp, inside your iterate, you woud use:
>
> 
> 
>
> When submitted you can use getInfoString and getEditString
> to see which button was pressed (the pressed button will have
> a value other than "") and then use the appropriate get index
> to see which item was selected.
>
> -- Larry Maturo
>[EMAIL PROTECTED]
>
>
> -Original Message-
> From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 21, 2002 4:02 AM
> To: Struts Users Mailing List
> Subject: html:submit button
>
>
> Hello,
> I have a problem and I can't fingure out the solution to it. Here is my
> case:
>
> I have a list of products (PoductBean) on my .jsp and each one of it have
> two buttons (html:submit)  :
>
> Button1 --> Display Information for this product
> Button2 --> Use the information to do something else
>
> My question is: How can I decide which product has been selected so as to
> display its information on my next page?
> From what I have seen the html:submit tag does not contain any attributes
to
> pass request parameters.
>
> Thank U in advance,
> Konstantina
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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




Re: looking for html taglib...

2002-02-24 Thread Konstantina Stamopoulou

Hi,
This will help U.
http://www.jalfrezi.com/fforms.htm

Cheers,
Konstantina

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 22, 2002 6:33 PM
Subject: looking for html taglib...


> Hi,
>
> Does someone can help me to find a jsp taglib as struts but for basics
html tags like ,, and so on..
>
> thanks for your help
> Gaetan
>
> --
> NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs,
Toolbar...
> Web/Wap : www.netcourrier.com
> Téléphone/Fax : 08 92 69 00 21 (0,34 E TTC/min - 2,21 F TTC/min)
> Minitel: 3615 NETCOURRIER (0,15 E TTC/min - 1,00 F TTC/min)
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Dynamic Tree

2002-02-25 Thread Konstantina Stamopoulou

Hello,
I needed to do something similar and I found another tag lib that can be
used in combination with Struts. You can find more on this site--->
http://www.kobrix.com .

Konstantina

- Original Message -
From: "luvpdas" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, February 23, 2002 11:53 PM
Subject: Dynamic Tree


> Hi ,
> I am totally new to struts and I am looking for something that will
enable
> me to
> have a Selection Tree on the leftside, in a table and keyboard accessible.
When
>
> I click on a node on the tree I want it to expand automatically.  I need
to
> support
> Netscape 4.0+ and IE 4.0+.  Does anyone know if there is such support from
> Struts.
>
> Thanks
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Please unsubscribe me from this list!.

2002-02-27 Thread Konstantina Stamopoulou

Click at the bottom of the page the :  "To unsubscribe, e-mail ".
Follow the instructions.

Konstantina

 - Original Message -
From: "Jack King (Unix)" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 27, 2002 11:03 AM
Subject: Please unsubscribe me from this list!.


>
> - Original Message -
> From: "Drew Sudell" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Monday, February 25, 2002 15:54
> Subject: RE: i18n - Escape Codes
>
>
> >
> >
> > > -Original Message-
> > > From: Rustad, Aaron [mailto:[EMAIL PROTECTED]]
> > > Sent: Sunday, February 24, 2002 4:01 AM
> > > To: '[EMAIL PROTECTED]'
> > > Subject: i18n - Escape Codes
> > >
> > >
> > > I am trying i18n my application by adding a
> > > Resources_ru.properties, and it
> > > seems to work. However, I can not get the Unicode characters to work
> > > correctly.
> > >
> > >
> > > I have looked at HP's example, and they use unicode escapes for their
> > > messagesis there an easy way to convert Strings to
> > > Unicode strings?
> > >
> > http://java.sun.com/j2se/1.3/docs/tooldocs/solaris/native2ascii.html
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> >
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Downloading files

2002-03-11 Thread Konstantina Stamopoulou

Hello,

I' m building an application where the user has the options to:
a.Store his files on the server (upload files) 
b.View the directories and the files he has created on the server side. These files 
will be links and when the user "clicks" on one of the files, the file should open.  
Also there will be a link "Download file" for the file download .

The first part has already been done but I have no idea how to do the second part.
Any help, any reference links would be really appriciated since I have never developed 
something like that previously. 

Many thanx,
Konstantina
 




Re: can anyone help me??

2002-03-13 Thread Konstantina Stamopoulou

Hello,

I had the same exception when I started using Struts. This is caused
probalbly because you have not created the bean . Make sure that you have
created the user bean either from within your Action class
(getServletContext.setAttribute("user", userclass) or from your .jsp file
(). Of cource make
sure that your Action class is being called before the jsp is dislayed(that
you have done the right mappings)
Try it and it should work.

Konstantina


- Original Message -
From: "Vaddiyar, Raghuramudu" <[EMAIL PROTECTED]>
To: "Struts (E-mail)" <[EMAIL PROTECTED]>
Sent: Wednesday, March 13, 2002 11:57 AM
Subject: can anyone help me??


> Hi,
> am new to struts. can anyone help me??
> What does the below error message mean???
>
>
>
> javax.servlet.ServletException: Cannot find bean user in scope null
> at
>
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> l.java:459)
> at
>
_0002findex_0002ejspindex_jsp_5._jspService(_0002findex_0002ejspindex_jsp_5.
> java:692)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
> va:130)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:282)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> at org.apache.tomcat.core.Handler.service(Handler.java:287)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
>
org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherIm
> pl.java:222)
> at
>
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
> .java:162)
> at
>
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
> va:1759)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> at org.apache.tomcat.core.Handler.service(Handler.java:287)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
> 2)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
> at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:213)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> at java.lang.Thread.run(Thread.java:484)
>
>
> Raghuramudu Vaddiyar
> SIS SEGAINTERSETTLE AG
> Front End Development
> P.O. Box
> CH-8002 Zurich
> Phone + 41-1-288-4488
> Fax +41-1-288-4428
> mailto:[EMAIL PROTECTED]
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Downloading files

2002-03-13 Thread Konstantina Stamopoulou

Hi Alexander,

This is what I did after searching the archieves. I'm a little bit confused
with the mime type (shouldn't "multipart/form-data " work for every type of
file? it doesn't work for .jsps). I think I have to search more on this one.

Thanx for the reply,
Konstantina

- Original Message -
From: "Jesse Alexander (KADA 12)" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 14, 2002 9:30 AM
Subject: RE: Downloading files


> Hi,
>
> write an action for the download. This can be a generic action within your
app taking the filename as a parameter.
> In this action:
> - grab request.out(standard servlet-programming)
> - set the correct mime-type(standard servlet-programming)
> - read the file(standard servlet-programming)
> - spit it out on request.out(standard servlet-programming)
> - return null(to indicate that the struts-action-servlet has nothing
more to do)
>
> I think in the mailing-list archive should be samples how to return a pdf
or an image that might help you further.
>
> hope this helps
> Alexander
>
> -Original Message-
> From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
> Sent: Montag, 11. Marz 2002 16:03
> To: Struts Users Mailing List
> Subject: Downloading files
>
>
> Hello,
>
> I' m building an application where the user has the options to:
> a.Store his files on the server (upload files)
> b.View the directories and the files he has created on the server side.
These files will be links and when the user "clicks" on one of the files,
the file should open.  Also there will be a link "Download file" for the
file download .
>
> The first part has already been done but I have no idea how to do the
second part.
> Any help, any reference links would be really appriciated since I have
never developed something like that previously.
>
> Many thanx,
> Konstantina
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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




File location on the server

2002-03-14 Thread Konstantina Stamopoulou

Hello,
Can someone tell me how I can specify the path from where the files can be downloaded 
form the server? What I'm using now is :
 response.setHeader("Content-disposition", "inline; filename="+myfile)
which means that all my files should be in TOMCAT_HOME. When I tried to give other 
paths, the file couldn't be found. 

Thanx  in advance,
Konstantina




Re: Downloading files

2002-03-15 Thread Konstantina Stamopoulou

Hello Sean,

This saves me from a  lot of work.Tnanx. I just tried it and it works fine,
except for the case of  of images. I guess for that case I have to use
ContentType("image/jpeg").

Konstantina


- Original Message -
From: "Sean Willson" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 1:59 AM
Subject: Re: Downloading files


> Try this:
>
>// get the file extension
>String fileName = formFile.getFileName();
>// the mime type for this file
>String mimeType = servlet.getServletContext().getMimeType(fileName);
>// if we got one set it
>if (null != mimeType) {
>  response.setContentType(mimeType);
>}
>// otherwise set a default
>else {
>  response.setContentType("text/plain");
>}
>
>// otherwise output the file
>ServletOutputStream os = response.getOutputStream();
>os.write(formFile.getFileData());
>return null;
>
> Works for us ... This way you leave it up to the container to tell you
> the mime type. You can also configure mime types in your web.xml
> deployment descriptor file.
>
> Sean
>
> Konstantina Stamopoulou wrote:
> > Hi Alexander,
> >
> > This is what I did after searching the archieves. I'm a little bit
confused
> > with the mime type (shouldn't "multipart/form-data " work for every type
of
> > file? it doesn't work for .jsps). I think I have to search more on this
> > one.
> >
> > Thanx for the reply,
> > Konstantina
> >
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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




How to iterate in this case??

2002-03-26 Thread Konstantina Stamopoulou

Hello,
I need to implement the following and I have reached a dead end. Can you help me?
I have the some data in my .xml described below:
 






 
 
 

 
   


which represents the  information:

  RootDir
 |___dir1
|__file1
|__file2
|__dir2
||__file3
||__file4
||__dir3
|__dir4
|__file5


I have a bean that holds the directories under root dir and the set of directories 
under each dir. My question is:
How should I use the  or   tag in order to construct 
the tree that I have just described?
Any ideas? Should I change the way I have constructed my .xml file?


Thank you,
Konstantina



How to take object from the Action to jsp

2002-04-03 Thread Konstantina Stamopoulou

Hello,
My question might sound naive but I really eed your answer.

I'm storing an object in ServletContext with the following code :

   servlet.getServletContext().setAttribute("treemodel",root);
where root is an object of type Node(myclass). 

In my jsp I want to retrieve this object from the Servletontext so I do the following:

<%= new DirectoryModel((Node)servlet.getServletContext().getAttribute("treemodel") %>.

I'm wondering why I get the Exception:

org.apache.jasper.compiler.ParseException: 
C:\jakarta\jakarta-tomcat-3.2.3\webapps\teach\main_menu.jsp(77,99) Attribute treemodel 
has no value
at org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java:519)
at org.apache.jasper.compiler.JspReader.parseTagAttributes(JspReader.java:635)
at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:798)

My problem is that I cannot handle this object as a javabean since I want to use the 
object as it is and not to get the values of its properties.

I would really appreciated your help.

Thank you,
Konstantina






Re: How to take object from the Action to jsp

2002-04-03 Thread Konstantina Stamopoulou

Thanx,
It finally  worked by using bean.

Konstantina
- Original Message -
From: "Enrique Rodriguez" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 03, 2002 4:50 PM
Subject: RE: How to take object from the Action to jsp


> Hi Constantina,
>
> Instead of servlet.getServletContext().setAttribute("treemodel",root);
>
> I use request.setAttribute("treemodel",root);
>
> In the JSP, instead of
> DirectoryModel((Node)servlet.getServletContext().getAttribute("treemodel")
> %>.
>
> I use  to
> wirte one propierty into the generated html code,
>
> or <% DirectoryModel((Node)this.pageContext.getAttribute("treemodel"));
>
> Hope That Help, Enrique.
>
> _
> Enrique Rodriguez Lasterra
>
>
>
> > -Mensaje original-
> > De: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
> > Enviado el: miercoles, 03 de abril de 2002 10:37
> > Para: Struts Users Mailing List
> > Asunto: How to take object from the Action to jsp
> >
> >
> > Hello,
> > My question might sound naive but I really eed your answer.
> >
> > I'm storing an object in ServletContext with the following code :
> >
> >servlet.getServletContext().setAttribute("treemodel",root);
> > where root is an object of type Node(myclass).
> >
> > In my jsp I want to retrieve this object from the Servletontext
> > so I do the following:
> >
> > <%= new
> > DirectoryModel((Node)servlet.getServletContext().getAttribute("tre
> emodel") %>.
> >
> > I'm wondering why I get the Exception:
> >
> > org.apache.jasper.compiler.ParseException:
> > C:\jakarta\jakarta-tomcat-3.2.3\webapps\teach\main_menu.jsp(77,99)
> >  Attribute treemodel has no value
> > at
> > org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader
> > .java:519)
> > at
> > org.apache.jasper.compiler.JspReader.parseTagAttributes(JspReader.
> > java:635)
> > at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:798)
> >
> > My problem is that I cannot handle this object as a javabean
> > since I want to use the object as it is and not to get the values
> > of its properties.
> >
> > I would really appreciated your help.
> >
> > Thank you,
> > Konstantina
> >
> >
> >
> >
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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




Struts and uPortal

2002-04-24 Thread Konstantina Stamopoulou

Hello,
I was wondering if anyone on the struts' list, has used struts with uPortal - portal 
used by universities. 
If so  I would appreciated he/she  could provide me with some answers to my questions.

Thank you 
Konstantina



Can anyone help on this?

2001-11-15 Thread Konstantina Stamopoulou

Hello,
I'm using a template for my application and for the main content I want to display a 
table from a database.
When I access the database.do using a URL I get all the data correctly.
When I use this database.do file in the .jsp that uses the template I get :

javax.servlet.ServletException: Servlet Exception
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
at 
_0002fcompany_0002ejspcompany_jsp_3._jspService(_0002fcompany_0002ejspcompany_jsp_3.java:234)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)


How should I handle this error?

Thanx in advance.



Re: Can anyone help on this?

2001-11-16 Thread Konstantina Stamopoulou

Thanx for the advice Tom but I couldn't get much from the error.
What I did was to to call the .do file and forward the control to the .jsp
that uses the template.
Generally, is it illegal to use .do files within a template tag??

Thanx again,
Konstantina


- Original Message -
From: "Tom Klaasen (TeleRelay)" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, November 15, 2001 4:06 PM
Subject: RE: Can anyone help on this?


> look further down the stack trace, starting from the line "Root cause".
> This might give you something more to work with ...
>
> hth,
> tomK
>
> > -Original Message-
> > From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
> > Sent: donderdag 15 november 2001 12:56
> > To: Struts Users Mailing List
> > Subject: Can anyone help on this?
> >
> >
> > Hello,
> > I'm using a template for my application and for the main
> > content I want to display a table from a database.
> > When I access the database.do using a URL I get all the data
> > correctly.
> > When I use this database.do file in the .jsp that uses the
> > template I get :
> >
> > javax.servlet.ServletException: Servlet Exception
> > at
> > org.apache.jasper.runtime.PageContextImpl.handlePageException(
> > PageContextImpl.java:459)
> > at
> > _0002fcompany_0002ejspcompany_jsp_3._jspService(_0002fcompany_
> > 0002ejspcompany_jsp_3.java:234)
> > at
> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> >
> >
> > How should I handle this error?
> >
> > Thanx in advance.
> >
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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




Re: Can anyone help on this?

2001-11-16 Thread Konstantina Stamopoulou

Well Tom I think you are right.
The input I gave you was insufficient so here is all the story.

THE .JSP USING THE TEMPLATE

   






THE ERROR

Included servlet error: 500
Location: /template-dina/company.jsp
Error Location: /template-dina/test.do

Root cause:
javax.servlet.jsp.JspException: Servlet Exception
 at org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:149)
 at
_0002fcompany_0002ejspcompany_jsp_4._jspService(_0002fcompany_0002ejspcompan
y_jsp_4.java:221)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 at org.apache.tomcat.core.Handler.service(Handler.java:287)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
 at java.lang.Thread.run(Thread.java:484)

I really appreciate your help.


- Original Message -
From: "Tom Klaasen (TeleRelay)" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, November 16, 2001 11:09 AM
Subject: RE: Can anyone help on this?


> Hard to answer this one, isn't it?
>
> First of all, maybe others on the list can get something out of the root
> cause but are frustrated now because you obviously don't want to show
> it.
>
> Secondly, _how_ do you "call the .do file"? Showing us a snippet of your
> page could help narrow down the guessing work.
>
> Thirdly, I don't see any reason why a .do file could not be used in a
> template tag (supposing you mean the "insert" tag), since the tag asks
> for a URI. But I could be wrong on this one.
>
>
> tomK
>
>
> > -Original Message-
> > From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
> > Sent: vrijdag 16 november 2001 9:33
> > To: Struts Users Mailing List
> > Subject: Re: Can anyone help on this?
> >
> >
> > Thanx for the advice Tom but I couldn't get much from the error.
> > What I did was to to call the .do file and forward the
> > control to the .jsp
> > that uses the template.
> > Generally, is it illegal to use .do files within a template tag??
> >
> > Thanx again,
> > Konstantina
> >
> >
> > - Original Message -
> > From: "Tom Klaasen (TeleRelay)" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Thursday, November 15, 2001 4:06 PM
> > Subject: RE: Can anyone help on this?
> >
> >
> > > look further down the stack trace, starting from the line
> > "Root cause".
> > > This might give you something more to work with ...
> > >
> > > hth,
> > > tomK
> > >
> > > > -Original Message-
> > > > From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
> > > > Sent: donderdag 15 november 2001 12:56
> > > > To: Struts Users Mailing List
> > > > Subject: Can anyone help on this?
> > > >
> > > >
> > > > Hello,
> > > > I'm using a template for my application and for the main
> > > > content I want to display a table from a database.
> > > > When I access the database.do using a URL I get all the data
> > > > correctly.
> > > > When I use this database.do file in the .jsp that uses the
> > > > template I get :
> > > >
> > > > javax.servlet.ServletException: Servlet Exception
> > > > at
> > > > org.apache.jasper.runtime.PageContextImpl.handlePageException(
> > > > PageContextImpl.java:459)
> > > > at
> > > > _0002fcompany_0002ejspcompany_jsp_3._jspService(_0002fcompany_
> > > > 0002ejspcompany_jsp_3.java:234)
> > 

Re: If someone is interested

2001-11-16 Thread Konstantina Stamopoulou

Hi Yuriy,

I'm interested to see your code. I'm sure I could learn a lot of things form
it!

Thank you,
Konstantina


- Original Message -
From: "Yuriy Zubarev" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 15, 2001 11:45 PM
Subject: If someone is interested


> Hello colleagues,
>
> I've been developing a web app for myself and since
> it's not the first app using Struts I attempted
> to solve some general issues by providing some interfaces,
> custom tag and generic actions. More specifically I'm talking
> about tables, you know that questions about navigation,
> sorting, formatting and so on...
>
> To see what's done already, point your browser to
> http://english.yuriy-zubarev.com
>
> And if my work raises some interest among people,
> I'll beautify the code (if there is no big load in the office)
> and share it (with one of the purposes to get feedbacks
> and criticism).
>
> Best of luck,
> Yuriy Zubarev
>
>
>
>
> __
> Do You Yahoo!?
> Find the one for you at Yahoo! Personals
> http://personals.yahoo.com
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Can anyone help on this?

2001-11-16 Thread Konstantina Stamopoulou

Now it makes sence Cedric.
My Action class indeed makes a forward so this must be the problem.
I'll try the tiles lib to see the extra functionality.

Many thanx



- Original Message -
From: "Cedric Dumoulin" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, November 16, 2001 12:05 PM
Subject: Re: Can anyone help on this?


>
>   I think you can't call an action as template region. The problem come
from JSP
> : you can't do a "forward" or "sendRedirect" once you have start written
> something in output. Your action probably do a forward, but as you have
already
> written something in header, sidebar, ..., this cause an exception.
>
>   Try to use Tiles library instead of templates. Think of it as an
"extended
> templates" library. You don't need to change your pages, just download
tiles.jar
> (or tilesForStruts1.0.jar), and instruct your web server to use
"tiles.tld"
> instead of "struts-template.tld". This is done by adding or changing
following
> line in your web.xml :
>
>   
> /WEB-INF/struts-template.tld  > From: "Tom Klaasen (TeleRelay)" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, November 16, 2001 11:09 AM
> > Subject: RE: Can anyone help on this?
> >
> > > Hard to answer this one, isn't it?
> > >
> > > First of all, maybe others on the list can get something out of the
root
> > > cause but are frustrated now because you obviously don't want to show
> > > it.
> > >
> > > Secondly, _how_ do you "call the .do file"? Showing us a snippet of
your
> > > page could help narrow down the guessing work.
> > >
> > > Thirdly, I don't see any reason why a .do file could not be used in a
> > > template tag (supposing you mean the "insert" tag), since the tag asks
> > > for a URI. But I could be wrong on this one.
> > >
> > >
> > > tomK
> > >
> > >
> > > > -Original Message-
> > > > From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
> > > > Sent: vrijdag 16 november 2001 9:33
> > > > To: Struts Users Mailing List
> > > > Subject: Re: Can anyone help on this?
> > > >
> > > >
> > > > Thanx for the advice Tom but I couldn't get much from the error.
> > > > What I did was to to call the .do file and forward the
> > > > control to the .jsp
> > > > that uses the template.
> > > > Generally, is it illegal to use .do files within a template tag??
> > > >
> > > > Thanx again,
> > > > Konstantina
> > > >
> > > >
> > > > - Original Message -
> > > > From: "Tom Klaasen (TeleRelay)" <[EMAIL PROTECTED]>
> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > Sent: Thursday, November 15, 2001 4:06 PM
> > > > Subject: RE: Can anyone help on this?
> > > >
> > > >
> > > > > look further down the stack trace, starting from the line
> > > > "Root cause".
> > > > > This might give you something more to work with ...
> > > > >
> > > > > hth,
> > > > > tomK
> > > > >
> > > > > > -Original Message-
> > > > > > From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: donderdag 15 november 2001 12:56
> > > > > > To: Struts Users Mailing List
> > > > > > Subject: Can anyone help on this?
> > > > > >
> > > > > >
> > > > > > Hello,
> > > > > > I'm using a template for my application and for the main
> > > > > > content I want to display a table from a database.
> > > > > > When I access the database.do using a URL I get all the data
> > > > > > correctly.
> > > > > > When I use this database.do file in the .jsp that uses the
> > > > > > template I get :
> > > > > >
> > > > > > javax.servlet.ServletException: Servlet Exception
> > > > > > at
> > > > > > org.apache.jasper.runtime.PageContextImpl.handlePageException(
> > > > > > PageContextImpl.java:459)
> > > > > > at
> > > > > > _0002fcompany_0002e

Fw: Can anyone help on this?

2001-11-20 Thread Konstantina Stamopoulou

Christoph,
I had exactly the same problem and this was happening because ...- see the
answer from Cedric below.
What I did for my case was to forward the control in the Action class to the
template
(  return (new ActionForward("/company.jsp")); company.jsp is the template).
So you can call the .do file from the directly and you will get the
template.
 I haven't used tiles yet, but I'm working on them.

Konstantina


- Original Message -
From: "Cedric Dumoulin" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, November 16, 2001 12:05 PM
Subject: Re: Can anyone help on this?


>
>   I think you can't call an action as template region. The problem come
from JSP
> : you can't do a "forward" or "sendRedirect" once you have start written
> something in output. Your action probably do a forward, but as you have
already
> written something in header, sidebar, ..., this cause an exception.
>
>   Try to use Tiles library instead of templates. Think of it as an
"extended
> templates" library. You don't need to change your pages, just download
tiles.jar
> (or tilesForStruts1.0.jar), and instruct your web server to use
"tiles.tld"
> instead of "struts-template.tld". This is done by adding or changing
following
> line in your web.xml :
>
>   
> /WEB-INF/struts-template.tld  > From: "Tom Klaasen (TeleRelay)" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, November 16, 2001 11:09 AM
> > Subject: RE: Can anyone help on this?
> >
> > > Hard to answer this one, isn't it?
> > >
> > > First of all, maybe others on the list can get something out of the
root
> > > cause but are frustrated now because you obviously don't want to show
> > > it.
> > >
> > > Secondly, _how_ do you "call the .do file"? Showing us a snippet of
your
> > > page could help narrow down the guessing work.
> > >
> > > Thirdly, I don't see any reason why a .do file could not be used in a
> > > template tag (supposing you mean the "insert" tag), since the tag asks
> > > for a URI. But I could be wrong on this one.
> > >
> > >
> > > tomK
> > >
> > >
> > > > -Original Message-
> > > > From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
> > > > Sent: vrijdag 16 november 2001 9:33
> > > > To: Struts Users Mailing List
> > > > Subject: Re: Can anyone help on this?
> > > >
> > > >
> > > > Thanx for the advice Tom but I couldn't get much from the error.
> > > > What I did was to to call the .do file and forward the
> > > > control to the .jsp
> > > > that uses the template.
> > > > Generally, is it illegal to use .do files within a template tag??
> > > >
> > > > Thanx again,
> > > > Konstantina
> > > >
> > > >
> > > > - Original Message -
> > > > From: "Tom Klaasen (TeleRelay)" <[EMAIL PROTECTED]>
> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > Sent: Thursday, November 15, 2001 4:06 PM
> > > > Subject: RE: Can anyone help on this?
> > > >
> > > >
> > > > > look further down the stack trace, starting from the line
> > > > "Root cause".
> > > > > This might give you something more to work with ...
> > > > >
> > > > > hth,
> > > > > tomK
> > > > >
> > > > > > -Original Message-
> > > > > > From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: donderdag 15 november 2001 12:56
> > > > > > To: Struts Users Mailing List
> > > > > > Subject: Can anyone help on this?
> > > > > >
> > > > > >
> > > > > > Hello,
> > > > > > I'm using a template for my application and for the main
> > > > > > content I want to display a table from a database.
> > > > > > When I access the database.do using a URL I get all the data
> > > > > > correctly.
> > > > > > When I use this database.do file in the .jsp that uses the
> > > > > > template I get :
> > > > > >
> > > > > > javax.servlet.ServletException: Servlet E

Template Question

2002-01-28 Thread Konstantina Stamopoulou

Hello,
I'm a beginner to Struts, and I'm using its template tag library for my web
application.
 I would like to  load in one of the areas of the template a URL.
To be more specific what I'm trying to do is the following:


  
  
  
  



The result of this is a big Exception:

java.io.IOException: the filename, directory,or volume label syntax is
incorrect.


My template is the following:








   
  
  



  
  
   





I'm I doing something wrong or the thing I'm trying to do is not possible
using templates? Can anyone give me any suggestion on what I should use to
overcome this problem?

Thank U in advance,
Konstantina





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Need help with html:link and passing parameters on the querystring

2002-01-31 Thread Konstantina Stamopoulou

Hello,

I needed to do exactly the same thing and this is what I used in my .jsp:

 

 <%info.put("provider", request.getParameter("provider");
info.put("subs", request.getParameter("subs"));%>

 Show details 

This results to page: /details.do?provider=my provider&subs=mysubs.

Konstantina


> > -Original Message-
> > From: Kevin J. Turner [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 30, 2002 3:40 PM
> > To: Struts Users Mailing List
> > Subject: Need help with html:link and passing parameters on the
> > querystring
> >
> > I am trying to use the Struts tag, html:link, but I don't think I
> > understand its usage. Basically all I want to do is create a link to a
> > page in my application and one or more dynamic parameters in the query
> > string.
> >
> > The non-Struts JSP link went something like this:
> >
> > Service
> >
> > I am trying to figure out the Struts equivalent but I am not having any
> > luck. I tried something like this:
> >
> >  > %>">Service
> >
> > ... but it doesn't like the usage of the request.getParameter(). Can
> > anyone help?
> >
> > I read the Struts documentation and browsed the struts-example app code
> > but I'm still not getting this.
> >
> > K.
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Template Question

2002-02-03 Thread Konstantina Stamopoulou

Thanx Cedric,

I realized that a few days later, so I used a .jsp with frames where one of
the frames loads the page.

Regards,
Konstantina

- Original Message -
From: "Cedric Dumoulin" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, February 01, 2002 6:39 PM
Subject: Re: Template Question


>
>   Hi,
>
>Content of  tag can only be a jsp local to current web
application. It
> can't be an url starting with http://...
>
> Cedric
>
> Konstantina Stamopoulou wrote:
>
> > Hello,
> > I'm a beginner to Struts, and I'm using its template tag library for my
web
> > application.
> >  I would like to  load in one of the areas of the template a URL.
> > To be more specific what I'm trying to do is the following:
> >
> > 
> >> direct='true'/>
> >   
> >   
> >   
> >
> > 
> >
> > The result of this is a big Exception:
> >
> > java.io.IOException: the filename, directory,or volume label syntax is
> > incorrect.
> >
> > My template is the following:
> >
> > 
> > 
> > 
> > 
> > 
> >
> > 
> >
> >   
> >   
> > 
> > 
> > 
> >   
> >   
> >
> > 
> > 
> > 
> >
> > I'm I doing something wrong or the thing I'm trying to do is not
possible
> > using templates? Can anyone give me any suggestion on what I should use
to
> > overcome this problem?
> >
> > Thank U in advance,
> > Konstantina
> >
> > --
> > To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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