XML To Database
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
Re: HTTP response as XML
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: ipg width=600 height=480 img=background.jpg navigation left=20 top=20 width=200 height=300 button top=0 width=200 height=50 img=background.jpg txt=Live TV action=TVCatalog target=displayarea/ button top=100 width=200 height=50 img=background.jpg txt=E-mail action=showEmail target=displayarea/ button top=200 width=200 height=50 img=background.jpg txt=Music action=musicCatalog target=displayarea/ /navigation img left=400 align=right img=background.jpg/ banner top=400 width=640 font=verdana size=40pt color=white bgcolor=transparent href=http://www.news.com; /banner block left=250 top=200 width=260 height=200 name=displayareaThis is a test. /block /ipg 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
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]
HTTP response as XML
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: ipg width=600 height=480 img=background.jpg navigation left=20 top=20 width=200 height=300 button top=0 width=200 height=50 img=background.jpg txt=Live TV action=TVCatalog target=displayarea/ button top=100 width=200 height=50 img=background.jpg txt=E-mail action=showEmail target=displayarea/ button top=200 width=200 height=50 img=background.jpg txt=Music action=musicCatalog target=displayarea/ /navigation img left=400 align=right img=background.jpg/ banner top=400 width=640 font=verdana size=40pt color=white bgcolor=transparent href=http://www.news.com; /banner block left=250 top=200 width=260 height=200 name=displayareaThis is a test. /block /ipg I could use any available help! Thank U in advance! Konstantina
Re: error in my struts config
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 init-param param-nameconfig/param-name param-value/WEB-INF/struts-config-tm.xml/param-value /init-param init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-nameconfig/param-name param-value/WEB-INF/struts-config-manager.xml/param-value /init-param 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 . init-param param-nameconfig/param-name param-value /WEB-INF/struts-config.xml,/WEB-INF/struts-config-tm.xml,/WEB-INF/struts-con fig-manager.xml /param-value /init-param 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]
Re: Populating form fields
Try the following: html:text property=fullName value=%=((ContractSetupData)contractData).getFullName()%/ 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: html:form action=contract_change.do name=contractForm type=view.ContractForm table tr thName/th td html:text property=fullName value=bean:write name=contractData property=fullName/ /td /tr /table br html:submit value=Set/ /html:form 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:Another sslext-struts question
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.init(HttpClient.java:292) at sun.net.www.http.HttpClient.init(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]
Another sslext-struts question
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
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: Localisation
You could set a group of forwards up, based on the locale ie forward name=this_en path=/jsp_pages/out_en-jsp redirect=true/ forward name=this_de path=/jsp_pages/out_de-jsp redirect=true/ forward name=this_ko path=/jsp_pages/out_ko-jsp redirect=true/ within action/ 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 bean:message 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 logic:iterate
I have used the following: logic:iterate id=subscription name=provider property=subscriptions logic:iterate id=product name=subscription property=products /logic:iterate /logic:iterate 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 logic:iterate 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: logic:iterate id=row name=rows logic:iterate id=field name=row bean:write name=field/ /logic:iterate /logic:iterate 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]
Re: Results in multiple pages
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_topicf=58t= 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]
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.
bean:cookie tag question
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: logic:present cookie=logged %System.out.println(=Have found the cookie==);% bean:cookie id=mycookie name=logged/ Bean Name: bean:write name=mycookie property=name/ Bean Value:bean:write name=mycookie property=value/ /logic:present I fail. The condition is never satisfied. Has anyone any idea of what I'm doing wrong? Thank U in advance, Konstantina
Populate bean values to my form
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 == !-- Edit mail subscription -- actionpath=/search type=ait.app.SearchFormAction name=searchForm scope=request validate=false forward name=success path=/editUser/ /action action path=/editUser type=ait.app.EditUserAction name=userForm scope=request validate=false forward name=successpath=/userform.jsp/ /action 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 tdhtml:text property=fname value=//td tdhtml:text property=sname value=//td tdhtml:text property=bdate value=/ /td ... 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
Can you advice me on this?
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
Re: Stxx opencode
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 -- -- 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] -- Jeff Pennal
Re: Stxx opencode
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]
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
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]
Re: Stxx opencode
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]
Struts and uPortal
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
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(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
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 bean:write name=treemodel property=propertyOfNodeClass / 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]
How to iterate in this case??
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: node name=dir1 child name=file1 link=/dir1/file1/ child name=file2 link=/dir1/file2/ node name=dir2 child name=file3 link=/dir1/dir2/file3/ child name=file4 link=/dir1/dir2/file4/ node name=dir3/ /node node name=dir4 child name=file5 link=/dir1/dir4/file5/ /node /node 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 logic:iterate or nested:iterate 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
Re: Downloading files
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]
File location on the server
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: can anyone help me??
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 (jsp:useBean id=user scope=session type=class.User/). 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: 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: Downloading files
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]
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
Re: Please unsubscribe me from this list!.
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: 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: Dynamic Tree
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: 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: taglibs documentation (whered it go)?
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: 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]
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
Re: html:submit button
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. html:submit property=button value=view produc list:productid/ and html:submit property=button value=do something else:productid/ 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
Thank U for your reply and for the code details! I used this approach to see which button was pressed and the html: hidden 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: html:submit indexed=true property=editCmd value=Edit / html:submit indexed=true property=infoCmd value=Info / 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: Form bean - null
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 : form-beans form-bean name=MyForm type=provider.test.MyForm/ /form-beans actionpath=/editStream type=provider.test.MyFormAction name=MyForm scope=request validate=false forward name=success path=/streaming.jsp/ /action 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: html:form action=/details tr font size=5 color=#A0 Destination IP Address : /font html:text property=ip1 size=3 / font color=#A0 . /font html:text property=ip2 size=3 / font color=#A0 . /font html:text property=ip3 size=3 / font color=#A0 . /font html:text property=ip4 size=3 / font color=#A0 . /font /tr tr html:text property=port size=3 / font color=#A0 /tr tr html:text property=lan size=3 / font color=#A0 /tr tr html:text property=autostart size=3 / font color=#A0 /tr /html:form 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
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 : logic:iterate. jsp:useBean id=info class=java.util.HashMap/ %info.put(HeadLineID, X); % html:link page=/details.do name=info Headline /html:link /logic:iterate U can replace the one line of code with jsp:setProperty of the bean info 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: a href=ViewHeadlineAction.do?headlineID=XXYZ/a 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: 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]
Database Servlet
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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Template Question
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 put 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: template:insert template='/infotemplate.jsp' template:put name='title' content='Subscription information' direct='true'/ template:put name='sidebar' content='/details.jsp'/ template:put name='content' content='http://www.in.gr'/ template:put name='footer' content='/footer.html'/ /template:insert 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: html head titletemplate:get name='title'//title /head body background='graphics/blueAndWhiteBackground.gif' table tr valign='top' tdtemplate:get name='sidebar'//td tdtable trtdtemplate:get name='header'//td/tr trtdtemplate:get name='content'//td/tr trtdtemplate:get name='footer'//td/tr /table /td /tr /table /body /html 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]
Template Question
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: template:insert template='/infotemplate.jsp' template:put name='title' content='Subscription information' direct='true'/ template:put name='sidebar' content='/details.jsp'/ template:put name='content' content='http://www.in.gr'/ template:put name='footer' content='/footer.html'/ /template:insert 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: html head titletemplate:get name='title'//title /head body background='graphics/blueAndWhiteBackground.gif' table tr valign='top' tdtemplate:get name='sidebar'//td tdtable trtdtemplate:get name='header'//td/tr trtdtemplate:get name='content'//td/tr trtdtemplate:get name='footer'//td/tr /table /td /tr /table /body /html 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]
Fw: Can anyone help on this?
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 : taglib taglib-uri/WEB-INF/struts-template.tld/taglib-uri !-- logical name used in your jsp file --! taglib-location/WEB-INF/tiles.tld/taglib-location !-- real uri of tiles.tld --! /taglib Hope this help, Cedric Konstantina Stamopoulou wrote: 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 template:insert template='/chapterTemplate.jsp' template:put name='header' content='/company.html' / template:put name='sidebar' content='/sidebar.jsp' / template:put name='content' content='/test.do'/ template:put name='footer' content='/footer.html'/ /template:insert 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
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) 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: If someone is interested
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: 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?
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 : taglib taglib-uri/WEB-INF/struts-template.tld/taglib-uri !-- logical name used in your jsp file --! taglib-location/WEB-INF/tiles.tld/taglib-location !-- real uri of tiles.tld --! /taglib Hope this help, Cedric Konstantina Stamopoulou wrote: 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 template:insert template='/chapterTemplate.jsp' template:put name='header' content='/company.html' / template:put name='sidebar' content='/sidebar.jsp' / template:put name='content' content='/test.do'/ template:put name='footer' content='/footer.html'/ /template:insert 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
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.