Struts and JSP problem..help needed

Hi,
I am trying to use request.setParameter("formatName") from the JSP page into the ACtion class to display the user entered values.
I have my struts action classes tagged to be in session scope since the UI is a wizard and i want the values to be carried on until they click finish. on the wizard.
I want the formatName floating across the wizard, I have another value called."Category" floating since its a dynamically generated variable using the formbean.
***************ACTION class****************
public class CreateFormatReportDefinitionAction extends Action
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
     final Logger logger = Logger.getLogger(this.getClass());
ActionErrors errors = new ActionErrors();
ActionForward forward = new ActionForward(); // return value
ClarityReportDefinitionFormBean rdFormBean = (ClarityReportDefinitionFormBean) form;
          HttpSession session = request.getSession();
          List fList = new ArrayList();
          FormatDAO fDAO = new FormatDAO();
          Format fmt = null;
try {
          logger.log(Level.INFO, "Entering CreateFormatReportDefinition Action...");
          Person person = PersonUtil.getCurrentUser(request);
          logger.debug("Category is: "+rdFormBean.getCategory());
          List formats = fDAO.findFormatsForCategory(rdFormBean.getCategory());
          for(int i=0;i < formats.size(); i++) {
               fmt = (Format)formats.get(i);
          if(fmt.getOwner().getEmailaddr().equals(person.getEmailaddr())){
          fList.add(fmt);
          rdFormBean.setUserFormatList(fList);
          logger.log(Level.DEBUG,"sessionObject for formName is: "+session.getAttribute("formatName"));
} catch(Exception e) {
// Report the error using the appropriate name and ID.
errors.add("name", new ActionError("id"));
// If a message is required, save the specified key(s)
// into the request for use by the <struts:errors> tag.
if (!errors.isEmpty()) {
saveErrors(request, errors);
// Write logic determining how the user should be forwarded.
forward = mapping.findForward("success");
// Finish with
return (forward);
***********JSP form for the class****************
<html:form action="/createFilterAction" >
<table>
<tr><td>
<html:text property="formatName" />
</td></tr>
          <tr>
               <td>
<html:select property="myFormats" onchange="insertSelectedMyFormat()">
<html:option value="">Select user Formats</html:option>
<c:forEach var="formats" items="${reportDefFormBean.userFormatList}">
<html:option value="${formats.name}"><c:out value="${formats.name}"/></html:option>
</c:forEach>
</html:select>
</td>
          </tr>
</table>
</html:form>
***********JAVASCRIPT**********
var box = document.reportDefFormBean.myFormats;
function insertSelectedMyFormat()
     var hisFormat = box.options[box.selectedIndex].value;
     document.reportDefFormBean.formatName.value = hisFormat;
********STRUTS_CONFIG.XML*****************
<form-beans>
     <form-bean name="reportDefFormBean"
               type="com.ibm.ads.reports.web.formbeans.ClarityReportDefinitionFormBean"></form-bean>
</form-beans>
<action name="reportDefFormBean" path="/createFormatReportDefinition"
               type="com.ibm.ads.reports.web.actions.reportDefinition.CreateFormatReportDefinitionAction"
               scope="session" validate="false">
               <forward name="success" path="/createFormatReportDefinition.jsp"/>
</action>
I am getting a null for Session.getAttribute("formatName") or even if i change the scope to request, i use request.getPArameter("formatName"), i get null again.
I dunno what iam missing in this regard, but if anyone has found anything wrong with my code...please help me out.
any time spent will be appreciated.
Thank you and regards,
dev

Hi,
I am trying to use request.setParameter("formatName") from the JSP page into the ACtion class to display the user entered values.
I have my struts action classes tagged to be in session scope since the UI is a wizard and i want the values to be carried on until they click finish. on the wizard.
I want the formatName floating across the wizard, I have another value called."Category" floating since its a dynamically generated variable using the formbean.
***************ACTION class****************
public class CreateFormatReportDefinitionAction extends Action
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
final Logger logger = Logger.getLogger(this.getClass());
ActionErrors errors = new ActionErrors();
ActionForward forward = new ActionForward(); // return value
ClarityReportDefinitionFormBean rdFormBean = (ClarityReportDefinitionFormBean) form;
HttpSession session = request.getSession();
List fList = new ArrayList();
FormatDAO fDAO = new FormatDAO();
Format fmt = null;
try {
logger.log(Level.INFO, "Entering CreateFormatReportDefinition Action...");
Person person = PersonUtil.getCurrentUser(request);
logger.debug("Category is: "+rdFormBean.getCategory());
List formats = fDAO.findFormatsForCategory(rdFormBean.getCategory());
for(int i=0;i < formats.size(); i++) {
fmt = (Format)formats.get(i);
if(fmt.getOwner().getEmailaddr().equals(person.getEmailaddr())){
fList.add(fmt);
rdFormBean.setUserFormatList(fList);
logger.log(Level.DEBUG,"sessionObject for formName is: "+session.getAttribute("formatName"));
} catch(Exception e) {
// Report the error using the appropriate name and ID.
errors.add("name", new ActionError("id"));
// If a message is required, save the specified key(s)
// into the request for use by the <struts:errors> tag.
if (!errors.isEmpty()) {
saveErrors(request, errors);
// Write logic determining how the user should be forwarded.
forward = mapping.findForward("success");
// Finish with
return (forward);
}***********JSP form for the class****************
<html:form action="/createFilterAction" >
<table>
<tr><td>
<html:text property="formatName" />
</td></tr>
<tr>
<td>
<html:select property="myFormats" onchange="insertSelectedMyFormat()">
<html:option value="">Select user Formats</html:option>
<c:forEach var="formats" items="${reportDefFormBean.userFormatList}">
<html:option value="${formats.name}"><c:out value="${formats.name}"/></html:option>
</c:forEach>
</html:select>
</td>
</tr>
</table>
</html:form>***********JAVASCRIPT**********
var box = document.reportDefFormBean.myFormats;
function insertSelectedMyFormat()
var hisFormat = box.options[box.selectedIndex].value;
document.reportDefFormBean.formatName.value = hisFormat;
}********STRUTS_CONFIG.XML*****************
<form-beans>
<form-bean name="reportDefFormBean"
type="com.ibm.ads.reports.web.formbeans.ClarityReportDefinitionFormBean"></form-bean>
</form-beans>
<action name="reportDefFormBean" path="/createFormatReportDefinition"
type="com.ibm.ads.reports.web.actions.reportDefinition.CreateFormatReportDefinitionAction"
scope="session" validate="false">
<forward name="success" path="/createFormatReportDefinition.jsp"/>
</action>I am getting a null for Session.getAttribute("formatName") or even if i change the scope to request, i use request.getPArameter("formatName"), i get null again.
I dunno what iam missing in this regard, but if anyone has found anything wrong with my code...please help me out.
any time spent will be appreciated.
Thank you and regards,
dev

Similar Messages

  • Login Box example and source code on adf struts and JSP

    Dear all..
    I want to make application using ADF struts and JSP using oracle 10g Jdeveloper.
    The user should login into the login box and verify everyone who has right to enter the home.jsp.
    Anybody could help me with the source code as well as the step by step explanation...
    I'm looking forward the help...

    http://www.oracle.com/technology/products/jdev/collateral/papers/10g/reviewer/viewlets/reviewer_struts_viewlet_swf.html

  • File Upload using struts and jsp

    Hi,
    Anybody have sample coding for uploading files into the database using struts and jsp.
    Thanking you in advance for providing the sample coding.
    Veena

    Hi Veena,
    In Strutsconfig.xml you have to configure data sources like this
    **************strutsconfig.xml******
    <data-sources>
    <data-source
    type="org.apache.common.dbcp.BasicDataSource">
    <set-property property="driverClassName"
    vlaue="oracle.jdbc.driver.OracleDriver"/>
    <set-property property="url" vlaue="jdbcracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID =ORCL)))"/>
    <!-- <set-property property="url"
    vlaue="jdbcracle:thin:@127.0.0.1:1521:ORCL"/>-->
    <set-property property="username"
    vlaue="scott"/>
    <set-property property="password"
    vlaue="tiger"/>
    </data-source>
    </data-sources>
    Now here is how to get data source
    public class LookupAction extends Action
    public Double getQuote(String symbol,
    HttpServletRequest request)
    throws Exception
    Double price=null;
    Connection conn=null;
    Statement stmt=null;
    ResultSet rs=null;
    DataSource dataSource=null;
    try
    dataSource = getDataSource(request);
    conn= dataSource.getConnection();
    stmt= conn.createStatement();
    rs= stmt.executeQuery("select * from stocks where" + "symbol='" + symbol +"'");
    if (rs.next())
    =======================
    After you can use the coding what I posted earlier.
    For that you need to create a table with attachment as a CLOB col.
    then with prepared statement I am setting value .
    Plz try your self every thing ok you can get that.
    all the best
    bye
    sudheen

  • Firewire 400 and 800 problem ? Need confirmation

    OK, I have been running 2 external Lacie HD's over a USB hub into my MacBook Pro. A couple of weeks ago I decided that I needed more storage so purchased 2 Western Digital MyBook Pro's at 500GB.
    I got these two specifically because I knew they supported Firewire 800 and wanted to take advantage of the high speed connection.
    All is going well until yesterday.... Let me explain my set up. Firstly I am a DJ and use a Firewire Audiophile soundcard from M-Audio, this connects to the 400 port on my MacBook Pro, and the HD's connect to the 800... When I play music I get audio drop outs... I have looked through the forums and I am under the impression that both the 400 and 800 ports on my MacBook Pro run on the same connect, so is this the cause of the audio drop outs ?
    I connect the 2 HD's via USB and have no problems, am I right in thinking that I have wasted good money on getting 2 HD's that I'm not going to be able to use the 800 port with ? When I run the audio through the internal soundcard I get no drop outs !
    Also.... Just to annoy me even more I have a 20" cinema display so if I have use USB I decided to connect the two HD's to this and then to the MacBook Pro, now the problem here is when my MacBook Pro goes to sleep one of the HD's wakes up the MacBook Pro as it has been removed incorrectly ??? Do I now have a problem with one of my USB ports on the cinema screen also ????? I have put my iPod in the port and no problems ?
    Does anyone know how I can solve these problems without having to spend even more money ?
    And can someone confirm if the 400 and 800 ports are on the same connection, if so, whats the point ???
    Thanks
    - Neil

    neil,
    I wouldn't do that right away.. USB audio interfaces are usually at the more consumer end of the market, I don't think it's the best way to go just to solve your problem.
    did you read the part in my post about PCexpress cards that give you a totally new and independent FW800 bus? seriously, I think this is your best bet. these cards first came out when the original series of MBP didn't have FW800 on them (only 400) much to the consternation of video pros.. so 3rd party vendors made a card solution. as I said, they aren't expensive, I would have thought around or under $100 US. connect one of those to your MBP's express slot and your problem is solved. you'll have a powerful, dedicated FW channel just for those FW800 drives you bought. then, your m-audio interface will be fine. and even if you still want to get rid of it and get a better interface, you won't be forced to go to USB which generally means opting for a lower end of the market interface.
    also one other thing.. I don't know what your actual audio i/o needs are. but if you only ever work with stereo out and stereo in, ie, you never need more than 2 physical outputs and 2 physical inputs, then you have other options. the MBP (and in fact all macs) have optical digital audio built in. you can buy a 2in 2out digital to analog/analog to digital converter and connect it to the opticals. then, you'll never need to worry about FW or USB bandwidth ever again, nor will you ever need to think about drivers or compatibility or updates either.
    on my MBP I use logic pro. and on this system, I only ever need a stereo out to hear what I'm working on with good quality.. and when I record actual audio tracks, it's only ever one source at a time, like a mic input or an instrument. so I do not need an interface at all, I use the opticals and I love it. I bought a mindprint trio, not the USB one, but the one that uses optical i/o. it just connects to the same connectors on the MBP that you would connect headphones or a mic, but obviously uses the digital optical signal not analog audio. it sounds really very good. the trio itself is a very handy little box that conveniently lets you do a lot of things to work comfortable when recording. and I just use built-in sound, no drivers needed ever, which is very much a rare relief in the audio world, believe me.
    anyway, hope this helps. and seriously check out a card for FW800, in my opinion it's the best solution to your problem no matter which way you go.

  • Demoting a DC and Group policy, help needed.

    Hi all,
    so we have 3 domain controllers, lets say dc1,dc2 and dc3. We have the 3rd line assistance from another company, they have advised the following.... 
    SO the stages will be
    1) Can you please go through all the GPO's in DC3 and consolidate what you need and what you do not need, you need to extensively cross reference this with DC1 and DC2, this is something you have to do. As I will not know what you need and what you do
    not. You can do this by logging into each domain controller and opening up the settings of each GPO and cross referencing.
    2) Once the above is done, we will consolidate the GPO's to a central repository in your domain
    3) Backup Sysvol directory and Netlogon folder in DC3
    3) Proceed to dcpromo DC3 out of the domain
    4) Test connectivity if clients to the AD
    5) Add the additional Server options
    6) All of the above can be done during office hours.
    it was my understanding (perhaps wrongly) that the group policies were not on the individual Domain Controllers but in Sysvol and as such replicated anyway?
    any advice would be very much appreciated.

    > I am being told that our Group policies are different across different
    > Domain Controllers and to my knowledge that's impossible as we have
    > discussed it should be in the replicated Sysvol.
    Ok, that's a common problem. Fix it and you will be fine:
    http//support.microsoft.com/kb/2218556 (for DFS-R Replication of Sysvol)
    http://support.microsoft.com/kb/315457 (for NTFRS replication)
    > I'm a bit lost on the central repository aspect but prior to saying it
    > makes no sense I just wanted to check my understanding, especially with
    > an MVP!
    I agree. Talking of a "central repository" fro group policy doesn't make
    sense, because group policy from the very beginning lives in AD and
    sysvol, which both are kind of "central repository". Seems they don't
    really know what they're talking about :)
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • Set inside a Set and powerset problem. Need help.

    I've done other posts about this but I figured I'd start a new thread since I changed it so much. I understand the idea of power sets but not how it needs to be a Set inside a set and also how to get this thing to run. If anyone could show me a power set generator or help me fix my code I'd really appreciate it.
    Thanks in advance
    public static <E> Set<Set <E>> generatePowerSet(Set<E> S){
              Set<E> newSet = new HashSet<E>();
              Set<E> temp = new HashSet<E>();
              if (S.isEmpty() || S.equals("")) {
                   Set<E> emptySet = new HashSet<E>(S);
                   return (Set<Set<E>>) emptySet;
              else {
                   Iterator<E> iter = S.iterator();
                   temp = S;
                   while (iter.hasNext()) {
                        E obj = iter.next();
                        temp.remove(obj);
                        Set<E> P = new HashSet<E>(temp);
                        P.addAll(temp);
                        newSet.addAll(P);
                        return newSet;
              }

    I have no idea what a "power set" is.
    But, this line:
    if (S.isEmpty() || S.equals("")) {should just be:
    if (S.isEmpty()) {S is the input parameter, and is a Set. Therefore, S can never equal an empty string.
    Did you see my reply to your previous thread?
    http://forum.java.sun.com/thread.jspa?threadID=677353
    It seems that you didn't, because you didn't respond to it, and because your current code has the same problem.

  • Iphone 5 doesn't end call and Siri problems. Need help.

    I can barely open my screen before it closes and when I hit end call--it doesn't. The screen kicks off and goes black--anyone else experiencing this?
    Plus, Siri is acting up and doesn't get the question and the screen goes blank quickly.
    I was switched out for a new phone after all the other issues relating to lack of signal and battery drainage. So, I now have a new phone with a complete new install and now this. I have rebooted to the apple screen--nothing seems to be working to solve this.

    First thing to try is to reset your device. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider should one appear until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.
    If that doesn't help make an appointment at an App,e Store to have your iPhone looked at by a service technician.

  • Taglib and JSP problem

    Hi!
    I cannot determine why I'm getting the following error:
    I've installed Apache Tomcat/4.0.6
    "PARSE error at line 6 column 19
    org.xml.sax.SAXParseException: Element type "taglib" must be declared."
    Can you tell why the parser does not recognize it?
    Appreciate any help.
    ele
    [my JSP]
    <%@ page language="java" import="java.lang.*,java.util.*,javax.servlet.jsp.*,java.io.PrintWriter,javax.servlet.http.HttpServletResponse,javax.servlet.jsp.JspWriter" %>
    <%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
    [my web.xml]
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <display-name>SegDis</display-name>
    <description></description>
    <servlet>
    <servlet-name>ScriviPunto</servlet-name>
    <servlet-class>ScriviPunto</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>lanciaScriviPunto</servlet-name>
    <jsp-file>/lanciaScriviPunto.jsp</jsp-file>
    </servlet>
    <servlet>
    <servlet-name>segnalazione</servlet-name>
    <jsp-file>/segnalazione.jsp</jsp-file>
    </servlet>
    <servlet-mapping>
    <servlet-name>ScriviPunto</servlet-name>
    <url-pattern>/scriviPunto</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>lanciaScriviPunto</servlet-name>
    <url-pattern>/lanciaScriviPunto.jsp</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>segnalazione</servlet-name>
    <url-pattern>/segnalazione.jsp</url-pattern>
    </servlet-mapping>
    <taglib>
         <taglib-uri>/WEB-INF/c.tld</taglib-uri>
         <taglib-location>/WEB-INF/c.tld</taglib-location>
    </taglib>
    </web-app>
    [the .tld file (downloaded from Sun)]
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
    "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>c</short-name>
    <uri>http://java.sun.com/jstl/core</uri>
    <display-name>JSTL core</display-name>
    <description>JSTL 1.0 core library</description>
    <validator>
    <validator-class>
         org.apache.taglibs.standard.tlv.JstlCoreTLV
    </validator-class>
    <init-param>
         <param-name>expressionAttributes</param-name>
         <param-value>
         out:value
         out:default
         out:escapeXml
         if:test
         import:url
         import:context
         import:charEncoding
         forEach:items
         forEach:begin
         forEach:end
         forEach:step
         forTokens:items
         forTokens:begin
         forTokens:end
         forTokens:step
         param:encode
         param:name
         param:value
    redirect:context
    redirect:url
         set:property
         set:target
         set:value
         url:context
         url:value
         when:test
         </param-value>
         <description>
         Whitespace-separated list of colon-separated token pairs
         describing tag:attribute combinations that accept expressions.
         The validator uses this information to determine which
         attributes need their syntax validated.
         </description>
    </init-param>
    </validator>
    <tag>
    <name>catch</name>
    <tag-class>org.apache.taglibs.standard.tag.common.core.CatchTag</tag-class>
    <body-content>JSP</body-content>
    <description>
    Catches any Throwable that occurs in its body and optionally
    exposes it.
    </description>
    <attribute>
    <name>var</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>choose</name>
    <tag-class>org.apache.taglibs.standard.tag.common.core.ChooseTag</tag-class>
    <body-content>JSP</body-content>
    <description>
    Simple conditional tag that establishes a context for
    mutually exclusive conditional operations, marked by
    <when> and <otherwise>
    </description>
    </tag>
    <tag>
    <name>out</name>
    <tag-class>org.apache.taglibs.standard.tag.el.core.OutTag</tag-class>
    <body-content>JSP</body-content>
    <description>
         Like <%= ... >, but for expressions.
    </description>
    <attribute>
    <name>value</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>default</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>escapeXml</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>if</name>
    <tag-class>org.apache.taglibs.standard.tag.el.core.IfTag</tag-class>
    <body-content>JSP</body-content>
    <description>
    Simple conditional tag, which evalutes its body if the
    supplied condition is true and optionally exposes a Boolean
    scripting variable representing the evaluation of this condition
    </description>
    <attribute>
    <name>test</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>var</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>import</name>
    <tag-class>org.apache.taglibs.standard.tag.el.core.ImportTag</tag-class>
    <tei-class>org.apache.taglibs.standard.tei.ImportTEI</tei-class>
    <body-content>JSP</body-content>
    <description>
         Retrieves an absolute or relative URL and exposes its contents
         to either the page, a String in 'var', or a Reader in 'varReader'.
    </description>
    <attribute>
    <name>url</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>var</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>varReader</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>context</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>charEncoding</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>forEach</name>
    <tag-class>org.apache.taglibs.standard.tag.el.core.ForEachTag</tag-class>
    <tei-class>org.apache.taglibs.standard.tei.ForEachTEI</tei-class>
    <body-content>JSP</body-content>
    <description>
         The basic iteration tag, accepting many different
    collection types and supporting subsetting and other
    functionality
    </description>
    <attribute>
         <name>items</name>
         <required>false</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
         <name>begin</name>
         <required>false</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
         <name>end</name>
         <required>false</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
         <name>step</name>
         <required>false</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
         <name>var</name>
         <required>false</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
         <name>varStatus</name>
         <required>false</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>forTokens</name>
    <tag-class>org.apache.taglibs.standard.tag.el.core.ForTokensTag</tag-class>
    <body-content>JSP</body-content>
    <description>
         Iterates over tokens, separated by the supplied delimeters
    </description>
    <attribute>
         <name>items</name>
         <required>true</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
         <name>delims</name>
         <required>true</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
         <name>begin</name>
         <required>false</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
         <name>end</name>
         <required>false</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
         <name>step</name>
         <required>false</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
         <name>var</name>
         <required>false</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
         <name>varStatus</name>
         <required>false</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>otherwise</name>
    <tag-class>org.apache.taglibs.standard.tag.common.core.OtherwiseTag</tag-class>
    <body-content>JSP</body-content>
    <description>
         Subtag of <choose> that follows <when> tags
         and runs only if all of the prior conditions evaluated to
         'false'
    </description>
    </tag>
    <tag>
    <name>param</name>
    <tag-class>org.apache.taglibs.standard.tag.el.core.ParamTag</tag-class>
    <body-content>JSP</body-content>
    <description>
         Adds a parameter to a containing 'import' tag's URL.
    </description>
    <attribute>
    <name>name</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>value</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>redirect</name>
    <tag-class>org.apache.taglibs.standard.tag.el.core.RedirectTag</tag-class>
    <body-content>JSP</body-content>
    <description>
         Redirects to a new URL.
    </description>
    <attribute>
    <name>var</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>url</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>context</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>remove</name>
    <tag-class>org.apache.taglibs.standard.tag.common.core.RemoveTag</tag-class>
    <body-content>empty</body-content>
    <description>
         Removes a scoped variable (from a particular scope, if specified).
    </description>
    <attribute>
    <name>var</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>set</name>
    <tag-class>org.apache.taglibs.standard.tag.el.core.SetTag</tag-class>
    <body-content>JSP</body-content>
    <description>
         Sets the result of an expression evaluation in a 'scope'
    </description>
    <attribute>
    <name>var</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>value</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>target</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>property</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>url</name>
    <tag-class>org.apache.taglibs.standard.tag.el.core.UrlTag</tag-class>
    <body-content>JSP</body-content>
    <description>
         Prints or exposes a URL with optional query parameters
    (via the c:param tag).
    </description>
    <attribute>
    <name>var</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>value</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>context</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>when</name>
    <tag-class>org.apache.taglibs.standard.tag.el.core.WhenTag</tag-class>
    <body-content>JSP</body-content>
    <description>
    Subtag of <choose> that includes its body if its
    condition evalutes to 'true'
    </description>
    <attribute>
    <name>test</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    </taglib>

    this is a wild guess, but make sure the taglib text you added to your web.xml doens't contain funky characters you may have copied from some web page. i.e. retype it by hand if you copied it.
    If that isn't it.. sorry i don't see a problem.

  • Pagination problem, help needed to finish it

    Hi friends,
    I am in need to use pagination in my Web Application, since i have a tons of values to display as a report. I develop a pagination logic, tested it seperately and it works fine.When i try to implement it to current project it works, but no result was displayed as it displayed in testing..
    Here is the file i tested seperately..
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <%@ page import="com.rajk.javacode.servlets.dbmodel"%>
    <%
    int count=0;
    int userid = 0;
    String g = null;
    dbmodel db=new dbmodel();
    Statement ps = null;
    ResultSet rs = null;
    db.connect();
    String SQL = "select * from tbl_rmadetails";
    ps=db.con.createStatement();
    rs=ps.executeQuery(SQL);
    rs.last();
    count= rs.getRow();
    rs.beforeFirst();
    int currentrs;
    int pagecount=(count/2);
    if((pagecount*2)+1>=count)
    pagecount++;
    out.println("<table width=363 height=20 align=center border=0 cellpadding=0 cellspacing=0><tr><td>");
    for(int i=1;i<pagecount;i++)
    out.println("<font face=verdana size=1><a href=pagination.jsp?pagenum="+ i +"&userid="+ userid +">["+ i +"]</a></font>");
    String pagenum=request.getParameter("pagenum");
    if(pagenum==null)
    out.println("<br><strong><font face=verdana size=1 color=white>Page 1 of " + (pagecount-1) +"</font></strong>");
    currentrs=0;
    else
    out.println("<br><strong><font face=verdana size=1 color=white>Page " + pagenum + " of " + (pagecount-1) + "</font></strong>");
    pagecount=Integer.parseInt(pagenum);
    currentrs=(2*(pagecount-1));
    out.println("</td></tr></table>");
    //messageboard
    String sql="select * from tbl_rmadetails order by date LIMIT " + currentrs + ",2";
    rs=ps.executeQuery(sql);
    while(rs.next())
    %>
    <br>
    <table width="363" height="64" border="1" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
    <tr>
    </td>
    <td width="126" height="19" align="center" valign="top"><font face="verdana" size="1"><strong><%=rs.getString("serial_no")%></strong></font></td>
    <td width="126" height="19" align="center" valign="top"><font face="verdana" size="1"><strong><%=rs.getString("status")%></strong></font></td>
    </tr>
    </table></td>
    </tr>
    </table>
    <%
    rs.close();
    %> And here is the file in which i want to implement the pagination..
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <%@ page import="com.rajk.javacode.servlets.dbmodel"%>
    <%
    int x1=0;
    int userid = 0;
    int count = 0;
    String raj=request.getParameter("q");
    String temp=null;
    String SQL = null;
    String SQLX = null;
    int currentrs;
    try
    dbmodel db=new dbmodel();
    Statement ps = null;
    ResultSet rs = null;
    db.connect();
    if(raj.equals("All Vendor"))
    SQL = "SELECT * FROM tbl_rmadetails,tbl_customer,tbl_item,tbl_vendor WHERE tbl_rmadetails.customer_id=tbl_customer.customer_id AND tbl_rmadetails.item_id=tbl_item.item_id AND tbl_rmadetails.vendor_id=tbl_vendor.vendor_id AND tbl_rmadetails.status='STS'";
    else
    SQL = "SELECT * FROM tbl_rmadetails,tbl_customer,tbl_item,tbl_vendor WHERE tbl_rmadetails.customer_id=tbl_customer.customer_id AND tbl_rmadetails.item_id=tbl_item.item_id AND tbl_rmadetails.status='STS' AND tbl_rmadetails.vendor_id=tbl_vendor.vendor_id AND tbl_rmadetails.vendor_id='"+raj+"'";
    ps=db.con.createStatement();
    rs=ps.executeQuery(SQL);
    rs.last();
    count= rs.getRow();
    rs.beforeFirst();
    rs.close();
    int pagecount=(count/6)+1;
    if((pagecount*6)+1>=count)
      pagecount++;
    //out.print(count);
    %>
    <%
    for(int i=1;i<pagecount;i++)
    out.println("<font face=verdana size=1><a href=http://localhost:8080/rmanew/sendtovendor.jsp?pagenum="+ i +"&userid="+ userid +">["+ i +"]</a></font>");
    String pagenum=request.getParameter("pagenum");
    if(pagenum==null)
    out.println("<br><strong><font face=verdana size=1 color=white>Page 1 of " + (pagecount-1) +"</font></strong>");
    currentrs=0;
    else
    out.println("<br><strong><font face=verdana size=1 color=white>Page " + pagenum + " of " + (pagecount-1) + "</font></strong>");
    pagecount=Integer.parseInt(pagenum);
    currentrs=(6*(pagecount-1));
    if(raj.equals("All Vendor"))
    SQLX = "SELECT * FROM tbl_rmadetails,tbl_customer,tbl_item,tbl_vendor WHERE tbl_rmadetails.customer_id=tbl_customer.customer_id AND tbl_rmadetails.item_id=tbl_item.item_id AND tbl_rmadetails.vendor_id=tbl_vendor.vendor_id AND tbl_rmadetails.status='STS' LIMIT"+currentrs+",6";
    else
    SQLX = "SELECT * FROM tbl_rmadetails,tbl_customer,tbl_item,tbl_vendor WHERE tbl_rmadetails.customer_id=tbl_customer.customer_id AND tbl_rmadetails.item_id=tbl_item.item_id AND tbl_rmadetails.status='STS' AND tbl_rmadetails.vendor_id=tbl_vendor.vendor_id AND tbl_rmadetails.vendor_id='"+raj+"' LIMIT"+currentrs+",6";
    rs=ps.executeQuery(SQLX);
    if(rs!=null)
    while(rs.next())
    %>
    <link rel="stylesheet" type="text/css" href="chromejs/stvcss.css" />
    <table width="100%" border="0">
    <tr bgcolor="#0066CC">
    <td align="center"><span class="style2">Date</span></td>
    <td align="center" class="style2">Product Details</td>
    <td align="center" class="style2">Serial No</td>
    <td align="center" class="style2">Fault Desc</td>
    <td align="center" class="style2">Customer Name</td>
    <td align="center" class="style2">Vendor Name</td>
    <tr>
    <tr bgcolor="#CCCCCC">
    <td align="center"><%=rs.getDate("date")%></td>
    <td align="center"><%=rs.getString("item_description")%></td>
    <td align="center"><%=rs.getString("serial_no")%></td>
    <td align="center"><%=rs.getString("fault_desc")%></td>
    <td align="center"><%=rs.getString("customer_name")%></td>
    <td align="center"><%=rs.getString("vendor_name")%></td>
    </tr>
    </table>
    <%
    else
    out.println("Result Set is empty");
    catch(Exception e)
    System.out.println("Error: " + e);
    response.setContentType("text/xml");
    response.setHeader("Cache-Control", "no-cache");
    %>The output i got when i ran this page is..
    [1]
    And no records displayed matching the query, but there is a lot of datas in DB as a result of the queries i mentioned here..
    Please help me friends...

    Debug your code. Check what happens and what happens not.
    You could make it much easier if you wrote Java code in Java classes rather than JSP files. Now it's one big heap of mingled -and thus hard to maintain/test/reuse- code.

  • Linked lists problem -- help needed

    Hello again. I've got yet another problem in my C++ course that stems from my use of a Mac instead of Windows. I'm going to install Parallels so I can get Windows on my MacBook and install Visual Studio this week so that I don't have to deal with these discrepancies anymore, but in the meanwhile, I'm having a problem here that I don't know how to resolve. To be clear, I've spent a lot of time trying to work this out myself, so I'm not just throwing this up here to have you guys do the work for me -- I'm really stuck here, and am coming here as a last resort, so I'll be very, very appreciative for any help that anyone can offer.
    In my C++ course, we are on a chapter about linked lists, and the professor has given us a template to make the linked lists work. It comes in three files (a header, a source file, and a main source file). I've made some adjustments -- the original files the professor provided brought up 36 errors and a handful of warnings, but I altered the #include directives and got it down to 2 errors. The problematic part of the code (the part that contains the two errors) is in one of the function definitions, print_list(), in the source file. That function definition is shown below, and I've marked the two statements that have the errors using comments that say exactly what the errors say in my Xcode window under those two statements. If you want to see the entire template, I've pasted the full code from all three files at the bottom of this post, but for now, here is the function definition (in the source file) that contains the part of the code with the errors:
    void LinkedList::printlist( )
    // good for only a few nodes in a list
    if(isEmpty() == 1)
    cout << "No nodes to display" << endl;
    return;
    for(CURSOR = FRONT_ptr; CURSOR; CURSOR = CURSOR-> link)
    { cout << setw(8) << CURSOR->name; } cout << endl; // error: 'setw' was not declared in this scope
    for(CURSOR = FRONT_ptr; CURSOR; CURSOR = CURSOR-> link)
    { cout << setw(8) << CURSOR->test_grade; } cout << endl; // error: 'setw' was not declared in this scope
    As you can see, the problem is with the two statements that contain the 'setw' function. Can anyone help me figure out how to get this template working and get by these two errors? I don't know enough about linked lists to know what I can and can't mess with here to get it working. The professor recommended that I try using 'printf' instead of 'cout' for those two statements, but I don't know how to achieve the same effect (how to do whatever 'setw' does) using 'printf'. Can anyone please help me get this template working? Thank you very, very much.
    For reference, here is the full code from all three files that make up the template:
    linkedlist.h (header file):
    #ifndef LINKED_LINKED_H
    #define LINKED_LINKED_H
    struct NODE
    string name;
    int test_grade;
    NODE * link;
    class Linked_List
    public:
    Linked_List();
    void insert(string n, int score);
    void remove(string target);
    void print_list();
    private:
    bool isEmpty();
    NODE *FRONT_ptr, *REAR_ptr, *CURSOR, *INSERT, *PREVIOUS_ptr;
    #endif
    linkedlist.cpp (source file):
    #include <iostream>
    using namespace std;
    #include "linkedlist.h"
    LinkedList::LinkedList()
    FRONT_ptr = NULL;
    REAR_ptr = NULL;
    PREVIOUS_ptr = NULL;
    CURSOR = NULL;
    void Linked_List::insert(string n, int score)
    INSERT = new NODE;
    if(isEmpty()) // first item in List
    // collect information into INSERT NODE
    INSERT-> name = n;
    // must use strcpy to assign strings
    INSERT -> test_grade = score;
    INSERT -> link = NULL;
    FRONT_ptr = INSERT;
    REAR_ptr = INSERT;
    else // else what?? When would this happen??
    // collect information into INSERT NODE
    INSERT-> name = n; // must use strcpy to assign strings
    INSERT -> test_grade = score;
    REAR_ptr -> link = INSERT;
    INSERT -> link = NULL;
    REAR_ptr = INSERT;
    void LinkedList::printlist( )
    // good for only a few nodes in a list
    if(isEmpty() == 1)
    cout << "No nodes to display" << endl;
    return;
    for(CURSOR = FRONT_ptr; CURSOR; CURSOR = CURSOR-> link)
    { cout << setw(8) << CURSOR->name; } cout << endl; // error: 'setw' was not declared in this scope
    for(CURSOR = FRONT_ptr; CURSOR; CURSOR = CURSOR-> link)
    { cout << setw(8) << CURSOR->test_grade; } cout << endl; // error: 'setw' was not declared in this scope
    void Linked_List::remove(string target)
    // 3 possible places that NODES can be removed from in the Linked List
    // FRONT
    // MIDDLE
    // REAR
    // all 3 condition need to be covered and coded
    // use Trasversing to find TARGET
    PREVIOUS_ptr = NULL;
    for(CURSOR = FRONT_ptr; CURSOR; CURSOR = CURSOR-> link)
    if(CURSOR->name == target) // match
    { break; } // function will still continue, CURSOR will
    // mark NODE to be removed
    else
    { PREVIOUS_ptr = CURSOR; } // PREVIOUS marks what NODE CURSOR is marking
    // JUST before CURSOR is about to move to the next NODE
    if(CURSOR == NULL) // never found a match
    { return; }
    else
    // check each condition FRONT, REAR and MIDDLE
    if(CURSOR == FRONT_ptr)
    // TARGET node was the first in the list
    FRONT_ptr = FRONT_ptr -> link; // moves FRONT_ptr up one node
    delete CURSOR; // deletes and return NODE back to free memory!!!
    return;
    }// why no need for PREVIOUS??
    else if (CURSOR == REAR_ptr) // TARGET node was the last in the list
    { // will need PREVIOUS for this one
    PREVIOUS_ptr -> link = NULL; // since this node will become the last in the list
    REAR_ptr = PREVIOUS_ptr; // = REAR_ptr; // moves REAR_ptr into correct position in list
    delete CURSOR; // deletes and return NODE back to free memory!!!
    return;
    else // TARGET node was the middle of the list
    { // will need PREVIOUS also for this one
    PREVIOUS_ptr -> link = CURSOR-> link; // moves PREV nodes' link to point where CURSOR nodes' points
    delete CURSOR; // deletes and return NODE back to free memory!!!
    return;
    bool Linked_List::isEmpty()
    if ((FRONT_ptr == NULL) && (REAR_ptr == NULL))
    { return true; }
    else
    { return false;}
    llmain.cpp (main source file):
    #include <iostream>
    #include <string>
    #include <iomanip>
    using namespace std;
    #include "linkedlist.h"
    int main()
    Linked_List one;
    one.insert("Angela", 261);
    one.insert("Jack", 20);
    one.insert("Peter", 120);
    one.insert("Chris", 270);
    one.print_list();
    one.remove("Jack");
    one.print_list();
    one.remove("Angela");
    one.print_list();
    one.remove("Chris");
    one.print_list();
    return 0;

    setw is the equivalent of the field width value in printf. In your code, the printf version would look like:
    printf("%8s", CURSOR->name.c_str());
    I much prefer printf over any I/O formatting in C++. See the printf man page for more information. I recommend using Bwana: http://www.bruji.com/bwana/
    I do think it is a good idea to verify your code on the platform it will be tested against. That means Visual Studio. However, you don't want to use Visual Studio. As you have found out, it gets people into too many bad habits. Linux is much the same way. Both development platforms are designed to build anything, whether or not it is syntactically correct. Both GNU and Microsoft have a long history of changing the language standards just to suit themselves.
    I don't know what level you are in the class, but I have a few tips for you. I'll phrase them so that they answers are a good exercise for the student
    * Look into const-correctness.
    * You don't need to compare a bool to 1. You can just use bool. Plus, any integer or pointer type has an implicit cast to bool.
    * Don't reuse your CURSOR pointer as a temporary index. Create a new pointer inside the for loop.
    * In C++, a struct is the same thing as a class, with all of its members public by default. You can create constructors and member functions in a struct.
    * Optimize your function arguments. Pass by const reference instead of by copy. You will need to use pass by copy at a later date, but don't worry about that now.
    * Look into initializer lists.
    * In C++ NULL and 0 are always the same.
    * Return the result of an expression instead of true or false. Technically this isn't officially Return Value Optimization, but it is a good habit.
    Of course, get it running first, then make it fancy.

  • Layout Problem, Help Need

    I developed one custom Report, which will print on pre print stationary. Really Problem here is when i send to printer it will printer properly on 8/12 By 11 Page, but i don't what is the reason it is not printing on Page after 7 Inch, even i thought i increase layout width it dos't Print after 7 Inch on Page, can i know why it is doing like these, any clue, please let me know.
    Report Verions : 6i
    Main Section : Width => 8.5
    Height => 12.5
    Orientation => Portrait
    Report Width => 80
    Report Height => 90
    Your Help Rally appreicate in advance.
    Thanks,
    Praveen

    You may need to contact support and actually show them the report to really solve the problem, but here are a few things to check first:
    a) Check the report margins, make sure that they will allow the report body to display past 7".
    b) Check that the frames and repeating frames are set to horizontally variable, or expand so that they can grow if required.
    Hope this helps,
    Danny

  • 9i Developer suite login problem. help needed ASAP

    i installed oracle 9i developer suite, my problem is i can't login. this is the error ora12560: TNS: oracle adapter error.
    or
    if i put the hostname it displays a no listener error and closes. i tried to create a listener in net configuration assistant, but i can't see it in services.
    i'm using windows XP. and not conneted to any machine.
    do i need any changes on my window settings?
    please help...
    thanks
    here is my listener.ora
    ABC =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = abc)(PORT = 1521))
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = abc)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\OraHome)
    (PROGRAM = extproc)
    tnsnames.ora
    TEST.ABC =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ABC)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = test.ABC)
    ORACLE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = abc)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = oracle)

    check your operating system network protocole is TCP/IP is installed if so check is there any problem with these protocoles. this error is encounter generally due operating system network protocoles it is not an oracle error. here is discription.
    TNS-12560 TNS:protocol adapter error
    Cause: A generic protocol adapter error occurred.
    Action: Check addresses used for proper protocol specification. Before reporting this error, look at the error stack and check for lower level transport errors.For further details, turn on tracing and re-execute the operation. Turn off tracing when the operation is complete.

  • (  jrew.exe encounterd problem,help needed  )

    MY DEARS
    I AM FACING A PROBLEM ON MY P4 LAPTOP AND DESKTOP COMPUTOR ON A PRGRAMM ON SURGERY CD ,WHICH ON START UP DIPLAYS MESSAGE ( jrew encountered a problem,needs to close-)
    WHAT IS THE SOLUTION .HELP IS APPERECIATED.
    MANY REGARDS FOR HELPER.
    DR QAMAR

    Hi Jamie,
    The install log looks fine, but the last entry was September 9th.  I suspect the crash is occuring before the new log entries can be made. 
    Could you please open a new bug report on this over at bugbase.adobe.com?  We'll want to get a crash dump so we can try to figure out what might be causing this to happen.  You didn't mention what OS you were running, but I found this tech doc on the net that describes how do generate the .dmp file:
    Creating Dr. Watson crash dumps
    Thanks,
    Chris

  • Struts and Tiles Problem:compiler error message

    I imported the application "tiles-documentation.war" from jakarta-struts-1.1 into the newly installed JDevloper(Version 9.0.5.2 Build 1618) and try to make it running.
    While with the former Jdeveloper 9.0.4 I can run it nicely(a few manual editing of some files, though), with this newer version I just can not proceed with the following error message.
    Project: D:\jdev\mywork\oc4j_startup\tiles_doc\tiles_doc.jpr
    D:\jakarta-struts-1.1\webapps\tiles-documentation\tutorial\common\menu.jsp
    Error: package and class have same name: tutorial.common._menu
    the same kind of message repeated many many times.
    It seems that I can not probe any more...
    Can someone help me out? Thanks in advance

    Right so these where messages from the JSP compile or from the import process?

  • What is wrong with this javascript with jsp - asap help needed

    <script language="javascript">
    function checkSubmit(form){
                    // Loop from zero to the one minus the number of radio button selections
                    for (counter=0; counter < document.submitform.authortitle.length; counter++){
                        if (form.authortitle[counter].checked){
                            var splitStr = document.submitform.authortitle[counter].value;
                            alert(splitStr);
                            var splitStrArray = new Array();
                            splitStrArray = splitStr.split(","); alert(splitStrArray[2]);
                            splitStrArray[2].trim();
                            if(splitStrArray[2].equals("null")){
                                alert("true");
                                //replace the form action with somefile.jsp
                                document.forms[0].action="searchAmazon.jsp";
                                form.submit();
                            }else{
                                document.forms[0].action="isbnSearch.jsp";
                                form.submit();     
            </script>the above javascript method is acting stupid.. it shows the first two alerts but does not go in the if statement "if(splitStrArray[2].equals("null")){ " and does not show the third alert. i do not c any problems pls help... when i click the option and submit it gives me a jasper exception pointing to some line which does not involve this code...

    it has started working now basically the problem was the trim() method which i have removed and have changed .equals("null") to == ..
    BUT NOW it always does the else command and goes to the isbnsearch page even if the value is null (if null then it should go to another page)...

Maybe you are looking for