<p>Hi any body can tell </p><p>What is the purpose of custom tags?</p><p>and can u give sample program with explanation </p><p>or documentation URL</p><p>Regards</p><p>Marimuthu</p>
Ok, uber-Java geeks, let's see if you can figure this one out. It' s butt-ugly and got me totally stumped.This is in a Tomcat 5.5 environment.I have a jsp (hierarchy.jsp) which has static nested class called MgmtAuthBean. This hierarchy.jsp creates a TreeMap object which contains instances of the ...
486 byte By
shannua at 2007-11-27 11:05:40
Hi, i am using jdbc [b]and my query is String sql="select empname from emp order by lower(empname) where userid=?";pst = con.prepareStatement(sql);pst.setString(1,userId);rs = pst.executeQuery();[/b]in oracle side the results are in sorted order by where in java console they are not comming in ...
Hello there,I have installed Tomcat 5.5 on my webserver and have connected it to the IIS 6.0. I want to execute the JSPs contained in the ROOT folder. This is somehow not happening - the JSPs in the webapps/jsp-examples are working which means the setup is okay. Can someone help if you have ...
1898 byte By
tobiasgpa at 2007-11-27 11:05:48
Hello,I have googled a long time, but I couldn't find a solution to my problem. I am developing my first JSF 1.2 Application in combination with Tomcat 6 with Eclipse. I have imported all libraries needed (jsf_api, jsf_impl, jstl etc.). When I call a JSF page, I get a 404 resource not found error. ...
How can I create a url pattern with a wildcard at the start? I would like to be able to do<web-app> <servlet-mapping><servlet-name>MyServlet</servlet-name><url-pattern>/*/myAction</url-pattern> </servlet-mapping></web-app>and then be able to access it ...
589 byte By
r5ta at 2007-11-27 11:05:59
[nobr]I have a ResultSet that I've converted to a List via:RowSetDynaClass rsdc = new RowSetDynaClass(rs);resultList = rsdc.getRows();and my Stripes JSP has the following:<c:forEach var="row" items="${resultList}">${row.prod_id}<br/></c:forEach>but it produces no output, even through the ...
I was wondering if anyone knows how to create a printLabel jsp page. I have no way of going about it. I am in a group and we are creating a application that is suppose to checkin media and also printout copies of media checked in. What do I do, I'm clueless. I have a copy of books that I'm ...
823 byte By
Jus55a at 2007-11-27 11:06:17
HiI am using this code thatI got from another post to download a file from serverfinal ServletOutputStream out = response.getOutputStream(); response.setContentType("application/octet-stream");BufferedInputStream is = new BufferedInputStream(new FileInputStream(new File("c:/Test.png"))); byte[] buf ...
464 byte By
xtof83a at 2007-11-27 11:06:18
Hi everybody,I have a problem for getting, a specific Checkbox in my page.I explain me :I create a list of 20-30 checkbox in my page by using <html:selectManyCheckbox/>if I write a Id : <html:selectManyCheckbox id="foo"/>In the generated code I get the attribute name called "foo" but no ...
356 byte By
sivasaia at 2007-11-27 11:06:21
HI,I have array List values from there I am reading values for <h:selectOneRadio, here my code><h:selectOneRadio value="#{row.one}" ><f:selectItem itemValue="#{innerRow.Key}" itemLabel="#{innerRow.Text}" /></h:selectOneRadio> any one can help me how to avoid ...
Hello all,I am completely new to all this and just recently started training for a product called ServiceCenter and was wondering how the servlet technology works in conjunction with the product.There are servlet tags available in the web.xml for servlet names AttachmentDownload, FileDownload, ...
<p>How can I get hold of the servlet context from within a filter?</p>
Hello!I have a servlet that calls (via response.setHeader; can also use response.Redirect) another web site, which returns/displays XML on the browser. I'd like to save that XML into a variable on the server so that I can parse it and save it to (Oracle) DB.I don't know if there's a servlet ...
642 byte By
kurtu2a at 2007-11-27 11:07:20
I have this issue: i'm trying to set the default Locale for the web page with a backing bean wich is boud to a combobox on the page for selecting the language. So in the bean on the value change of the combobox i do this:Locale locale=Locale.getDefault();locale.setLocale(language);When i tried it ...
954 byte By
amattasa at 2007-11-27 11:07:28
Why does this not print out the queued messagepublic void validatePassword(FacesContext context, UIComponent component, Object value) {if (!passwordInput.getLocalValue().equals(value)) {FacesMessage message = new ...
6830 byte By
tobiasgpa at 2007-11-27 11:07:29
Hi, I am having problems with the integration of ajax4jsf into my first jsf project. Ajax4Jsf throws FaceExceptions and I have no idea why. I registered a filter in my web.xml, which uses the a4j Filter: <filter> <display-name>Ajax4jsf Filter</display-name> ...
2115 byte By
Intel3a at 2007-11-27 11:08:06
When i select an item, i get the following error.description The server encountered an internal error () that prevented it from fulfilling this request.exception javax.servlet.ServletException: Exception while invoking expression ...
937 byte By
taivoa at 2007-11-27 11:08:24
Hello,I am using NetBeans to make a WebApp. I have an image to display on Page3.jsp that is generated during the navigation from the previous page, Page2.jsp. This image is a png file, and is unique graph generated for each visitor. Is there a simple way to display dynamically created images? I ...
4546 byte By
Meepa at 2007-11-27 11:08:32
This is strange, I am working with the DAOS, business object, and struts. The purpose of this is type a string and click submit, it should be adding a field in test table in mySQL. The problem is when I click on it, and it'll forward to the success page. I checked the database, it didn't add. I ...
[nobr]I'm a newbie. I have a method that creates some nested JSF components programatically (in a Java class file). I need to insert a couple basic html tags such as "<div class="horizontalRule"></div>"used to display a horizontal line, or to add a couple of <br/> tags. Is there a way to ...
<p>I have another question, How do I retrieve information from my database, which is oracle by the way. I have a copy of categories that should show on the print label page. </p><p>thanks</p>
Hai,any one can help meMy problem is,I updated my .jsp with a new Imagefile. Tomcat will still load the old page. I am very sure that i have updated the file with the new one.Currently to solve this problem, the only way i can do is to referesh that jsp page . Please advice me on what i should do ...
<p>hi everybody,</p><p>I wnat to know about CachedRowSet and exaple related to it.</p><p>and also want to know why do we use the DTO,DAO and VO in project.</p><p>Can anyone tell me about it, where i could get the details about these.</p>
282 byte By
loguKKa at 2007-11-27 11:09:29
<p>hi,</p><p><i></p><p>i have a string in db... like this,</i></p><p>test</p><p>t</p><p>t</p><p>ttest</p><p>st</p><p>asdf</p><p>sf</p><p>dsfsd</p><p><b>how to display it as it is in jsp page?</b></p><p><i>ofcourse it displays for me now test</p><p>t t ttest st asdf sf dsfsd</i></p>
<p>Hi, </p><p>I am using struts now and MySQL as my database.</p><p>the problem is, I dont know how will I show the first page up to the last page of my database, using previous and next. My database consists of employees details, I want to show 10 rows of employees per page.</p>
888 byte By
dfza at 2007-11-27 11:11:00
HiI'm looking to output a text box or a label on a web page depending on a user's ability to modify data.For example, my initial thought is that if a user is considered read-only within a system, I want to evaluate this within a custom JSF component and output a label containing data. If the user ...
455 byte By
relnaa at 2007-11-27 11:11:11
We are trying to develope a complaint register for system administrator using jsp. User can submit the complaints with details such as the name of department,type of complaint and date.Every complaints will be displayed with unique check box. Later after servicing, user should be able to select the ...
<p>hi</p><p>is there any jsf tag available in place of div tag of html</p>
Hi,I have modify code of applet to compile with java 1.5. Automatique installation of jre 1.5 work well if no jre installed.Automatic installation of jre 1.5 don't work if jre 1.4 is already installed. then applet break down cause of UnsupportedClassVersionError.I can't uninstall jre 1.4 manualy ...
266 byte By
Bawa.a at 2007-11-27 11:11:23
<p>hi.. I am trying one Cookie example.. I m ready with the class file.. and I have deployed it in Tomcat.. but when I am trying to run this the error "HTTP method GET is not supported by this URL" is coming..</p><p>Pls give some clues so that I can run this....</p>
5016 byte By
Reddingoa at 2007-11-27 11:11:28
Hey ho,I am trying to build this table dynamicaly:<h:dataTable value="#{masterController.ioCardManager.entryList}" var="row" ><h:column><f:facet name="header"> <h:outputText value="FILE"/></f:facet><h:outputText value="#{row.fileName}"/></h:column><h:column><f:facet ...
735 byte By
newbeana at 2007-11-27 11:11:34
Actually i want to read the database value for the checkbox and then want to display in a table if the checkbox is checked or unchecked,but wheni am giving this syntax if the condition is "on" then it is displaying the box with a tick otherwise it is not showing the box and the rest of the table.It ...
Hi,i have simple jsp ...<table style="background-image : url(1.gif)">...and a button.if i press the button (with special conditions) i want to return back on this page.So my bean specify back action and i seemy page but the table is without my image!!!seems the image was not found. But from the ...
<p>hi,</p><p>I have a image.now I want to display this image as a background image.On the top I have some outputtext.how can I do this</p>
7755 byte By
vakvarmaa at 2007-11-27 11:12:18
Hi,I am getting the following error during my startup and also for every request.SEVERE: Parse Fatal Error at line 8 column 6: The string "--" is not permitted within comments.org.xml.sax.SAXParseException: The string "--" is not permitted within comments.at ...
<p>Hi,</p><p>Can any one tell me, what is JsessionId and what is the use?</p><p>Thanks</p>
Using facelets, trying to get the sandbox picklist working.Problem is the component doesn't display at all and there is no error message....can I have some advice on what this problem might be or ways to debug the problem?I have the component declared in the taglib.xml and loaded into the ...
1688 byte By
supsoop2a at 2007-11-27 11:12:51
Hi Guys,I have a XML file that I stream through the request using Apache HttpClient.I get this request and read into a buffered stream into a byte array. I then try to convert this array to a string setting UTF-8 as the encoding. Works fine on Windows. Linux I still get ? in place of my Spanish ...
186 byte By
kagaraa at 2007-11-27 11:13:00
<p>may someone help me get the folder and pathname for tomcat, java path and library path and also the pathname where the jsp documents are stored.</p><p>Thanks in advance</p><p>null</p>
Hey everyone,I'm working on the web components cert and while doing one of the programming exercises, I came across a ClassCastException error on the code below (bold is the line causing the issue):ServletContext context = getServletContext();Enumeration contextNames = ...
Hi, I had developed a set of pages to work with JSTL 1.1 using the uri http://java.sun.com/jsp/jstl/* format. When I was ready to deploy to a UAT server I was forced to downgrade to 1.0.6 (why? Don't ask :) )So, what I did was remove my jstl 1.1 jar and my standard 1.1 jar from my dev environment. ...
Hello,I use Properties files to display some messages in my jsp but It could be very usefull if someone can tell me a way to reload my properties files when my application server is running.Or if Someone can tell me where to find the singleton who manage the map of message it can help me a lot ^_^. ...
Hi,I have a jsp page on which 4 names are displayed. the names are hyperlinks so that by clicking on that name, the details should bhi dispayed. On clicking on one of the names, the next page is called using response.sendRedirect() method. The problem is that I want to know that which hyperlink was ...
Hi,I am sure this question has been asked before somewhere but I am not able to find it.I want to forward from one jsf page to another like we do in jsp by <jsp:forward page="courseList.faces"/>I want to do same thing from a jsf page since <jsp:forward> is not working inside <f:view> ...
I have a servlet that outputs HTML and embeds a video which is outside of the webapp directory. I use the following path to call on the video file:///c:/video_name and it plays in ie7 but not firefox. In firefox it shows a blank page but if i view source and save it as a new file to my desktop then ...
<p>Hi,</p><p>Can someone please tell how can I reference the stylesheet in backing bean. I have a css and want to get some layouts inside the backing bean itself rather than hard coding. So just trying to see if can reference css in the beacking beans.</p><p>Thanks</p>
<p>I need to learn JSP, but I'm not a programmer where should I start?</p>
Hi all,I need execute the folloging.1-Situation:Invoke from app1 (standar JSP) to app2 *.JSF page. Here there isnt problem I put on form action of my jsf page the url an the param but a I need more.When my jsf page is going to render, first I need that a Method of a backkinBean binding with my jsf ...
I am trying to do this:I have a table in p1 and a table in p2. I have add and edit buttons on first page (P1). To select a single row using a radiobutton. I used BaluC's artticle on his website to solve that problem (thanks to him for posting that solution). To separate the page logics (like add ...