关于jstl的param

JSTL与EL的个人部分总结 一、关于web.xml文件里预先设置好登录的账户密码—— <context-param> <param-name>userName</param-name> <param-value>admin</param-value> </context-param> <context-param> <param-name>password</param-name&gt 阅读详情

今天在写一个页面时,有很多地方都要用到这个页面,但是传递的参数不同。也就是其他页面通过传递不同的参数转到这个页面。

比如:有几个页面通过语句"${pageContext.request.contextPath}/song/toQuerySongForChoose.do"+para跳转到同一个页面querySongForChoose.jsp,但是传递的参数不同。

有的只需要传递一个参数,有的两个,有的多个。

para=”?dirId=1"

para="?dirId=0&serialTeamId=9&serialTeamName=KK_SERIAL_1

 

刚开始的时候,我在jsp页面中把所有的参数提取出来。

var dirId=${param.dirId}

var serialTeamId=${param.serialTeamId}

var serialTeamName=${param.serialTeamName}

当我做的时候,第二行的para跳转过去没有问题,但是第一个para跳转过去就出现了问题。我查了下错误提示。说缺少对象。

 

后来我试着把serialTeamId和serialTeamName删除。就正常了。但是,这两个值没法传过去。所以我在想,是不是在转到jsp页面时,会先加载param参数的值,如果碰到null值就会抛出异常。后来想了一个办法,把serialTeamId和serialTeamName放到一个判断语句里。

var dirId=${param.dirId}

if(dirId=='0'){

      var serialTeamId=${param.serialTeamId}

     var serialTeamName=${param.serialTeamName}

}

经测试还是不行。看来在加载jsp时,优先读取param值,而不受js条件语句的约束。既然不受js条件的约束,那受不受jstl条件的约速了。

<input type="hidden" name="serialTeamId" id="serialTeamId" value=<c:if test='${not empty param.serialTeamId}'>${param.serialTeamId }</c:if>>
<input type="hidden" name="serialTeamName" id="serialTeamName" value=<c:if test='${not empty param.serialTeamName}'>${param.serialTeamName }</c:if>>

经测试,可以通过。


 

 

低成本主从机械臂系统构建:6D位姿数据采集与VLA模型训练实战 本文详细介绍了如何构建低成本主从机械臂系统,实现高精度6D位姿数据采集与VLA模型训练。通过300美元级别的硬件组合,系统达到±1mm位置精度和≤0.5°姿态误差,满足Vision-Language-Action模型的多模态训练需求。文章涵盖硬件选型、数据采集技巧、模型训练实战经验,为机器人研究提供经济高效的解决方案。 阅读详情

相关推荐

网格聚类 Grid Clustering/Grid-based Clustering

本文主要简单介绍了网格聚类的基本概念,优缺点,应用场景,建模时的注意事项,评价指标,实现方法,python示例和模型参数等。

JasonH2021的博客 4829

JSP开发之JSP 标准标签库(JSTL)之核心标签param标签&import标签的使用

&lt;c:param&gt;标签用于在&lt;c:url&gt;标签中指定参数,而且与URL编码相关,在&lt;c:param&gt;标签内,name属性表明参数的名称,value属性表明参数的值。看下语法: &lt;c:param name="&lt;string&gt;" value="&lt;string&gt;"/&gt; &lt;c:param&a

luyaran的博客 992

​基于stm32的智能空气加湿器设计(含源代码和Proteus仿真)

课程设计分享

LoongSTUDIO的博客 2929

jstl 获取Parameter参数 , switch使用

&lt;%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %&gt;    param 获取 Parameter参数&lt;c:choose&gt;      &lt;c:when test="${empty param.name}"&gt;         Please enter your name.     &lt;/c:when&g

xxxvshell的博客 346

LM358实战:手把手教你搭建电流检测电路(附电阻选型计算)

本文详细解析了使用LM358运算放大器搭建电流检测电路的全过程,包括基础原理、采样电阻选型、放大电路设计及PCB布局技巧。通过实战案例和精确计算,帮助工程师快速掌握低成本、高精度的电流检测方案,适用于电源管理、电机控制等多种应用场景。

weixin_30872157的博客 451

吉林大学软件工程章节测验 第九章 答案+解析

4.【判断题】估算软件规模有代码行技术和功能点技术两种方法,其中代码行方法估计实现一个功能所需要的源程序行数,其不依赖项目所使用的开发语言,并且具有较好的直观性。3.【单选题】软件项目估算时,若计划人员对每个功能分别按最佳的、可能的、悲观的三种情况给出功能点估计值,记作a, m, b,则估算的期望值E的公式为( )。8.【判断题】在工程网络图中,如果在由起始事件至终止事件所构成的一条路径上,所有事件的最早时刻都和最迟时刻都相同,那么这条路径就是关键路径。4.【单选题】配置管理贯穿软件开发的整个过程。

m0_51459931的博客 1433

JSTL。

一.什么是JSTL Sun公司制定了一套标准标签库(JavaServer Pages Standard Tag Library),简称JSTL。JSTL虽然被称为标准标签库,而实际上这个标签库是由5个不停功能的标签库共同组成的。 二.JSTL的下载和使用 1.下载JSTL包 从Apache的网站下载JSTL的JAR包。将下载的包进行解压。 2.导入JSTL包 将jstl.jar和standard.jar这两个文件复制到chapter8项目的lib目录下, 如下图所示: ...

weixin_55680181的博客 764

别再只调API了!深度拆解Dify文件上传的两种传参方式(sys.file vs. inputs.upload_file)

本文深度解析Dify平台文件上传的两种传参方式——sys.file与inputs.upload_file,详细对比其设计原理、技术实现及适用场景。通过代码示例和性能分析,帮助开发者在本地大模型应用中做出精准技术选型,提升文件处理效率与系统稳定性。

weixin_29063979的博客 268

jstl传参数值入js函数

今天晚上,写一个javaEE小东西时出现的疑问。小东西描述:就是一个欢迎页面里有从数据库里读取的所有会议表信息,信息被放在table里,且每个信息后面有删除、修改操作,本来就是点击修改,然后根据servlet(带有id参数)找到修改类,修改类在doGet()里通过request的getParameter()方法获得id参数,然后获取数据库信息到修改页面,用户根据自己需求修改信息,最后提交并更改数据...

dxyzhbb的博客 803

保姆级教程:在Davinci Configurator里配置BswM的ECU状态机(附状态切换流程图)

本文提供了一份详细的AUTOSAR BswM模块配置指南,通过Davinci Configurator工具实现ECU状态机的构建与管理。内容涵盖从模式请求端口创建到状态切换规则定义的全流程,特别针对Ecu State Handling进行了深入解析,并附有状态切换流程图,帮助汽车电子工程师高效完成ECU状态管理配置。

weixin_28366475的博客 412

国社科“选题设计论证”部分不再难!用AI快速梳理五大核心板块,轻松撰写出高质量的基金申报书(附AI提示词)

七哥给大家推荐的高校都在用的AI平台——高级学术版专业应用平台,集成了ChatGPT、Claude、Gemini、Grok等Al大模型的PLUS版本平台,包括 ChatGPT-5、4o、o3、4.1、4.5、Gemini 2.5 Pro、Claude 3.7、Claude 4、DeepSeek 满血版、Grok 3 、Grok 4等原生线路,还有国际主流的GPTs学术应用,可以辅助大家高效完成科研和学术写作任务,当然撰写硕博论文,课题、职称论文、国社科、国自然基金本子也是手拿把掐。

智能AI让学术科研更容易 935

jstl中${param.name}和${name}的区别

jstl中param.name和${name}的区别 属性 说明 ${param.name}} 相当于 request.getParameter(“name”) ${name} 相当于request.getAttribute(“name”) ${param.name}是得到将表单或者url的参数传递过来的值。 ${name}是得到域中的对象。 ${name}是全域查找 ${...

小白日记 2393

Scale-up,scale-out技术概述

本文系统分析了Scale-up与Scale-out两种扩展技术在现代计算中的应用与发展。Scale-up通过增强单节点性能,适用于高耦合任务,而Scale-out通过横向扩展节点,实现高可用性和无限扩展。在芯片层面,Chiplet技术推动Scale-up发展;在数据中心层面,二者协同工作构建强大集群。光模块在长距离高带宽传输中发挥关键作用。文章对比了NVIDIA、AMD和Broadcom三家公司的技术路线,指出NVIDIA采用封闭生态,AMD选择开放标准,Broadcom则主导底层连接技术。未来发展方向将聚

元直的博客 1447

jstl param url redirect import

import标签 import标签用来导入其他页面 属性: * url :引入页面的路径 * context :工程名 * var :将引入的页面保存到一个变量中 * scope :保存到一个作用域中. 代码: <c:import var="i" url="/js...

chizhuan6861的博客 218

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

LinePhone3.2.7(android端最新版本) sip客户端

SIP客户端For android:LinePhone3.2.7(最新版本),官网地址:http://www.linphone.org/

7.jstl之SQL:param

测试JSTL create table mytable ( nameid int primary key, name varchar(80) ) INSERT INTO mytable VALUES (1,'Paul Oakenfold') INSERT INTO

835

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

JSTL-CORE标签-import、redirect、url、param

JSP页面引入:&lt;%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%&gt;   URL相关的标签 包括如下几个标签       &lt;c:import&gt;标签:与传统JSP页面中的&lt;jsp:include&gt;标记相类似。         &lt;c:redirect&gt;标签:进行页面的...

xuxujing的专栏 453

蓝牙模块HM-10手册

蓝牙模块HM-10手册,该手册对蓝牙模块HM-10进行了详细的介绍和使用方法以及一些AT指令。

JSTL通过URL传中文乱码${param.cname}

url***********?cname=中文 跳转到url所指的页面通过${param.cname},中文变成乱码。 解决方案:

IamstudyingJava的专栏 6223

JSTL详解(五)

JSTL详解(五) 首先,感谢大家的关注,下面我来继续讲解:URL相关的标签,他们的作用主要是负责页面的导航、重定向、资源的获得以及参数的传递等等,他们有: l &lt;c:import&gt; l &lt;c:redirect&gt; l &lt;c:url&gt; l &lt;c:param&gt; &lt;c:import&gt; 作用:导入一个url的资源,相当于js...

系统运维 155

el表达式 param_EL表达式与JSTL

1.EL表达式>EL表达式格式${ EL表达式内容 }>EL的11个内置对象对象.xxx 等同于 对象.getxxx();方法>用EL表达式输出参数Attribute型参数:通过setAttribute方法设置,输出格式${ xxxScope.参数名 },若不写xxxScope,默认是全域查找参数Param型参数,表单传递的信息,输出格式${ param.参数名 } 或者 $...

weixin_30836505的博客 201

el表达式 param_还在用JSP中的脚本程序吗?去掉吧,我教你快速掌握EL及JSTL

jsp页面可以使用脚本程序(java代码)来实现页面逻辑,但是维护比较困难。可以使用EL来访问和处理应用程序的数据。JSTL来替换页面显示逻辑的java代码。非常简单!保证你会用后就不会再用jsp脚本程序了。EL表达式EL(Expression Language)表达式作用:EL表达式主要用于页面的计算与数据的呈现,它能减少java代码,容错处理方式比较优雅。提高开发者的效率而且便于维护,Jsp的...

weixin_31085635的博客 153

JSTL中获取URL参数

使用JSTL时,URL会被隐含的对象param包裹起来,使用param.变量名,直接获取值 hello:${param.name}  依据此逻辑,在使用jquery时,也可以用同样的方法得到,如:  $(function(){  alert(${param.name});  });

天下英雄出我辈,一入江湖岁月催 3603

el表达式 param_EL表达式以及JSTL标签库简单介绍

EL表达式学习我们都知道EL表达式为我们获取作用域数据提供了极大的方便,因此有必要掌握它.1. 使用传统方式在jsp中获取作用域数据(1) 使用传统方式在jsp中获取作用域的数据有什么不方便的地方?答:需要通过脚本段表达式来获取,一般还要导包和强制类型转换等2. 表达式的概念介绍和基本语法(1) 视频中在jsp中使用脚本段语句获取作用域中的数据的缺陷是?答: 需要通过脚本段表达式来获取,一般还要导...

weixin_28691441的博客 167

关于EL表达式中requestScope和param区别,el表达式与jstl标签

关于EL表达式中requestScope和param区别 今天演示EL表达式的时候发现自己jsp的基础实在是薄弱,在这个很简单的问题上迷惑了很久。 首先在看遇到的问题: 在浏览器地址输入,表示传入一个参数test,值为123 http://localhost:8888/Test/index.jsp?test=123 在index.jsp中尝试使用EL表达式取出,代码如下:

ywb201314的专栏 329

参数传递, jstl里 ${param.a.b}不能显示值

前两天做个页面,前台的查询数值带到下一个页面。 对于类似 xxxxx?a=1&b=1&c=1 这样的查询参数,自然可以在下一个页面使用${param.a},${param.b} 这样来取值。 不过如果是这样的参数就有问题了 xxxx?a.b=1&c.d=2,在下一个页面用${param.a.b}就取不到值了。。 所以很简单,请用 ${param['a.b']}来取值。 ...

leobluewing 536

EL和JSTL、EL隐式对象、JSTL的下载和使用、JSTL中的Core标签库、<c:if>、<c:choose>、<c:forEach>、<c:param>、<c:redirect>和<c:url>

EL和JSTL ​ 在JSP开发中,为了获取Servlet域对象中存储的数据,经常需要书写很多Java代码,这样的话会使JSP页面混乱。为了降低JSP页面的复杂度,增强代码的重用性,Sun公司制定了一套标准标签库JSTL,同时为了获取Servlet域对象中存储的数据,JSP 2.0规范还提供了EL(表达式语言),大大降低了开发的难度。下面将针对EL以及JSTL标签库进行详细讲解。 1.EL 01. EL基本语法 概念: EL全称为Expression Language,即表达式语言。它是JSP 2.0引

Lvruoyu的博客 1024
上一篇: jquery写入文本值到textarea
下一篇: MULE
IamstudyingJava
博客等级 码龄18年 4粉丝 45原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值