Custom tags

181 byte By muthu2007a at 2007-11-27 11:05:17
<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>

So you think you are an Java uber-geek? Then figure this one out. . .

1335 byte By megaskinsa at 2007-11-27 11:05:22
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 ...

problem with sorting order in result set

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 ...

Tomcat 5.5 - Root folder not accessible

351 byte By kunal1977a at 2007-11-27 11:05:44
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 ...

JSF 404 Error

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. ...

Creating a url-pattern with a wildcard at the start

456 byte By bubblenut2a at 2007-11-27 11:05:55
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 ...

How to iterate through a ResultSet->List in JSTL?

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 ...

printLabel

345 byte By Delmonico02a at 2007-11-27 11:06:00
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 ...

Download file from server

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 ...

selectManyCheckbox set unique ID

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 ...

<h:selectOneRadio selecting multi values problem>

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 ...

Init-param tags and related settings?

867 byte By Stark_a1a at 2007-11-27 11:06:26
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, ...

Getting hold of the servlet context within a filter

70 byte By bubblenut2a at 2007-11-27 11:06:39
<p>How can I get hold of the servlet context from within a filter?</p>

Saving Page Output to variable for processing

482 byte By delphosbeana at 2007-11-27 11:06:41
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 ...

Set Locale with a backng bean

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 ...

Validator/Messages

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 ...

Ajax4JSF throws Exceptions

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> ...

Error in valueChangeListener

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 ...

Dynamic images with JSP

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 ...

<html:errors> in JSP

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 ...

Writing out HTML programatically

539 byte By rvaneperena at 2007-11-27 11:08:44
[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 ...

Hey

191 byte By Delmonico02a at 2007-11-27 11:08:52
<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>

Cache

412 byte By allavudeen_screena at 2007-11-27 11:09:21
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 ...

Want know about CachedRowSet ?

237 byte By java@mania at 2007-11-27 11:09:28
<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>

No strip the strings

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>

how to access previous page in a database

280 byte By ladyCrofta at 2007-11-27 11:10:15
<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>

Conditional output of text box or label via custom JSF component?

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 ...

delete all checked items

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 ...

any jsf tag in place of div in html

74 byte By javamnr948a at 2007-11-27 11:11:18
<p>hi</p><p>is there any jsf tag available in place of div tag of html</p>

automatic upgrade jre client from 1.4 to 1.5

1390 byte By thierry.judlina at 2007-11-27 11:11:19
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 ...

HTTP method GET is not supported by this URL

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>

dynamic HtmlDatatable and valuebinding problem

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 ...

Checkbox issue

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 ...

Problem with table and background-image

413 byte By Yevgen_78a at 2007-11-27 11:11:54
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 ...

how to display a background image in jsf

138 byte By javamnr948a at 2007-11-27 11:12:14
<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>

parsing problem while starting the web application

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 ...

JSESSIONID

90 byte By Santhiyaa at 2007-11-27 11:12:21
<p>Hi,</p><p>Can any one tell me, what is JsessionId and what is the use?</p><p>Thanks</p>

Facelets - Component will not render

386 byte By jamesclintona at 2007-11-27 11:12:44
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 ...

UTF-8 issues on Linux

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 ...

How to get tomcat installtion path, java path n documents path in a servlet

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>

ServletContext.getAttribute()

606 byte By Jolly_Rogera at 2007-11-27 11:13:20
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 = ...

JSTL 1.1 url working 1.0.6?

782 byte By CraigTataryna at 2007-11-27 11:13:50
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. ...

How to implement Dynamic properties files?

474 byte By vergereaua at 2007-11-27 11:14:12
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 ^_^. ...

JSP

350 byte By muditvaidyaa at 2007-11-27 11:14:24
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 ...

forward from one jsf page to another

354 byte By Arsalan_Siddiquia at 2007-11-27 11:14:38
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> ...

playing video from a servlet

378 byte By morningJavaa at 2007-11-27 11:14:48
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 ...

How to reference css in backing beans

269 byte By whitesox12a at 2007-11-27 11:14:50
<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>

Where to learn JSP

75 byte By mikes1212a at 2007-11-27 11:15:01
<p>I need to learn JSP, but I'm not a programmer where should I start?</p>

invoke a BackingBean method from external application web

675 byte By juanjo.garciaa at 2007-11-27 11:15:03
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 ...

BackingBean to another Backing Bean help

1282 byte By vpalkondaa at 2007-11-27 11:15:15
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 ...